
/* ═══════════ الطلب ═══════════
   مربع الطلب هو الصفحة: الزائر يختار، والوكيل ينفّذ قدامه. وسؤال الزائر رصاصي، وجوابه بحدّ ذهبي. */
.ask-open { display: grid; justify-items: center; align-content: start; min-height: 100svh; padding: calc(var(--header) + clamp(1.5rem, 5vh, 3.2rem)) var(--gutter) 2.5rem; text-align: center; }
.ask-open.small { min-height: 0; }
.ask-open .hero-line { font-size: clamp(2.1rem, 1.5rem + 2.3vw, 3.7rem); }
.ask-open .kicker { margin-bottom: 0.7rem; }
.ask-open .lead { margin-top: 0.8rem; max-width: 34em; }
.ask-open .ctas { margin-top: 1.2rem; }
.ask-open .started { margin: 0 0 1.4rem; text-align: start; }
.demo { display: grid; gap: 0.8rem; width: min(100%, 46rem); margin-top: 1.7rem; text-align: start; }
.demo-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 0.3rem; }
.demo-chips button { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.1rem; border: 0; border-radius: 2rem; background: rgb(18 16 14 / 0.8); box-shadow: inset 0 0 0 1px var(--line-soft); color: var(--sand); font: 500 0.92rem var(--text); cursor: pointer; transition: color 0.2s ease, box-shadow 0.2s ease; }
.demo-chips button small { color: var(--lead); font-size: 0.74rem; }
.demo-chips button:hover { color: var(--ink); }
.demo-chips button[aria-pressed='true'] { color: var(--ink); box-shadow: inset 0 0 0 1px rgb(255 214 150 / 0.45); }
.demo-chips button[aria-pressed='true'] small { color: var(--gold); }
.demo-box { padding: 1.1rem 1.5rem 1.3rem; }
.demo-box .ask-text { min-height: 2.4em; }
.demo-box .ask-text small { display: block; color: var(--lead); font-size: 0.76rem; font-weight: 500; }
.demo[data-state='ask'] [data-typed]::after { content: ''; display: inline-block; width: 1px; height: 1.1em; margin-inline-start: 0.2rem; background: var(--gold); vertical-align: -0.15em; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.demo-run { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.2rem 1.2rem; align-items: start; padding: 1.3rem 1.5rem 1.4rem; }
.demo-run .presence { grid-row: 1 / span 4; width: 3rem; margin-top: 0.1rem; }
.demo-run > :not(.presence) { grid-column: 2; }
.demo-run .task-lines li { animation: line-in 0.35s ease both; }
@keyframes line-in { from { opacity: 0; transform: translateY(0.4rem); } }
.demo-run .task-result.waits p { color: var(--sand); }
.demo-run .task-result.waits { border-top-color: var(--lead-dim); }
.demo-go { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1rem; }
.demo-go:empty, .demo-go[hidden] { display: none; }
.demo-go .qr-row { flex-basis: 100%; }

.ask-three { display: grid; padding-block: 1rem 3rem; }
.ask-row { display: grid; grid-template-columns: 10rem 9rem minmax(0, 1fr); gap: 1.5rem; align-items: baseline; padding-block: 1.5rem; border-top: 1px solid var(--line-soft); text-decoration: none; transition: background 0.25s ease; }
.ask-row:last-child { border-bottom: 1px solid var(--line-soft); }
.ask-row:hover { background: rgb(255 214 150 / 0.03); }
.ask-row b { order: -1; font: 700 clamp(2rem, 1.5rem + 2vw, 3.2rem)/1.2 var(--display); }
.ask-row .who { color: var(--mute); font-size: 0.84rem; }
.ask-row > span:last-child { color: var(--sand); font-size: 1.05rem; line-height: 1.7; }

.band.qa { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.qa .q { position: sticky; top: calc(var(--header) + 2rem); color: var(--lead); font: 700 clamp(1.8rem, 1.3rem + 2vw, 3rem)/1.3 var(--display); }
.qa .a { display: grid; gap: 1.2rem; padding-inline-start: clamp(1.2rem, 3vw, 2.4rem); border-inline-start: 2px solid var(--gold); }
.qa .a h3 { font: 700 clamp(1.5rem, 1.2rem + 1vw, 2.1rem)/1.35 var(--display); }
.qa .a .lead { margin: -0.4rem 0 0; max-width: none; }
.qa .a .does { margin-top: 0; }
.qa .a .steps { grid-template-columns: 1fr; }
.qa .a .ways { grid-template-columns: 1fr; }

@media (max-width: 860px) {
  .band.qa { grid-template-columns: 1fr; gap: 1.2rem; }
  .qa .q { position: static; }
  .ask-row { grid-template-columns: 1fr auto; gap: 0.3rem 1rem; }
  .ask-row > span:last-child { grid-column: 1 / -1; font-size: 0.98rem; }
  .demo-chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .demo-chips button { flex: none; }
  .demo-box, .demo-run { padding-inline: 1.1rem; }
  .demo-run .presence { width: 2.4rem; }
}


/* ═══════════ المدينة ═══════════ the 3D sample: a tall section whose stage stays; src/city.ts draws the
   city into the canvas and moves the labels; the cards come in by [data-at] (step, time) */
.ct { position: relative; height: 620svh; }
.ct-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #06070b; }
.ct-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* labels that follow the city */
.ct-pin { position: absolute; left: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 0.45rem; margin: -1.1rem 0 0 -2.6rem; padding: 0.35rem 0.75rem 0.35rem 0.55rem;
  border-radius: 2rem; background: rgb(8 9 12 / 0.72); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgb(61 187 140 / 0.45); color: #e9fff5; font: 600 0.95rem/1 var(--text);
  opacity: 0; transition: opacity 0.4s; pointer-events: none; will-change: transform; }
.ct-pin.store { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18); color: #f1ece4; margin-left: -2rem; }
.ct-pin-mark { width: 1.5rem; height: 1.5rem; }
.ct-mini { width: 1.35rem; height: 1.35rem; flex: none; }

/* each step's cards: glass, the product's own look */
.ct [data-at] { opacity: 0; translate: 0 0.8rem; transition: opacity 0.45s, translate 0.45s; }
.ct [data-at].on { opacity: 1; translate: 0 0; }
.ct-chat { position: absolute; z-index: 2; inset-inline-end: 6vw; top: 22svh; width: min(24rem, 40vw); display: grid; gap: 0.7rem; }
.ct-chat p { margin: 0; padding: 0.8rem 1rem; border-radius: 1.1rem; line-height: 1.6; font-size: 1.02rem; backdrop-filter: blur(10px); }
.ct-chat small { display: block; margin-bottom: 0.15rem; font-size: 0.78rem; opacity: 0.7; }
.ct-chat .cust { justify-self: start; max-width: 80%; background: rgb(38 34 30 / 0.85); color: #f1ece4; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.ct-chat .rs { justify-self: end; max-width: 92%; background: rgb(12 48 36 / 0.85); color: #dcfff0; box-shadow: inset 0 0 0 1px rgb(61 187 140 / 0.55); }
.ct-chat .cust:not(.on) ~ .rs { opacity: 0; }

.ct-phone { position: absolute; z-index: 3; inset-inline-end: 8vw; top: 50%; translate: 0 -50%; width: min(17rem, 70vw); padding: 0.55rem; border-radius: 2.2rem; background: #050505;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 2rem 4rem -1rem rgb(0 0 0 / 0.9), 0 0 4rem -1rem rgb(61 187 140 / 0.35); }
.ct .ct-phone.on { translate: 0 -50%; } .ct-phone:not(.on) { translate: 0 calc(-50% + 1rem); }
.ct-phone-in { display: grid; gap: 0.7rem; padding: 1.2rem 1rem 1.3rem; border-radius: 1.75rem; background: linear-gradient(180deg, #15201b, #0e1311); }
.ph-top { display: flex; align-items: center; gap: 0.45rem; margin: 0; color: #9be8c9; font-size: 0.88rem; }
.ph-top span { margin-inline-start: auto; color: #6f8a7e; font-size: 0.75rem; }
.ph-msg { margin: 0; color: #f1ece4; font: 600 1.05rem/1.6 var(--text); }
.ph-ask { margin: 0; color: #ffd18a; font: 700 1.05rem/1.5 var(--text); }
.ph-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.ph-acts span { padding: 0.7rem; border-radius: 0.9rem; text-align: center; background: #22302a; color: #cfe9de; font-weight: 600; }
.ph-acts .yes { background: #3dbb8c; color: #04160f; font-weight: 800; }
.ct-phone:has(.ph-done.on) .yes { box-shadow: 0 0 0 0.25rem rgb(61 187 140 / 0.35); }
.ph-done { margin: 0; color: #9be8c9; font-size: 0.9rem; }

.ct-ad { position: absolute; z-index: 3; inset-inline-end: 8vw; top: 50%; translate: 0 -50%; width: min(16rem, 62vw); padding: 0; border-radius: 1.4rem; overflow: hidden;
  background: none; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 2rem 4rem -1rem rgb(0 0 0 / 0.9); }
/* the bars are the card; its screen is open onto the canvas, where the ad itself is drawn */
.ct-ad .ad-top, .ct-ad .ad-foot { margin: 0; padding: 0.7rem 0.9rem; background: rgb(10 10 12 / 0.94); }
.ct .ct-ad.on { translate: 0 -50%; } .ct-ad:not(.on) { translate: 0 calc(-50% + 1rem); }
.ad-top, .ad-foot { display: flex; justify-content: space-between; align-items: center; margin: 0.2rem 0.3rem 0.6rem; font-size: 0.85rem; color: #cfc9c0; }
.ad-top b { color: #9be8c9; }
.ad-foot { font-size: 0.8rem; }
.ad-foot .dl { padding: 0.35rem 0.8rem; border-radius: 0.7rem; background: #3dbb8c; color: #04160f; font-weight: 700; }
.ct-ad-screen { position: relative; aspect-ratio: 9 / 16; }
.ad-words { position: absolute; inset-inline: 0; bottom: 8%; display: grid; justify-items: center; gap: 0.2rem; text-align: center; text-shadow: 0 0.2rem 1rem rgb(0 0 0 / 0.8); }
.ad-words b { color: #fff; font: 700 1.25rem/1.3 var(--display); } .ad-words span { color: #ffd18a; font: 700 1.05rem/1 var(--text); }

/* the one line of each step */
.ct-caps { position: absolute; z-index: 2; inset-inline-start: var(--gutter); bottom: 9svh; width: min(30rem, 84vw); }
.ct-caps::before { content: ''; position: absolute; inset: -5rem -6rem -4rem -4rem; z-index: -1; background: radial-gradient(closest-side, rgb(6 7 11 / 0.85), transparent); pointer-events: none; }
.ct-cap { position: absolute; inset-inline: 0; bottom: 0; display: grid; gap: 0.5rem; opacity: 0; translate: 0 1rem; transition: opacity 0.45s, translate 0.45s; }
.ct-cap.now { opacity: 1; translate: 0 0; }
.ct-who { display: flex; align-items: center; gap: 0.5rem; margin: 0; color: #3dbb8c; font: 600 1.05rem/1.4 var(--text); }
.ct-cap h2 { font: 700 clamp(1.7rem, 1.3rem + 1.6vw, 2.7rem)/1.25 var(--display); text-wrap: balance; }

.ct-end { display: grid; justify-items: center; gap: 1.4rem; padding: 18svh var(--gutter); text-align: center; }
.ct-end h2 { max-width: 30ch; font: 700 clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem)/1.4 var(--display); }

@media (max-width: 760px) {
  .ct-chat { inset-inline: 5vw; width: auto; top: 14svh; }
  .ct-phone { inset-inline: auto; left: 50%; top: 13svh; translate: -50% 0; width: min(16rem, 74vw); }
  .ct .ct-phone.on { translate: -50% 0; } .ct-phone:not(.on) { translate: -50% 1rem; }
  .ct-ad { inset-inline: auto; left: 50%; top: 11svh; translate: -50% 0; width: min(13rem, 56vw); }
  .ct .ct-ad.on { translate: -50% 0; } .ct-ad:not(.on) { translate: -50% 1rem; }
  .ct-caps { inset-inline: var(--gutter); width: auto; bottom: 5svh; }
  .ct-cap h2 { font-size: clamp(1.4rem, 1.2rem + 2vw, 1.85rem); }
}


/* ═══════════ يوم كامل ═══════════
   شاشة واحدة مثبتة، واللوحات تمشي فيها أفقياً مع التمرير. والشمس تقطع السماء فوق الكثبان. */
.day { position: relative; height: calc(var(--n) * 92svh + 8svh); }
.day-stage { --ground: clamp(8rem, 22svh, 17rem); --sun: clamp(4.5rem, 12svh, 8.5rem); position: sticky; top: 0; height: 100svh; overflow: hidden; }
.day-track { display: flex; height: calc(100% - var(--ground) - var(--sun) * 0.9); will-change: transform; }
.day-panel { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding: calc(var(--header) + 3rem) max(var(--gutter), calc((100% - var(--max)) / 2)) 0; }
.day-panel.one { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.day-panel.one > div { max-width: 52rem; }
.day-panel h1 .hero-line { font-size: clamp(2.3rem, 1.7rem + 2.6vw, 4.2rem); }
.day-panel h2 { font: 700 clamp(1.7rem, 1.3rem + 1.4vw, 2.6rem)/1.3 var(--display); }
.day-panel .lead { margin: 0.8rem 0 0; font-size: 1.04rem; }
.day-panel.one .lead { margin-inline: auto; }
.day-panel .ctas { margin-top: 1.3rem; }
.day-panel .does { margin-top: 1rem; }
.day-panel .does li { padding-block: 0.55rem; }
.day-panel .scene { zoom: 0.76; }
.day-panel > .scene { align-self: start; margin-top: 0.5rem; }
.day-panel .plain.two { text-align: start; margin-top: 1rem; }
.day-panel .form { margin: 1.2rem auto 0; text-align: start; }
.day-panel .th-stats { margin-top: 1.4rem; text-align: start; }
.day-hint { color: var(--mute); font-size: 0.86rem; }
.day-hint::after { content: ' ←'; color: var(--gold); }
.day-hours { position: absolute; inset: calc(var(--header) + 0.5rem) 0 auto; z-index: 3; display: flex; justify-content: center; gap: clamp(0.5rem, 2.6vw, 2.2rem); }
.day-hours a { display: block; padding: 0.45rem 0.25rem; border-bottom: 1px solid transparent; color: var(--mute); font-size: 0.8rem; text-decoration: none; white-space: nowrap; transition: color 0.25s ease, border-color 0.25s ease; }
.day-hours a[data-on] { color: var(--ink); border-color: var(--gold); }
.day-sun { position: absolute; left: 0; top: 0; width: var(--sun); aspect-ratio: 1; pointer-events: none; will-change: transform; }
.day-ground { position: absolute; inset: auto 0 0; height: var(--ground); pointer-events: none; }
.moment { display: none; gap: 0.5rem; margin-top: 1rem; font-size: 0.92rem; line-height: 1.65; }
.moment .said { padding-inline-start: 0.8rem; border-inline-start: 2px solid var(--lead); color: var(--sand); }
.moment .said b { display: block; color: var(--lead); font-size: 0.76rem; font-weight: 500; }
.moment .did { padding-inline-start: 0.8rem; border-inline-start: 2px solid var(--gold); color: var(--ink); }
.day-prices { display: grid; gap: 0; width: min(100%, 26rem); margin: 1.2rem auto 0; text-align: start; }
.day-prices li { display: flex; justify-content: space-between; align-items: baseline; padding-block: 0.6rem; border-top: 1px solid var(--line-soft); }
.day-prices b { font: 700 1.1rem var(--display); }
.day-prices .price { margin: 0; font-size: 1.5rem; }

/* صفحتا التحميل والاشتراك: شرائط أفقية تُسحب على الجوال، وفي آخر الصفحة الكثبان وشمس ساعتها */
.band.flush { padding-top: 1rem; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1rem; }
.step-card { position: relative; padding: 1.3rem 1.4rem 1.4rem; }
.step-card .clock { display: block; margin-bottom: 0.5rem; color: var(--lead); font: 700 1.5rem/1 var(--display); }
.step-card h3 { font: 700 1.15rem/1.5 var(--display); }
.step-card p { margin-top: 0.4rem; color: var(--sand); font-size: 0.9rem; line-height: 1.7; }
.strip + .qr-row, .strip + .ctas { margin-top: 1.4rem; }
.day-foot { --ground: 30svh; --sun: clamp(4.5rem, 12svh, 8.5rem); position: relative; height: 44svh; }
.day-foot .day-sun { left: 50%; top: calc(100% - var(--ground) - var(--sun) * 0.75); translate: -50% 0; }
body[data-design='day'] .footer { margin-top: 0; }

@media (max-width: 860px) {
  .day-panel { grid-template-columns: 1fr; align-items: start; padding-top: calc(var(--header) + 3.2rem); }
  .day-panel.one { align-content: center; }
  .day-panel > .scene { display: none; }
  .day-panel .day-text .eyebrow { margin-bottom: 0.5rem; }
  .day-panel .lead { font-size: 0.98rem; line-height: 1.7; }
  .day-panel .does li { grid-template-columns: 5rem 1fr; font-size: 0.9rem; padding-block: 0.45rem; }
  .moment { display: grid; }
  .day-hint { display: block; width: 100%; }
  .day-hours a { font-size: 0.74rem; padding-inline: 0.1rem; }
  .strip { grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .strip > * { scroll-snap-align: start; }
  .day-panel .th-stats { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
  .day-panel .th-stats b { font-size: 1.7rem; }
  .day-panel .th-stats span { font-size: 0.8rem; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .strip.four { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
}

.day-panel figcaption { display: none; }
.day-panel .window { max-height: 34svh; }
.day-panel .window img { object-fit: cover; object-position: top; height: 34svh; }


/* ═══════════ العمق ═══════════
   شاشة واحدة مثبتة: الشمس في الأفق، والكثبان تكبر مع التقدّم، وكل محطة تأتي من الأفق وتمرّ. */
.depth { position: relative; height: calc(var(--n) * 100svh); }
.depth-stage { --p: 0; --ground: calc(30svh + var(--p) * 20svh); --sun: calc(clamp(4.5rem, 13svh, 9rem) * (1 + var(--p) * 0.5)); position: sticky; top: 0; height: 100svh; overflow: hidden; }
.depth-ground { position: absolute; inset: auto 0 0; height: var(--ground); pointer-events: none; }
.depth-sun { position: absolute; left: 50%; bottom: calc(var(--ground) - var(--sun) * 0.45); width: var(--sun); aspect-ratio: 1; translate: -50% 0; pointer-events: none; }
/* الغبار (الشمس) خلف المحطات: المحطة تمرّ أمام الشمس وتحجبها */
body[data-design='depth'] #dust, body[data-design='day'] #dust { z-index: 1; }
/* (a pinned screen is a layer of its own: the whole of it stands over the dust) */
.depth-stage, .day-stage { z-index: 2; }
.depth-way {
  position: absolute;
  left: 50%;
  top: calc(var(--header) + (100% - var(--header)) * 0.43);
  z-index: 2;
  width: min(100% - var(--gutter) * 2, 46rem);
  text-align: center;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.depth-way.open { top: calc(var(--header) + (100% - var(--header)) * 0.34); }
.depth-way.two, .depth-way.wide { width: min(100% - var(--gutter) * 2, 68rem); }
.depth-way.panel { padding: clamp(1.4rem, 3vw, 2.6rem); background: rgb(14 12 10 / 0.95); }
.depth-way.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); text-align: start; }
.depth-way[data-off] { visibility: hidden; pointer-events: none; }
.depth-way h1 .hero-line { font-size: clamp(2.3rem, 1.7rem + 2.6vw, 4.2rem); }
.depth-way h2, .depth-way .h2 { font: 700 clamp(1.7rem, 1.3rem + 1.4vw, 2.6rem)/1.3 var(--display); }
.depth-way h2 b { display: block; margin-bottom: 0.2rem; color: var(--gold); font: 700 0.5em/1.5 var(--display); }
.depth-way .lead { margin: 0.8rem auto 0; font-size: 1.04rem; }
.depth-way.two .lead { margin-inline: 0; }
.depth-way .ctas { margin-top: 1.3rem; }
.depth-way .does { margin-top: 1rem; }
.depth-way .scene { zoom: 0.84; }
.depth-way .plain.two { margin-top: 1rem; text-align: start; }
.depth-way .form { margin: 1.2rem auto 0; text-align: start; }
.depth-way .th-stats { margin-top: 1.4rem; text-align: start; }
.depth-way .ways { margin-top: 1.2rem; text-align: start; }
.depth-way .started { margin: 0 0 1rem; text-align: start; }
.depth-way .day-prices.four { width: min(100%, 30rem); }
.depth-way .day-prices b small { display: block; color: var(--mute); font: 400 0.76rem/1.5 var(--text); }
.depth-hint { color: var(--mute); font-size: 0.86rem; }
.depth-hint::after { content: ' ↓'; color: var(--gold); }
.depth-rows { display: grid; counter-reset: step; margin-top: 1rem; text-align: start; }
.depth-rows li { display: grid; grid-template-columns: 2rem 8.5rem 1fr; gap: 0.7rem; align-items: baseline; padding-block: 0.7rem; border-top: 1px solid var(--line-soft); counter-increment: step; }
.depth-rows li::before { content: counter(step, arabic-indic); color: var(--lead); font: 700 1.3rem/1 var(--display); }
.depth-rows b { font-weight: 600; }
.depth-rows span { color: var(--sand); font-size: 0.92rem; line-height: 1.65; }
.depth-marks { position: absolute; inset: auto 0 1rem; z-index: 3; display: flex; justify-content: center; gap: clamp(0.5rem, 2.4vw, 2rem); }
.depth-marks a { display: block; padding: 0.4rem 0.2rem; border-top: 1px solid transparent; color: var(--mute); font-size: 0.78rem; text-decoration: none; white-space: nowrap; }
.depth-marks a[data-on] { color: var(--ink); border-color: var(--gold); }
body[data-design='depth'] .mock-switch { bottom: 3.2rem; }

.day-panel .phone-in, .depth-way .phone-in { min-height: 0; }
.day-panel .phone-in .pc-card, .depth-way .phone-in .pc-card { margin-top: 0.4rem; }
.also { margin-top: 0.7rem; color: var(--mute); font-size: 0.88rem; }
@media (max-height: 800px) {
  .day-panel .scene, .depth-way .scene { zoom: 0.72; }
  .day-panel { padding-top: calc(var(--header) + 2.4rem); }
  .day-panel .does li, .depth-way .does li { padding-block: 0.4rem; }
  .day-panel figcaption, .depth-way figcaption { display: none; }
  .day-panel .lead { margin-top: 0.5rem; }
  .day-panel .does { margin-top: 0.7rem; }
}
@media (max-width: 860px) {
  .depth-way.two { grid-template-columns: 1fr; }
  .depth-way > .scene { display: none; }
  .depth-way .moment { display: grid; }
  .depth-way .does li { grid-template-columns: 5rem 1fr; font-size: 0.9rem; padding-block: 0.45rem; }
  .depth-way .lead { font-size: 0.98rem; line-height: 1.7; }
  .depth-way.panel { padding: 1.2rem 1.1rem; }
  .depth-way .way { padding: 1rem 1.1rem; gap: 0.5rem; }
  .depth-way .way h2 { font-size: 1.2rem; }
  .depth-way .way > p:not(.price), .depth-way .way .needs { display: none; }
  .depth-rows li { grid-template-columns: 1.6rem 1fr; }
  .depth-rows span { grid-column: 2; }
  .depth-marks { gap: 0.35rem; align-items: center; }
  .depth-marks a { font-size: 0; padding: 0.7rem 0.1rem; border: 0; }
  .depth-marks a::before { content: ''; display: block; width: 1rem; height: 2px; background: var(--lead-dim); }
  .depth-marks a[data-on] { font-size: 0.74rem; padding-inline: 0.4rem; }
  .depth-marks a[data-on]::before { display: none; }
  .depth-way .th-stats { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
  .depth-way .th-stats b { font-size: 1.7rem; }
  .depth-way .th-stats span { font-size: 0.8rem; }
  .depth-way .plain.two { grid-template-columns: 1fr; }
}


/* ═══════════ الانزياح ═══════════
   على كل جزء غطاء رصاصي فيه حال الزائر، ينزاح إلى أعلى اليسار كما في الشعار، وتحته فعل الوكيل. */
@property --k { syntax: '<number>'; inherits: true; initial-value: 0; }
body[data-design='lid'] main { max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.lid-open { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(2rem, 6vw, 6rem); min-height: 100svh; padding-block: calc(var(--header) + 2rem) 3rem; }
.lid-open.small { min-height: 0; padding-block: calc(var(--header) + 3.5rem) 2.5rem; }
.lid-open > div:last-child { order: -1; }
.lid-open .hero-line { font-size: clamp(2.4rem, 1.7rem + 2.8vw, 4.4rem); }
.lid-open .lead { margin: 1.2rem 0 0; }
.lid-open .started { margin: 0 0 1.5rem; }
.lid-mark { width: min(36vw, 21rem); aspect-ratio: 1; }
.lid-mark.small { width: min(22vw, 10rem); }
.lid-mark svg { width: 100%; height: 100%; overflow: visible; }
.lid-mark .cap { transform: translate(-76px, -28px); }
@media (prefers-reduced-motion: no-preference) {
  .lid-mark .cap { animation: displace 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s both; }
}
@keyframes displace { from { transform: translate(0, 0); } }

.plates { display: grid; gap: clamp(3.8rem, 10vh, 6.5rem); padding-block: 2.5rem 4rem; }
.plates.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.4rem 1.6rem; }
.plates.by-device { display: flex; flex-direction: column; }
html[data-face='phone'] .plates.by-device #phone { order: -1; }
.plate { --k: 0; --tab-w: min(24rem, 64%); --tab-h: 4.4rem; position: relative; transition: --k 0.3s ease-out; scroll-margin-top: calc(var(--header) + 3rem); }
.plate-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); min-height: 21rem; padding: 4.6rem clamp(1.3rem, 3vw, 3rem) clamp(1.6rem, 3vw, 2.6rem); }
.plate.lit .plate-body { box-shadow: inset 0 0 0 1px rgb(255 214 150 / 0.32), 0 2rem 4rem -2rem rgb(0 0 0 / 0.9); }
.plate-text.wide { grid-column: 1 / -1; }
.plate-text h2 { font: 700 clamp(1.8rem, 1.4rem + 1.5vw, 2.8rem)/1.3 var(--display); }
.plate-text .lead { margin: 0.8rem 0 0; font-size: 1.04rem; }
.plate-text .ctas { margin-top: 1.4rem; }
.plate-text .needs { margin-top: 0.8rem; color: var(--mute); font-size: 0.84rem; }
.plate-text .th-steps, .plate-text .stores, .plate-text .qr-row { margin-top: 1.4rem; }
.plate-text .th-stats { margin-top: 1.6rem; }
.plain.two { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; margin-top: 1.2rem; }
.plate-text.plan { display: flex; flex-direction: column; }
.plate-text.plan h3 { font: 700 1.5rem/1.3 var(--display); }
.plate-text.plan ul { display: grid; margin: 0.8rem 0 1.4rem; }
.plate-text.plan li { padding-block: 0.5rem; border-top: 1px solid var(--line-soft); color: var(--sand); font-size: 0.92rem; }
.plate-text.plan .note { color: var(--gold); font-size: 0.84rem; }
.plate-text.plan .for { color: var(--mute); font-size: 0.82rem; }
.plate-text.plan .button, .plate-text.plan .arrow-link { align-self: flex-start; }
.lid-prices { display: grid; margin-top: 1.4rem; }
.lid-prices li { display: grid; grid-template-columns: 10rem 8rem 1fr; gap: 1rem; align-items: baseline; padding-block: 0.8rem; border-top: 1px solid var(--line-soft); color: var(--sand); font-size: 0.94rem; }
.lid-prices b { color: var(--ink); font: 700 1.15rem var(--display); }
.lid-prices .price { margin: 0; font-size: 1.6rem; color: var(--ink); }
.plate-lid {
  position: absolute;
  left: calc(var(--k) * -1.1rem);
  top: calc(var(--k) * -1.7rem);
  z-index: 2;
  display: grid;
  align-items: center;
  width: calc(100% - var(--k) * (100% - var(--tab-w)));
  height: calc(100% - var(--k) * (100% - var(--tab-h)));
  padding-inline: calc(1.3rem + (1 - var(--k)) * 2.2rem);
  border-radius: 1rem;
  background: linear-gradient(160deg, #8d9198 0%, #70747b 52%, #5c6067 100%);
  box-shadow: 0 1.2rem 2.4rem -1rem rgb(0 0 0 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.28);
  color: #0f0e0c;
  overflow: hidden;
}
.plate-lid p { font: 700 calc(1.05rem + (1 - var(--k)) * clamp(0.9rem, 2.6vw, 2.2rem))/1.3 var(--display); }

@media (max-width: 860px) {
  .lid-open { grid-template-columns: 1fr; min-height: 0; padding-top: calc(var(--header) + 1.5rem); gap: 1.5rem; }
  .lid-open > div:last-child { order: 0; }
  .lid-mark { width: min(52vw, 13rem); margin-inline: auto; }
  .lid-mark.small { width: 6.5rem; margin-inline: 0; }
  .plate { --tab-w: 78%; --tab-h: 3.6rem; }
  .plate-body { grid-template-columns: 1fr; min-height: 17rem; padding-top: 3.6rem; }
  .plates.grid { grid-template-columns: 1fr; }
  .plain.two { grid-template-columns: 1fr; }
  .lid-prices li { grid-template-columns: 1fr auto; }
  .lid-prices li > span:last-child { grid-column: 1 / -1; }
  .plate-lid p { font-size: calc(0.92rem + (1 - var(--k)) * 0.9rem); }
}


/* ═══════════ الخريطة ═══════════
   One tall section; its stage stays on the screen, and the scroll flies the camera (the map's viewBox,
   designs.ts map) from stop to stop. At each stop its story plays by the stop's own time (data-t). */
body[data-design='map'] .footer { margin-top: 0; }
.mp { position: relative; height: calc((var(--stops) - 1) * 130svh + 100svh); }
.mp-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; font-family: var(--text); }
.map text { text-anchor: middle; }

/* the city */
.ground { fill: #0a0908; }
.dune { fill: none; stroke: #2b2115; stroke-width: 3; opacity: 0.8; }
.ring { fill: #0e0d0b; stroke: #26221d; stroke-width: 18; }
.road { fill: none; stroke: #1f1c18; stroke-width: 12; stroke-linecap: round; }
.wadi { fill: none; stroke: #0f1c16; stroke-width: 64; stroke-linecap: round; }
.blk { fill: #151310; stroke: #1d1a16; stroke-width: 1; }
.blk.lit { fill: #2b2416; }

/* the places: each agent's pin, lit while its story plays */
.place { color: var(--act); }
.place .halo { fill: url(#mp-glow); opacity: 0.15; transition: opacity 0.6s; }
.place.hot .halo { opacity: 1; }
.place .disc { fill: #11100e; stroke: var(--act); stroke-width: 3; }
.place .pname { fill: #cfc9c0; font-size: 22px; font-weight: 600; paint-order: stroke; stroke: #0a0908; stroke-width: 6px; }
.glyph * { fill: none; stroke: var(--act); stroke-width: 4; stroke-linejoin: round; opacity: 0.45; transition: opacity 0.6s; }
.glyph .pool { fill: rgb(61 187 140 / 0.12); }
.place.hot .glyph * { opacity: 1; }

/* a story: hidden until its stop; each part comes in at its own time */
.story { opacity: 0; transition: opacity 0.5s; }
.story.live { opacity: 1; }
.story [data-t] { opacity: 0; transition: opacity 0.45s; }
.story [data-t].on { opacity: 1; }
.route { fill: none; stroke: #f2a93b; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 10px rgb(242 169 59 / 0.7)); }
.route.hammam { stroke: #ef6a4c; filter: drop-shadow(0 0 12px rgb(239 106 76 / 0.75)); }

.bub rect { fill: rgb(17 16 14 / 0.94); stroke: #3a352f; stroke-width: 2; }
.bub text { fill: #f1ece4; font-size: 19px; font-weight: 500; }
.bub.me rect { stroke: #f2a93b; }
.bub.act rect { stroke: #ef6a4c; } .bub.act text { fill: #ffb39f; }
.bub.cust rect { fill: #26221e; stroke: #3a352f; }
.bub.reply rect { fill: #10241c; stroke: #3dbb8c; } .bub.reply text { fill: #c9f1df; }
.bub.done rect { fill: #1c1710; stroke: #f2a93b; } .bub.done text { fill: #ffd18a; font-weight: 700; }

.sheet rect { fill: #f3ede3; } .sheet line { stroke: #b8afa1; stroke-width: 5; stroke-linecap: round; }
.sheet.hammam rect { fill: #fff1ec; } .sheet.hammam line { stroke: #ef6a4c; }
.phone-g > rect:first-child { fill: #070707; stroke: #3dbb8c; stroke-width: 3; }
.ph-h { fill: #9be8c9; font-size: 10px; font-weight: 600; } .ph-t { fill: #fff; font-size: 13.5px; font-weight: 600; }
.ph-s { fill: #ffd18a; font-size: 10.5px; font-weight: 600; }
.ph-go { fill: #3dbb8c; } .ph-b { fill: #062016; font-size: 11px; font-weight: 700; }
.clip9 > rect:first-child { fill: #1f6f57; stroke: #9be8c9; stroke-width: 2; }
.clip9 .sweep { fill: rgb(255 255 255 / 0.1); }
.c-t { fill: #fff; font-size: 22px; font-weight: 700; } .c-s { fill: #d6fff0; font-size: 16px; }
.list > rect:first-child { fill: rgb(17 16 14 / 0.95); stroke: #4a86ee; stroke-width: 2; }
.list line { stroke: #34302b; stroke-width: 9; stroke-linecap: round; }
.l-h { fill: #b5cfff; font-size: 18px; font-weight: 600; }
.odd rect { fill: rgb(242 169 59 / 0.14); stroke: #f2a93b; stroke-width: 2; }
.l-o { fill: #ffd18a; font-size: 18px; font-weight: 700; } .l-s { fill: #f1ece4; font-size: 16px; }
.screen > rect:first-child { fill: #18222d; stroke: #f2a93b; stroke-width: 2; }
.screen .play { fill: rgb(255 255 255 / 0.14); }
.sub rect { fill: rgb(0 0 0 / 0.78); } .sub text { fill: #fff; font-size: 16px; }
.sub.en text { direction: ltr; }
.screen:has(.ar.on) .en { opacity: 0; }

/* the line beside the map, one a stop */
.mp-caps { position: absolute; z-index: 2; inset-inline-start: var(--gutter); bottom: 10svh; width: min(31rem, 84vw); }
.mp-caps::before { content: ''; position: absolute; inset: -5rem -6rem -5rem -4rem; z-index: -1; background: radial-gradient(closest-side, rgb(10 9 8 / 0.85), transparent); pointer-events: none; }
.mp-cap { position: absolute; inset-inline: 0; bottom: 0; display: grid; gap: 0.6rem; opacity: 0; translate: 0 1rem; transition: opacity 0.45s, translate 0.45s; pointer-events: none; }
.mp-cap.now { opacity: 1; translate: 0 0; pointer-events: auto; }
.mp-who { display: flex; align-items: center; gap: 0.55rem; color: var(--act, var(--gold)); font: 600 1.05rem/1.4 var(--text); }
.mp-mark { width: 2rem; height: 2rem; }
.mp-tag { padding: 0.1rem 0.6rem; border-radius: 1rem; background: rgb(255 255 255 / 0.08); color: #dcd6cc; font-size: 0.82rem; font-weight: 500; }
.mp-cap h2 { font: 700 clamp(1.7rem, 1.3rem + 1.6vw, 2.7rem)/1.25 var(--display); text-wrap: balance; }
.mp-dots { position: absolute; z-index: 2; inset-inline-end: var(--gutter); top: 50%; translate: 0 -50%; display: grid; gap: 0.6rem; }
.mp-dots i { width: 3px; height: 1.6rem; border-radius: 2px; background: rgb(255 255 255 / 0.16); transition: background 0.4s; }
.mp-dots i.on { background: var(--gold); }

@media (max-width: 860px) {
  .mp-caps { inset-inline: var(--gutter); width: auto; bottom: 6svh; }
  .mp-cap h2 { font-size: clamp(1.45rem, 1.2rem + 2vw, 1.9rem); }
  .mp-dots { display: none; }
}
@media (prefers-reduced-motion: reduce) { .story, .story [data-t], .mp-cap { transition: none; } }

/* while a stop's story plays, the other places step back */
.map .place { transition: opacity 0.5s; }
.map.focus .place:not(.hot) { opacity: 0.22; }

/* a narrow screen: the parts that have a second place take it; the questions give way to the phone */
.map.narrow [data-n] { transform: var(--n); }
.map.narrow .wide-only { display: none; }
.map.narrow .story:has(.phone-g.on) .early { opacity: 0; }


/* ═══════════ الجامع ═══════════
   الافتتاح: الكلام على جهة، والصحراء وشمسها من الغبار على الأخرى. ثم أجزاء تحت أغطية رصاصية تنزاح،
   وتحتها كلام بخط كبير كصفحة كتاب. والختام الصحراء نفسها عند الغروب. */
body[data-design='merge'] main { max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.mg-open { --sun: min(34svh, 25vw, 20rem); position: relative; display: grid; align-content: center; min-height: 100svh; padding-block: calc(var(--header) + 2rem) 24svh; }
.mg-open.small { --sun: min(26svh, 18vw, 14rem); min-height: min(100svh, 50rem); padding-bottom: 14svh; }
.mg-copy { position: relative; z-index: 2; max-width: 34rem; }
.mg-open .hero-line { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 5.2rem); line-height: 1.16; }
.mg-open.small .hero-line { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 4.2rem); }
.mg-open .kicker { margin-bottom: 1.1rem; }
.mg-open .lead { margin: 1.3rem 0 0; font-size: 1.12rem; }
.mg-open .ctas { margin-top: 1.7rem; }
.mg-open .started { margin: 0 0 1.4rem; }
/* the desert lies across the page's foot, its valley under the sun on the far side from the words */
.mg-desert { position: absolute; bottom: 0; inset-inline-end: calc(-1 * var(--gutter)); width: 66%; height: 38%; pointer-events: none; }
.mg-sun { position: absolute; z-index: 1; inset-inline-end: calc(33% - var(--gutter) - var(--sun) / 2); bottom: calc(38% * 0.46); width: var(--sun); aspect-ratio: 1; touch-action: pan-y; }

.mg-plate .plate-body { display: block; min-height: 0; padding: 5rem clamp(1.3rem, 4vw, 4rem) clamp(1.8rem, 3.5vw, 3.2rem); }
.mg-head { max-width: 46rem; margin-bottom: 2rem; }
.mg-name { font: 700 clamp(3.4rem, 2rem + 5vw, 6.6rem)/1.08 var(--display); }
.mg-title { font: 700 clamp(2rem, 1.5rem + 2vw, 3.2rem)/1.25 var(--display); }
.mg-say { margin-top: 0.8rem; color: var(--sand); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); line-height: 1.7; }
.mg-ledger { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); margin-bottom: 2rem; }
.mg-ledger h3 { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.4rem; font: 600 0.9rem/1.6 var(--text); }
.mg-ledger h3::before { content: ''; width: 1.8rem; height: 2px; }
.mg-ledger .his h3 { color: var(--gold); }
.mg-ledger .his h3::before { background: var(--gold); }
.mg-ledger .yours h3 { color: var(--lead); }
.mg-ledger .yours h3::before { background: var(--lead); }


.mg-plate .ctas { margin-top: 0.5rem; }
.mg-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.mg-two.one { grid-template-columns: 1fr; }
.mg-two .does { margin-top: 0; }
.mg-plate .th-table { margin-top: -0.5rem; }
.mg-plate .th-row:first-child { border-top: 0; }
.mg-plate .needs { margin-top: 0.9rem; color: var(--mute); font-size: 0.84rem; }
.mg-plate .stores, .mg-plate .qr-row { margin-top: 1.2rem; }
.mg-plate .form { margin-top: 0.4rem; }
.mg-faq { padding-top: 1rem; }
.mg-faq .faq { margin-inline: 0; }

/* the close: the same desert at dusk, the sun going down into its valley as the page ends */
.mg-dusk { position: relative; min-height: max(84svh, 32rem); padding-top: 12svh; text-align: center; }
.mg-dusk h2 { position: relative; z-index: 2; font: 700 clamp(1.9rem, 1.5rem + 1.6vw, 3rem)/1.3 var(--display); }
.mg-dusk .ctas { position: relative; z-index: 2; margin-top: 1.5rem; }
.mg-dusk-land { position: absolute; inset-inline: calc(-1 * var(--gutter)); bottom: 0; height: 50%; pointer-events: none; }
.mg-dusk-sun { position: absolute; left: 50%; top: 0; width: min(20svh, 30vw, 12rem); aspect-ratio: 1; translate: -50% 0; }
body[data-design='merge'] .footer { margin-top: 0; }

/* the reading line: a hair down the page's side, gold as far as the page has been read */
body[data-design='merge'] .rail::before { content: ''; position: absolute; inset-block: -0.6rem; inset-inline-start: 0; width: 1px; background: var(--lead-dim); }
body[data-design='merge'] .rail::after { content: ''; position: absolute; top: -0.6rem; inset-inline-start: 0; width: 1px; height: calc((100% + 1.2rem) * var(--read, 0)); background: var(--gold); }
body[data-design='merge'] .rail i { position: relative; z-index: 1; }

@media (max-width: 860px) {
  .mg-open, .mg-open.small { --sun: min(26svh, 54vw); align-content: start; min-height: max(100svh, 40rem); padding-bottom: 0; }
  .mg-open.small { --sun: min(20svh, 42vw); min-height: max(86svh, 36rem); }
  .mg-desert { inset-inline: calc(-1 * var(--gutter)); width: auto; height: 36%; }
  .mg-sun { inset-inline-end: auto; left: 50%; translate: -50% 0; bottom: calc(36% * 0.42); }
  .mg-open .lead { font-size: 1.02rem; }
  .mg-plate .plate-body { padding: 4rem 1.15rem 1.6rem; }
  .mg-ledger, .mg-two { grid-template-columns: 1fr; }
  .mg-ledger .plain li { font-size: 1rem; padding-block: 0.6rem; }
  .mg-dusk-land { height: 44%; }
}


/* ── each agent's own colour (11-14, the owner: all three were gold; each needs its identity) ──
   The mark and the lead are the same for all; what is the agent's own act takes its colour:
   Hammam gold, Raseeq turquoise, Qanan indigo. Inside a part or a product page it takes the place of
   the gold (the header and the brand keep theirs). */
/* (11-20) the colours are the bodies of the agents' marks (gen/marks.mjs): Raseeq's and Qanan's from the
   product, Hammam's new; the gold stays m7bok's and every agent's gold shape */
[data-agent] { --act: #ef6a4c; --act-hi: #ffb39f; --act-lo: #c24e35; }
[data-agent='raseeq'] { --act: #3dbb8c; --act-hi: #9be8c9; --act-lo: #27946b; }
[data-agent='qanan'] { --act: #4a86ee; --act-hi: #b5cfff; --act-lo: #2f63bf; }
body[data-agent] main, .mg-plate[data-agent] { --gold: var(--act); --glint: var(--act-hi); }

/* ── the lid (11-14, the owner: the grey plate was not the lead dust; the two dusts must read apart) ──
   The lid is the lead dust itself (site.ts, seam): a veil of lead grains over the whole part, with the
   visitor's question on it. The agent's colour pushes it out the way the cap is displaced in the mark
   (left and up, 76 : 28), and the part shows where the veil has left, softly, as sand does. */
.mg-plate { overflow: clip; border-radius: 1rem; }
html.js body[data-design='merge'] .mg-plate .plate-body {
  -webkit-mask-image: linear-gradient(to right, transparent var(--mr, 100%), #000 calc(var(--mr, 100%) + 6rem)), linear-gradient(to bottom, transparent var(--mb, 100%), #000 calc(var(--mb, 100%) + 6rem));
  mask-image: linear-gradient(to right, transparent var(--mr, 100%), #000 calc(var(--mr, 100%) + 6rem)), linear-gradient(to bottom, transparent var(--mb, 100%), #000 calc(var(--mb, 100%) + 6rem));
}
.mg-plate .plate-lid {
  inset: 0;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: clamp(2.6rem, 9vh, 5.5rem) clamp(1.6rem, 5vw, 4.5rem);
  border-radius: 1rem;
  background: none;
  box-shadow: none;
  overflow: visible;
  color: #d9dce1;
  transform: translate3d(var(--lx, 0px), var(--ly, 0px), 0);
  will-change: transform;
  pointer-events: none;
}
.mg-plate .plate-lid small { color: #8d9198; font: 500 0.9rem/1.4 var(--text); letter-spacing: 0.02em; }
.mg-plate .plate-lid p { max-width: 18em; font: 700 clamp(2rem, 1.3rem + 2.8vw, 3.8rem)/1.25 var(--display); text-wrap: balance; text-shadow: 0 0 1.6rem rgb(2 1 1 / 0.9), 0 0 0.4rem rgb(2 1 1 / 0.7); }
.mg-plate .plate-lid small, .mg-plate .plate-lid p { opacity: calc(1 - var(--fade, 0)); }
html:not(.js) .mg-plate .plate-lid { display: none; }

/* ── the words of a part, told apart (11-14, the owner: no gold boxes or dots; what stays yours as
   readable as what he takes) ── the agent's name in its colour; the two columns of the ledger read the
   same size, told apart by their heads and their ink, nothing drawn around them */
.mg-name { color: var(--act, var(--gold)); background: linear-gradient(180deg, var(--act-hi, #ffdc92) 8%, var(--act, #f4ae42) 52%, var(--act-lo, #c98a2e) 96%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mg-plate .mg-say { color: var(--ink); font-weight: 500; }
.mg-short { max-width: 36em; margin-top: 0.6rem; color: var(--sand); font-size: 1.02rem; line-height: 1.8; }
.mg-ledger { align-items: start; gap: clamp(1.5rem, 5vw, 4.5rem); }
.mg-ledger h3 { margin-bottom: 0.3rem; font: 600 1rem/1.6 var(--text); }
.mg-ledger .his h3 { color: var(--act, var(--gold)); }
.mg-ledger .his h3::before { background: var(--act, var(--gold)); }
.mg-ledger .yours h3 { color: #c9ccd2; }
.mg-ledger .yours h3::before { background: #9a9ea5; }
.mg-ledger .plain li { font-size: 1.1rem; line-height: 1.65; padding-block: 0.8rem; border-top-color: rgb(255 255 255 / 0.07); }
.mg-ledger .plain li:first-child { border-top: 0; }
.mg-ledger .his li { color: var(--ink); font-weight: 500; }
.mg-ledger .yours li { color: #dfe1e5; font-weight: 400; }

@media (max-width: 860px) {
  .mg-plate .plate-lid { padding: 2.4rem 1.3rem; }
  .mg-plate .plate-lid p { font-size: clamp(1.6rem, 1.1rem + 3.4vw, 2.3rem); }
  .mg-ledger .plain li { font-size: 1.02rem; padding-block: 0.65rem; }
}
/* the part's own surface stays under its veil (the dust lies on it); only what is written on it waits */
body[data-design='merge'] .mg-plate { background: rgb(13 11 10 / 0.94); box-shadow: inset 0 0 0 1px var(--line), 0 2rem 4rem -2rem rgb(0 0 0 / 0.9); }
body[data-design='merge'] .mg-plate .plate-body { background: none; box-shadow: none; }
/* the agent's own line under the ledger: an AI tool, and it can be wrong (faint; Qanan's is read) */
.mg-note { max-width: 46em; margin: 0.4rem 0 0; color: var(--mute); font-size: 0.88rem; line-height: 1.7; }
.mg-note.shown { color: #c9ccd2; font-size: 0.98rem; }

/* ── the agents' marks (11-20, the owner: each agent shows its identity) ── */
.mg-id { display: inline-flex; align-items: center; gap: clamp(0.7rem, 1.6vw, 1.2rem); color: inherit; text-decoration: none; }
.mg-mark { flex: none; width: clamp(3.2rem, 2rem + 4vw, 5.6rem); height: auto; aspect-ratio: 1; }
.mg-kick-mark { width: 1.9em; height: 1.9em; margin-inline-end: 0.45em; vertical-align: -0.62em; }
.mg-mini { flex: none; width: 1.7rem; height: 1.7rem; }

/* the ways into a part's detail: the visitor's own questions, each to its place on the agent's page */
.mg-doors { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(1.5rem, 5vw, 4.5rem); margin-top: 0.6rem; }
.mg-doors-head { grid-column: 1 / -1; margin-bottom: 0.3rem; color: var(--mute); font: 600 0.9rem/1.6 var(--text); }
.mg-doors a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 0; border-top: 1px solid rgb(255 255 255 / 0.08);
  color: var(--ink); font: 500 1.08rem/1.5 var(--text); text-decoration: none; transition: color 0.2s, padding 0.2s; }
.mg-doors a i { color: var(--act, var(--gold)); font-style: normal; transition: translate 0.2s; }
.mg-doors a:hover, .mg-doors a:focus-visible { color: var(--act-hi, var(--gold)); }
.mg-doors a:hover i, .mg-doors a:focus-visible i { translate: -0.35rem 0; }

/* the plans: two upright cards side by side (one above the other on a phone) */
.mg-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.8rem); max-width: 58rem; }
.mg-plan { display: flex; flex-direction: column; gap: 0.5rem; padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: 1.1rem;
  background: rgb(255 255 255 / 0.025); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.09); }
.mg-plan.lit { background: rgb(242 169 59 / 0.06); box-shadow: inset 0 0 0 1.5px rgb(242 169 59 / 0.55); }
.mg-plan .for { color: var(--mute); font: 500 0.88rem/1.4 var(--text); }
.mg-plan h3 { font: 700 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.2 var(--display); }
.mg-plan .price { display: flex; align-items: baseline; gap: 0.35rem; margin: 0.6rem 0 0; font: 700 clamp(2.8rem, 2rem + 2.4vw, 4rem)/1 var(--display); }
.mg-plan .price .riyal { width: 0.5em; height: auto; fill: currentColor; }
.mg-plan .price small { color: var(--mute); font: 500 0.95rem/1 var(--text); }
.mg-plan .note { color: var(--sand); font-size: 0.92rem; }
.mg-plan.lit .note { color: var(--gold); }
.mg-plan ul { display: grid; gap: 0; margin: 0.8rem 0 1.4rem; padding: 0; list-style: none; }
.mg-plan li { padding: 0.7rem 0; border-top: 1px solid rgb(255 255 255 / 0.07); color: #dfe1e5; font-size: 1.02rem; line-height: 1.55; }
.mg-plan li.agent { display: flex; align-items: center; gap: 0.75rem; }
.mg-plan li.agent b { color: var(--act); font-weight: 600; }
.mg-plan-act { margin-top: auto; }
.mg-plan-act .button { width: 100%; justify-content: center; }

@media (max-width: 860px) {
  .mg-doors { grid-template-columns: 1fr; }
  .mg-plans { grid-template-columns: 1fr; }
}
/* the header and the phone's menu: each agent by its small mark */
.nav a { display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-mark { flex: none; width: 1.25rem; height: 1.25rem; }
.menu a b { display: inline-flex; align-items: center; gap: 0.5rem; }
.menu .nav-mark { width: 1.5rem; height: 1.5rem; }
.mg-open .kicker:has(.mg-kick-mark) { display: flex; align-items: center; gap: 0.55em; }
.mg-open .kicker .mg-kick-mark { margin: 0; vertical-align: 0; }

/* (11-21) a scene's screen shown still, at its end, in a part of «الجامع» */
.sc-still { max-width: 48rem; margin-top: 0.4rem; }
.sc-still .subs .en, .sc-still .ask-bar { display: none; }
.sc-still .remote .ptr { left: 30%; top: 78%; }
[data-agent='brand'] { --act: #f2a93b; --act-hi: #ffdc92; --act-lo: #c98a2e; }

/* the page's side of the rooms (11-21): the scroll lock while a room is open, the four as doors, and the
   translation's small clip over its line under the world */
html.rm-open { overflow: hidden; }
.rm-host { position: relative; z-index: 300; }
/* the world: each of the four is a door now */
.pw-sat { cursor: pointer; }
.pw-sat .pw-sat-mark, .pw-sat .pw-win { transition: filter 0.3s; }
.pw-sat:hover .pw-sat-mark, .pw-sat:hover .pw-win, .pw-sat:focus-visible .pw-sat-mark { filter: drop-shadow(0 0 1.1rem var(--act)); }
.pw-sat:hover b { color: var(--act-hi); }
/* the translation, shown small over its line under the world */
.pw-more { position: relative; cursor: pointer; }
.tr-pop { position: absolute; bottom: calc(100% + 0.6rem); inset-inline-start: 0; z-index: 5; width: 16rem; opacity: 0; translate: 0 0.4rem; pointer-events: none; transition: opacity 0.3s, translate 0.3s; }
.pw-more:hover .tr-pop, .pw-more:focus-within .tr-pop, .pw-more.on .tr-pop { opacity: 1; translate: 0 0; }
.tr-frame { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 0.7rem; background: linear-gradient(160deg, #1f2a3a, #0f141c); box-shadow: 0 1rem 2rem rgb(0 0 0 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.tr-chart { position: absolute; inset: 18% 10% 34%; display: block; border-bottom: 1px solid rgb(255 255 255 / 0.15); background: linear-gradient(170deg, transparent 55%, rgb(61 187 140 / 0.35) 56%, transparent 75%); }
.tr-en, .tr-ar { position: absolute; bottom: 9%; inset-inline: 6%; padding: 0.2rem 0.4rem; border-radius: 0.3rem; background: rgb(0 0 0 / 0.65); color: #fff; font: 600 0.68rem/1.4 var(--text); text-align: center; }
.tr-en { direction: ltr; animation: tr-en 5s infinite; }
.tr-ar { animation: tr-ar 5s infinite; }
.tr-frame em { position: absolute; top: 8%; inset-inline-end: 6%; display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.5rem; border-radius: 1rem; background: #f2a93b; color: #1d1a16; font: 700 0.62rem/1 var(--text); font-style: normal; animation: tr-btn 5s infinite; }
.tr-frame em svg { width: 0.8rem; height: 0.8rem; fill: none; stroke: currentColor; stroke-width: 2; }
@keyframes tr-en { 0%, 42% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes tr-ar { 0%, 48% { opacity: 0; } 56%, 100% { opacity: 1; } }
@keyframes tr-btn { 0%, 22% { opacity: 0; scale: 0.9; } 28%, 46% { opacity: 1; scale: 1; } 34% { scale: 0.92; } 54%, 100% { opacity: 0; } }


@media (max-width: 860px) { .tr-pop { width: 13rem; } }

/* the translation line is a door to its scene now (11-21) */
.pw-see { color: var(--gold); font-style: normal; font-weight: 700; white-space: nowrap; }
.pw-more:hover .pw-see, .pw-more:focus-visible .pw-see { text-decoration: underline; }
.pw-more:focus-visible { outline: 2px solid var(--gold); outline-offset: 0.3rem; border-radius: 0.4rem; }

/* the agent sections: their height is their scroll, one beat per hero and one for the short hooks (11-21) */
.ag-sec { position: relative; height: calc(var(--beats) * 120svh + 20svh); background: #0e0d0c; }
.ag-host { display: block; height: 100%; }

/* the world's visions (11-21): hover an agent and his mark flows out into a picture of grains, with his lines */
.pw-vision { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; }
.pw-ring { transition: transform 0.1s linear, opacity 0.45s; }
.pw-stage.vis .pw-ring, .pw-stage.vis .pw-words, .pw-stage.vis .pw-hint { opacity: 0 !important; transition: opacity 0.45s; }
.pw-vlines { position: absolute; top: 50%; inset-inline-start: 7%; z-index: 5; display: grid; gap: 1.5rem; width: min(30rem, 36%); translate: 0 -50%; pointer-events: none; }
.pw-vlines p { margin: 0; opacity: 0; translate: 0 0.8rem; filter: blur(6px); transition: opacity 0.5s, translate 0.5s, filter 0.5s; }
.pw-vlines.on p { opacity: 1; translate: 0 0; filter: none; transition: opacity 0.8s, translate 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s; }
.pw-vlines.on p:nth-child(1) { transition-delay: 0.4s; } .pw-vlines.on p:nth-child(2) { transition-delay: 0.65s; } .pw-vlines.on p:nth-child(3) { transition-delay: 0.9s; } .pw-vlines.on p:nth-child(4) { transition-delay: 1.15s; }
.pw-vlines .vk { color: #ef6a4c; font: 700 1rem/1 var(--text); }
.pw-vlines .vl { color: #d9d3ca; font: 400 1.12rem/1.6 var(--text); }
.pw-vlines .vl b { display: block; margin-bottom: 0.15rem; background: linear-gradient(180deg, #ffe3a6, #f2a93b 60%, #c98a2e); -webkit-background-clip: text; background-clip: text; color: transparent; font: 700 clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem)/1.25 var(--display); }
@media (max-width: 860px) {
  .pw-vlines { top: auto; bottom: 7svh; inset-inline: 7%; width: auto; gap: 0.8rem; translate: none; }
  .pw-vlines .vl { font-size: 0.92rem; }
  .pw-vlines .vl b { font-size: 1.3rem; }
}

/* the page's floating dust fades while an agent's section fills the screen */
#dust { transition: opacity 0.6s; }
html.in-agent #dust { opacity: 0; }


/* ═══════════ النموذج الأولي ═══════════ (designs.ts, proto: the scroll drives --p of each section) */

/* 1. m7bok's world: our mark, and around it what we make */
.pw { position: relative; height: 420svh; }
.pw-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.pw-stage::before { content: ''; position: absolute; width: 70vmin; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgb(242 169 59 / 0.16), transparent); }
.pw-ring { position: relative; width: 0; height: 0; translate: 0 -5svh; transform: scale(var(--zoom, 1)); transition: transform 0.1s linear; }
/* the marks are drawn in dust on the canvas, as on Raseeq's setup page: the shape itself glass-faint,
   its grains lit over it; these elements are only their places */
.pw-sat-mark { position: relative; }
.gm { position: absolute; inset: -50%; width: 200%; height: 200%; display: block; pointer-events: none; }
.pw-ring { z-index: 2; }
.pw-core { position: absolute; left: 0; top: 0; translate: -50% -50%; width: clamp(7rem, 15vmin, 10.5rem); aspect-ratio: 1; }
.pw-sat { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 0.35rem; width: 11rem; text-align: center;
  transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) scale(var(--s, 0.6)); opacity: var(--o, 0); will-change: transform, opacity; }
.pw-sat-mark { display: block; width: clamp(3.6rem, 7vmin, 5rem); aspect-ratio: 1; }
.pw-win { display: block; width: clamp(6rem, 12vmin, 8.5rem); aspect-ratio: 16 / 10; border-radius: 0.6rem; background-size: cover; background-position: top center;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 1rem 2rem -0.6rem rgb(0 0 0 / 0.8); }
.pw-sat b { color: #f1ece4; font: 700 1.15rem/1.2 var(--display); }
.pw-sat small { color: var(--act-hi, #cfc9c0); font-size: 0.88rem; }
.pw-sat.dim { filter: saturate(0.4); }
.pw-words { position: absolute; bottom: 9svh; inset-inline: 0; display: grid; justify-items: center; gap: 0.4rem; text-align: center; opacity: 0; translate: 0 1rem; transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), translate 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.pw-words.on { opacity: 1; translate: 0 0; }
.pw-kick { color: var(--gold); font: 600 0.95rem/1.4 var(--text); }
.pw-words h2 { font: 700 clamp(1.8rem, 1.3rem + 2vw, 3rem)/1.2 var(--display); }

/* 2. Hammam in your phone: a real iPhone, the app's real screens */
.ph { position: relative; height: 520svh; }
.ph-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(16rem, 30rem) 1fr; align-items: center;
  gap: clamp(1rem, 4vw, 4rem); max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding: calc(var(--header) + 1rem) var(--gutter) 2rem; }
.ph-words { display: grid; gap: 1rem; align-content: center; }
.ph-kick { display: flex; align-items: center; gap: 0.55rem; color: #ef6a4c; font: 600 1.05rem/1.4 var(--text); }
.ph-kick-mark { width: 2rem; height: 2rem; }
.ph-lines { display: grid; }
.ph-lines h2 { grid-area: 1 / 1; font: 700 clamp(2rem, 1.4rem + 2.2vw, 3.4rem)/1.2 var(--display); text-wrap: balance; opacity: 0; translate: 0 0.8rem;
  transition: opacity 0.35s, translate 0.35s; }
.ph-lines h2.now { opacity: 1; translate: 0 0; transition: opacity 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1), translate 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1); }
.ph-dots { display: flex; gap: 0.45rem; }
.ph-dots i { width: 1.7rem; height: 3px; border-radius: 2px; background: rgb(255 255 255 / 0.14); transition: background 0.5s; }
.ph-dots i.on { background: #ef6a4c; }

.ph-device { --phone: min(clamp(15rem, 23vw, 20.5rem), calc((100svh - var(--header) - 6rem) * 0.462)); position: relative; height: 100%; display: grid; place-items: center end; perspective: 1600px; }
.ph-glow { position: absolute; inset-inline-end: 4%; top: 50%; width: 30rem; aspect-ratio: 1; translate: 0 -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(239 106 76 / 0.28), rgb(242 169 59 / 0.1) 55%, transparent); filter: blur(8px); }
.iphone { position: relative; z-index: 1; width: var(--phone); aspect-ratio: 828 / 1792; padding: 0.7rem; border-radius: 3.2rem; box-sizing: content-box;
  background: linear-gradient(140deg, #4b4a4f, #1d1d20 30%, #2b2a2e 70%, #48474c);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.16), inset 0 0 0 7px #0a0a0b, 0 3rem 6rem -1.5rem rgb(0 0 0 / 0.9), 0 0 0 1px rgb(0 0 0 / 0.6);
  transform: translateY(var(--ty, 0)) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transform-style: preserve-3d; will-change: transform; }
.iphone::after { content: ''; position: absolute; top: 1.35rem; left: 50%; translate: -50% 0; width: 5.4rem; height: 1.55rem; border-radius: 1rem; background: #000; z-index: 3; }
.iphone .btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #2b2a2e, #5a595e); }
.iphone .b1 { left: -3px; top: 16%; height: 4%; } .iphone .b2 { left: -3px; top: 23%; height: 8%; } .iphone .b3 { left: -3px; top: 33%; height: 8%; } .iphone .b4 { right: -3px; top: 25%; height: 12%; }
.iphone-screen { position: relative; width: 100%; height: 100%; border-radius: 2.55rem; overflow: hidden; background: #111; }
/* the app inside, rebuilt after its real screens; its sizes follow the phone's own width */
.iphone-screen { container-type: inline-size; }
.app { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto 1fr auto; font-family: var(--text); font-size: calc(100cqw / 23); color: #f1ece4; background: #141312; }
.app svg { width: 1.45em; height: 1.45em; fill: none; stroke: #d9d4cc; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-status { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 0.9em 1.6em 0.3em; font-size: 0.9em; }
.app-status .bat { width: 1.9em; height: 0.85em; border-radius: 0.25em; background: #34c759; }
.app-head { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 0.7em 1.1em 0.8em; border-bottom: 1px solid #262320; }
.app-head b { display: flex; align-items: center; gap: 0.35em; font: 700 1.3em/1 var(--display); }
.app-head span { display: flex; gap: 0.9em; }
.app-mark { width: 1.2em; height: 1.2em; }
.app-chat { position: relative; overflow: hidden; }
.app-thread { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.7em; padding: 0.9em 1em 1em;
  opacity: 0; translate: 0 12%; transition: opacity 0.5s, translate 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.app-thread.on { opacity: 1; translate: 0 0; }
.app-thread.past { opacity: 0; translate: 0 -18%; }
.app-me { align-self: flex-start; max-width: 86%; margin: 0; padding: 0.6em 0.85em; border-radius: 0.9em; background: #24211e; box-shadow: inset 0 0 0 1px #34302b; font-weight: 600; line-height: 1.55; }
.app-me.photo { display: grid; gap: 0.45em; }
.rcpt { display: block; width: 7em; aspect-ratio: 3 / 4; border-radius: 0.5em; background: url(/v2/assets/real/receipt.jpg) center / cover; }
.app-him small { display: block; margin-bottom: 0.3em; color: #9a948b; font-size: 0.85em; font-weight: 600; }
.app-him p { margin: 0 0 0.4em; font-weight: 600; line-height: 1.6; }
.app-him b { color: #fff; }
.app-src { display: inline-flex !important; align-items: center; gap: 0.4em; padding: 0.25em 0.6em 0.25em 0.4em; border-radius: 1em; background: #24211e; color: #cfc9c0; font-size: 0.85em; }
.app-src span { display: flex; } .app-src i { width: 0.95em; height: 0.95em; border-radius: 50%; margin-inline-start: -0.3em; box-shadow: 0 0 0 2px #24211e; }
.app-src i:nth-child(1) { background: #4a86ee; } .app-src i:nth-child(2) { background: #f2a93b; } .app-src i:nth-child(3) { background: #3dbb8c; }
.app-tools { display: flex; gap: 1.1em; margin: 0.2em 0 0 !important; } .app-tools svg { width: 1.2em; height: 1.2em; stroke: #8d877e; }
.app-img { position: relative; width: 100%; aspect-ratio: 720 / 493; margin-bottom: 0.5em; border-radius: 0.8em; overflow: hidden; background: #1e1b18; }
.pic { position: absolute; inset: 0; background-repeat: no-repeat; background-size: 115% auto; }
.pic-g1 { background-image: url(/v2/assets/real/g1.png); background-position: 70.4% 34.5%; }
.pic-e3 { background-image: url(/v2/assets/real/e3.png); background-position: 70.4% 53.7%; }
.shim { position: absolute; inset: 0; background: linear-gradient(100deg, #1e1b18 30%, #2c2824 50%, #1e1b18 70%) 0 0 / 300% 100%; }
.app-prev { position: relative; height: 3.2em; border-radius: 0.8em; overflow: hidden; opacity: 0.55; }
.app-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45em; margin-bottom: 0.3em; }
.app-cards div { display: grid; gap: 0.15em; padding: 0.6em 0.7em; border-radius: 0.8em; background: #1d1b18; box-shadow: inset 0 0 0 1px #2e2b26; }
.app-cards .wide { grid-column: 1 / -1; }
.app-cards b { color: #f2b04a; font: 700 1.35em/1.1 var(--text); } .app-cards em { font-style: normal; font-size: 0.7em; }
.app-cards span { color: #cfc9c0; font-size: 0.85em; line-height: 1.45; }
.app-typing { display: flex; gap: 0.3em; margin: 0; padding: 0.2em 0; }
.app-typing i { width: 0.45em; height: 0.45em; border-radius: 50%; background: #8d877e; }
.app-composer { margin: 0 0.8em 1.2em; padding: 0.8em 0.9em 0.6em; border-radius: 1.3em; box-shadow: inset 0 0 0 1px #3a3631; }
.ph-text { margin: 0 0 0.9em; color: #8d877e; font-size: 0.95em; }
.app-bar { display: flex; align-items: center; gap: 0.75em; margin: 0; }
.app-bar .sp { flex: 1; }
.app-bar .pill { display: flex; align-items: center; gap: 0.3em; padding: 0.35em 0.7em; border-radius: 1em; background: #2a2622; color: #f2b04a; font-weight: 700; font-size: 0.9em; }
.app-bar .send { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; box-shadow: inset 0 0 0 1px #3a3631; }

/* a thread plays in order once its step is reached: you write, it is sent, he writes, he answers */
@keyframes app-in { from { opacity: 0; translate: 0 0.8em; } to { opacity: 1; translate: 0 0; } }
@keyframes app-blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes app-gone { to { opacity: 0; height: 0; padding: 0; margin: 0; } }
@keyframes app-shim { to { background-position: -150% 0; } }
@keyframes app-fade { from { opacity: 0; } to { opacity: 1; } }
.app-thread > * { opacity: 0; }
.app-thread.on .app-me, .app-thread.on .app-prev { animation: app-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
.app-thread.on .app-prev { animation-delay: 0s; }
.app-thread.on .app-typing { animation: app-in 0.4s 0.85s both, app-gone 0.3s 1.9s forwards; }
.app-thread.on .app-typing i { animation: app-blink 0.9s infinite; } .app-thread.on .app-typing i:nth-child(2) { animation-delay: 0.15s; } .app-thread.on .app-typing i:nth-child(3) { animation-delay: 0.3s; }
.app-thread.on .app-him { animation: app-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.9s both; }
.app-thread.on .shim { animation: app-shim 1.2s linear 1.9s 2; }
.app-thread.on .app-img .pic { animation: app-fade 1.1s ease-out 3.3s both; }
.glare { position: absolute; inset: 0; background: linear-gradient(118deg, rgb(255 255 255 / 0.1), transparent 32%, transparent 70%, rgb(255 255 255 / 0.04)); pointer-events: none; }

/* the image he makes leaves the phone, then turns from sunset to night by a word */
.ph-pop { position: absolute; z-index: 2; inset-inline-end: calc(var(--phone) + 3rem); top: 50%; width: clamp(15rem, 24vw, 28rem); aspect-ratio: 720 / 493; translate: 0 -62%; perspective: 1400px; }
.pop { position: absolute; inset: 0; border-radius: 1.1rem; background-repeat: no-repeat; background-size: 115% auto;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 2.5rem 5rem -1.5rem rgb(0 0 0 / 0.9);
  opacity: 0; transform: translateX(-38%) translateY(6%) scale(0.5) rotateY(-14deg); transform-origin: left center;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s; }
.pop-g1 { background-image: url(/v2/assets/real/g1.png); background-position: 70.4% 34.5%; }
.pop-e3 { background-image: url(/v2/assets/real/e3.png); background-position: 70.4% 53.7%; }
.pop-split { display: grid; align-content: center; gap: 0.5rem; padding: 2rem 2.2rem; background: linear-gradient(160deg, #221d16, #15120e); box-shadow: inset 0 0 0 1px rgb(242 176 74 / 0.35), 0 2.5rem 5rem -1.5rem rgb(0 0 0 / 0.9); }
.pop-split small { color: #cfc9c0; font: 600 1rem/1.4 var(--text); }
.pop-split b { color: #f2b04a; font: 700 clamp(2.6rem, 2rem + 2vw, 4rem)/1 var(--text); direction: ltr; text-align: right; }
.pop-split b em { font-style: normal; font-size: 0.45em; }
.pop-split span { color: #e9e4dc; font-size: 1rem; line-height: 1.6; }
.pop.on { opacity: 1; transform: none; }
.pop-e3.on { transition: opacity 1.1s, transform 1s cubic-bezier(0.22, 1, 0.36, 1); }

.pr-end { padding: 16svh var(--gutter); text-align: center; }
.pr-end h2 { font: 700 clamp(1.4rem, 1.1rem + 1vw, 2rem)/1.4 var(--display); color: var(--sand); }

@media (max-width: 860px) {
  .pw-sat { width: 8rem; }
  .pw-sat small { display: none; }
  .ph-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 0.6rem; padding-top: calc(var(--header) + 0.8rem); }
  .ph-lines h2 { font-size: clamp(1.5rem, 1.2rem + 2.4vw, 2.1rem); }
  .ph-device { place-items: start center; }
  .ph-device { --phone: min(15.5rem, 60vw, calc((100svh - var(--header) - 12rem) * 0.462)); }
  .ph-glow { inset-inline-end: auto; left: 50%; translate: -50% -30%; width: 22rem; }
  .ph-pop { inset-inline: 4vw; width: auto; top: 18%; translate: 0 0; }
  .pop { transform: translateY(30%) scale(0.6); transform-origin: center; }
}
@media (prefers-reduced-motion: reduce) { .iphone-screen img, .pop, .ph-lines h2, .pw-words { transition: none; } }

/* 3. the m7bok browser: its window rebuilt after the real one; ads turn to lead dust and leave */
.bw { position: relative; height: 360svh; }
.bw-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(15rem, 26rem) 1fr; align-items: center;
  gap: clamp(1rem, 3vw, 3rem); max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding: calc(var(--header) + 1rem) var(--gutter) 2rem; }
.bw-words { display: grid; gap: 1rem; }
.bw-kick { display: flex; align-items: center; gap: 0.55rem; color: var(--gold); font: 600 1.05rem/1.4 var(--text); }
.bw-kick-mark { width: 1.8rem; height: 1.8rem; }
.bw-lines { display: grid; }
.bw-lines h2 { grid-area: 1 / 1; font: 700 clamp(1.8rem, 1.3rem + 1.9vw, 3rem)/1.25 var(--display); text-wrap: balance; opacity: 0; translate: 0 0.8rem; transition: opacity 0.35s, translate 0.35s; }
.bw-lines h2.now { opacity: 1; translate: 0 0; transition: opacity 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1), translate 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1); }
.bw-dots { display: flex; gap: 0.45rem; }
.bw-dots i { width: 1.7rem; height: 3px; border-radius: 2px; background: rgb(255 255 255 / 0.14); transition: background 0.5s; }
.bw-dots i.on { background: var(--gold); }

.bw-window { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: calc(100svh - var(--header) - 4rem); border-radius: 0.9rem; overflow: hidden; container-type: inline-size;
  background: #1c1a17; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 3rem 6rem -2rem rgb(0 0 0 / 0.9); font-family: var(--text); color: #e9e4dc; }
.bw-page { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto 1fr; font-size: calc(100cqw / 62); opacity: 0; transition: opacity 0.6s; }
.bw-page.on { opacity: 1; }
.bw-page svg { width: 1.35em; height: 1.35em; fill: none; stroke: #cfc9c0; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bw-top { display: flex; align-items: center; gap: 0.6em; padding: 0.45em 0.8em 0; direction: ltr; }
.bw-ctl { display: flex; gap: 1.2em; } .bw-ctl svg { width: 1.1em; height: 1.1em; }
.bw-sp { flex: 1; }
.bw-tab { direction: rtl; display: flex; align-items: center; gap: 0.5em; width: 14em; padding: 0.45em 0.7em; border-radius: 0.6em 0.6em 0 0; background: #2a2622; }
.bw-tab b { flex: 1; font-weight: 500; font-size: 0.92em; } .bw-tab svg { width: 1em; height: 1em; }
.bw-tab-mark, .bw-tool-mark { width: 1.2em; height: 1.2em; }
.bw-bar { display: flex; align-items: center; gap: 1em; padding: 0.55em 0.8em; background: #2a2622; border-bottom: 1px solid #34302b; direction: ltr; }
.bw-tools { display: flex; align-items: center; gap: 1.1em; }
.bw-url { direction: rtl; flex: 1; display: flex; align-items: center; gap: 0.6em; height: 2.3em; padding: 0 0.9em; border-radius: 0.6em; background: #151311; box-shadow: inset 0 0 0 1px #3a3631; }
.bw-url b { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 400; color: #b5afa6; direction: ltr; text-align: right; font-size: 0.92em; }
.bw-nav { display: flex; gap: 1.1em; }

/* a made-up news site with its ads */
.nw { position: relative; overflow: hidden; background: #f4f1ec; color: #1a1714; padding: 1em 1.4em; display: flex; flex-direction: column; gap: 0.9em; }
.nw-body { display: grid; grid-template-columns: 1fr 13em; gap: 1.2em; transition: grid-template-columns 0.9s cubic-bezier(0.22, 1, 0.36, 1), gap 0.9s; }
/* once the ads have left, the article takes the page */
.nw.clean .nw-body { grid-template-columns: 1fr 0em; gap: 0; }
.nw.clean .nw-side { overflow: hidden; }
.nw-main h4 { margin: 0 0 0.6em; font: 700 1.6em/1.35 var(--display); }
.nw-main i { display: block; height: 0.65em; margin: 0.55em 0; border-radius: 0.3em; background: #d9d3ca; } .nw-main i.s { width: 60%; }
.nw-photo { height: 9em; margin: 0.8em 0; border-radius: 0.5em; background: linear-gradient(135deg, #c9a77a, #8a6a46); }
.nw-side { display: grid; gap: 0.8em; align-content: start; }
.ad { display: grid; place-items: center; text-align: center; border-radius: 0.4em; overflow: hidden; color: #fff; transition: opacity 0.4s, max-height 0.7s cubic-bezier(0.22, 1, 0.36, 1), margin 0.7s, padding 0.7s; max-height: 12em; }
.ad b { font-size: 1.25em; } .ad span { font-size: 0.85em; opacity: 0.85; }
.ad-top { height: 4.2em; background: linear-gradient(90deg, #e8344e, #ff7a3d); }
.ad-side { height: 9em; background: linear-gradient(160deg, #2f6bff, #6a3dff); } .ad-side.b { background: linear-gradient(160deg, #0f9d58, #3dd68c); }
.ad-bottom { height: 3.6em; background: linear-gradient(90deg, #ffb400, #ff6a00); }
.ad.gone { opacity: 0; max-height: 0; margin: 0; padding: 0; }
.consent { position: absolute; inset-inline: 2em; bottom: 1.2em; display: flex; align-items: center; gap: 0.8em; padding: 0.9em 1.1em; border-radius: 0.7em; background: #fff; color: #1a1714;
  box-shadow: 0 1em 2.5em -0.6em rgb(0 0 0 / 0.35); transition: opacity 0.4s, translate 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.consent p { flex: 1; margin: 0; font-size: 0.95em; } .consent span { padding: 0.4em 0.9em; border-radius: 0.5em; background: #eee; font-size: 0.85em; } .consent .ok { background: #1a1714; color: #fff; }
.consent.gone { opacity: 0; translate: 0 1.5em; max-height: none; }
.bw-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* a made-up clip site; the translation as the browser shows it */
.vd { background: #0d0d0e; padding: 1.2em 1.6em; display: grid; gap: 0.9em; align-content: start; }
.vd-player { position: relative; width: 100%; aspect-ratio: 16 / 8.2; border-radius: 0.6em; overflow: hidden; background: #000; }
.vd-frame { position: absolute; inset: 0; background: radial-gradient(80% 90% at 60% 40%, #3e5266, #0e151c 75%); }
.bw-page .vd-chart { position: absolute; inset: 12% 0 0; width: 100%; height: 88%; stroke: none; }
.vd-chart .g { stroke: rgb(255 255 255 / 0.08); stroke-width: 1; fill: none; }
.vd-chart .area { fill: rgb(61 187 140 / 0.16); }
.vd-chart .ln { fill: none; stroke: #3dbb8c; stroke-width: 2.4; filter: drop-shadow(0 0 6px rgb(61 187 140 / 0.6)); }
.vd-btn { position: absolute; top: 0.9em; inset-inline-start: 0.9em; display: flex; align-items: center; gap: 0.4em; padding: 0.4em 0.8em; border-radius: 0.6em; background: rgb(20 19 18 / 0.88); font-size: 0.95em; opacity: 0; }
.vd-menu { position: absolute; top: 3.4em; inset-inline-start: 0.9em; padding: 0.55em 0.9em; border-radius: 0.6em; background: #26221e; box-shadow: inset 0 0 0 1px var(--gold); color: #ffd18a; font-weight: 600; opacity: 0; }
.vd-sub { position: absolute; inset-inline: 8%; bottom: 2.6em; margin: 0 auto; width: max-content; max-width: 84%; padding: 0.3em 0.8em; border-radius: 0.4em; background: rgb(0 0 0 / 0.75); font-size: 1.3em; text-align: center; }
.vd-sub.en { direction: ltr; } .vd-sub.ar { opacity: 0; }
.vd-track { position: absolute; inset-inline: 1em; bottom: 1em; height: 0.3em; border-radius: 1em; background: rgb(255 255 255 / 0.2); }
.vd-track i { display: block; width: 38%; height: 100%; border-radius: 1em; background: var(--gold); }
.vd-meta b { font-size: 1.2em; } .vd-meta i { display: block; height: 0.6em; margin: 0.5em 0; border-radius: 0.3em; background: #26231f; width: 70%; } .vd-meta i.s { width: 40%; }
@keyframes vd-in { from { opacity: 0; translate: 0 0.4em; } to { opacity: 1; translate: 0 0; } }
@keyframes vd-out { to { opacity: 0; } }
.bw-page.vid.on .vd-btn { animation: vd-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both; }
.bw-page.vid.on .vd-menu { animation: vd-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.3s both, vd-out 0.4s 2.4s forwards; }
.bw-page.vid.on .vd-sub.en { animation: vd-out 0.5s 2.5s forwards; }
.bw-page.vid.on .vd-sub.ar { animation: vd-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 2.7s both; }

@media (max-width: 860px) {
  .bw-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 1rem; padding-top: calc(var(--header) + 0.8rem); }
  .bw-lines h2 { font-size: clamp(1.45rem, 1.2rem + 2.4vw, 2rem); }
  .bw-window { aspect-ratio: 3 / 4; }
  .bw-page { font-size: calc(100cqw / 30); }
  .bw-tools svg:nth-child(n + 4), .bw-tab { display: none; }
  .nw-body { grid-template-columns: 1fr; } .nw-side { grid-template-columns: 1fr 1fr; } .ad-side { height: 6em; }
}

/* the second map: the chosen one comes to where our mark stood (the ring back to its full size), the rest step
   back, the light turns its colour, and its features open round it as lit stations on dotted grain lines; back
   by the button, Escape, a click on the empty, the pointer going far, or scrolling on */
.pw-ring { transform: translate(var(--fx, 0px), calc(var(--fy, 0px) + var(--lift, 0px))) scale(var(--zoom, 1)); }
.pw-glow { position: absolute; left: 50%; top: 45%; z-index: 1; width: min(84vmin, 54rem); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--act) 24%, transparent), color-mix(in srgb, var(--act) 7%, transparent) 62%, transparent); opacity: 0; transition: opacity 0.7s; }
.pw-stage.focus .pw-glow { opacity: 1; }
.pw-stage::before { transition: opacity 0.7s; }
.pw-stage.focus::before { opacity: 0.2; }
.pw-sat { cursor: pointer; outline: none; }
.pw-sat:focus-visible b { outline: 2px solid var(--gold); outline-offset: 0.3rem; border-radius: 0.3rem; }
.pw-stage.fx .pw-sat, .pw-stage.fx .pw-core { transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s; }
.pw-stage.focus .pw-core, .pw-stage.focus .pw-sat:not(.chosen) { opacity: 0.035 !important; filter: blur(3px) saturate(0.4); pointer-events: none; }
.pw-stage.fx .pw-sat small { transition: opacity 0.4s; }
.pw-stage.focus .pw-sat.chosen small { opacity: 0; }
.pw-stage.focus .pw-words { opacity: 0; transition-duration: 0.3s; }
.pw-hint { position: absolute; z-index: 3; bottom: 3.4svh; inset-inline: 0; margin: 0; text-align: center; color: #a8a29a; font-size: 0.92rem; opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.pw-hint.on { opacity: 1; }
.pw-stage.focus .pw-hint { opacity: 0; }
.pw-hint .by-touch { display: none; }
@media (hover: none) { .pw-hint .by-mouse { display: none; } .pw-hint .by-touch { display: inline; } }
.pw-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; transition: opacity 0.3s; }
.pw-lines.off { opacity: 0; }
.pw-lines line { stroke: var(--act); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0 7; opacity: 0.8; }
.pw-map { position: absolute; left: 50%; top: 45%; z-index: 4; width: 0; height: 0; }
.pw-map-tag { position: absolute; left: 0; top: 0; margin: 0; padding: 0.25rem 0.85rem; border-radius: 1rem; white-space: nowrap;
  background: rgb(242 169 59 / 0.16); box-shadow: inset 0 0 0 1px rgb(242 169 59 / 0.45); color: #ffdc92; font: 700 0.9rem/1.4 var(--text);
  transform: translate(-50%, calc(-100% + var(--ty, -4rem))); opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.pw-map.on .pw-map-tag { opacity: 1; transition: opacity 0.5s 0.55s; }
.pw-feat { --node: 3.1rem; --ay: calc(var(--node) / -2); position: absolute; left: 0; top: 0; width: 17rem; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center;
  transform: translate(-50%, var(--ay)) scale(0.6); opacity: 0; pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.25s; }
.pw-feat.up { --ay: calc(-100% + var(--node) / 2); }
.pw-feat.up i { order: 2; margin-top: 0.4rem; }
.pw-feat:not(.up) b { margin-top: 0.3rem; }
.pw-map.on .pw-feat { opacity: 1; pointer-events: auto; transform: translate(var(--tx, 0px), var(--ty, 0px)) translate(-50%, var(--ay));
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + var(--n) * 0.07s), opacity 0.5s calc(0.15s + var(--n) * 0.07s); }
/* a station: the agent's colour lit from inside, its sign drawn in its light colour */
.pw-feat i { flex: none; display: grid; place-items: center; width: var(--node); aspect-ratio: 1; border-radius: 50%; color: var(--act-hi);
  background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--act) 38%, #1a1714), color-mix(in srgb, var(--act) 12%, #12100e) 72%);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--act) 80%, transparent), 0 0 0 0.4rem color-mix(in srgb, var(--act) 11%, transparent), 0 0 2.2rem color-mix(in srgb, var(--act) 45%, transparent);
  transform: scale(0.4); transition: transform 0.3s; }
.pw-map.on .pw-feat i { transform: scale(1); transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) calc(0.35s + var(--n) * 0.07s); }
.pw-feat i svg { width: 54%; height: 54%; }
.pw-feat b { color: var(--act-hi); font: 700 1.32rem/1.3 var(--display); }
.pw-feat span { color: #ddd6cc; font-size: 0.97rem; line-height: 1.55; max-width: 16rem; text-wrap: balance; }
.pw-back { position: absolute; z-index: 5; left: 50%; bottom: 7svh; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.65rem 1.25rem; border: 0; border-radius: 2rem; white-space: nowrap;
  background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16); color: #f1ece4; font: 600 0.95rem/1 var(--text); cursor: pointer;
  translate: -50% 0.6rem; opacity: 0; pointer-events: none; transition: opacity 0.3s, translate 0.3s, box-shadow 0.2s; }
.pw-back::before { content: '→'; color: var(--gold); font-size: 1.05rem; }
.pw-stage.focus .pw-back { opacity: 1; translate: -50% 0; pointer-events: auto; transition-delay: 0.5s; }
.pw-back:hover, .pw-back:focus-visible { box-shadow: inset 0 0 0 1px var(--gold); outline: none; }

/* under the world: a gold line of grains with our mark in its middle, then the one subscription. The words
   rise into place as the ring rises and shrinks to give them room */
.pw-words { transform: translateY(var(--drop, 0px)); }
.pw-sub { display: grid; justify-items: center; gap: 0.6rem; margin-top: 0.3rem; }
.pw-sub > * { margin: 0; opacity: 0; translate: 0 0.7rem; transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), translate 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.pw-sub > .on { opacity: 1; translate: 0 0; }
.pw-rule { position: relative; width: min(34rem, 84vw); height: 3rem; }
.pw-rule canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pw-rule-mark { position: absolute; left: 50%; top: 50%; width: 2.9rem; aspect-ratio: 1; translate: -50% -50%; }
.pw-price { display: flex; align-items: center; gap: 0.8rem; }
.pw-price b { font: 700 clamp(3.2rem, 2.5rem + 2.6vw, 4.6rem)/0.95 var(--display); background: linear-gradient(180deg, #ffe3a6, #f2a93b 58%, #c98a2e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pw-price span { display: grid; gap: 0.15rem; text-align: start; }
.pw-price em { color: #f1ece4; font: 700 1.15rem/1.25 var(--text); font-style: normal; }
.pw-price small { color: #a8a29a; font-size: 0.92rem; }
.pw-try { color: #f1ece4; font-size: 1.06rem; text-wrap: balance; }
.pw-try strong { color: #ffdc92; }
.pw-more { display: inline-flex; align-items: center; gap: 0.6rem; max-width: 36rem; color: #c9c3ba; font-size: 0.98rem; line-height: 1.6; text-align: start; }
.pw-more svg { flex: none; width: 1.7rem; height: 1.7rem; color: var(--gold); }
.pw-more strong { color: #f1ece4; }
/* on a wide screen the subscription is one row under the gold line: the price on the right, the free days and
   the translation on the left, a faint gold rule between them */
@media (min-width: 861px) {
  .pw-sub { grid-template-columns: auto auto; grid-template-areas: 'rule rule' 'price try' 'price more'; column-gap: 0; row-gap: 0.45rem; align-items: center; }
  .pw-rule { grid-area: rule; justify-self: center; margin-bottom: 0.2rem; }
  .pw-price { grid-area: price; justify-self: end; padding-inline-end: 2rem; margin-inline-end: 2rem; border-inline-end: 1px solid rgb(242 169 59 / 0.28); }
  .pw-try { grid-area: try; justify-self: start; text-align: start; }
  .pw-more { grid-area: more; justify-self: start; max-width: 30rem; }
}
@media (min-width: 1000px) { .pw-more, .pw-try { white-space: nowrap; } .pw-more { max-width: none; } }
/* when the ring stands small above the subscription, its names stay readable and the short lines rest */
.pw-sat b { transform-origin: 50% 0; scale: max(1, calc(0.8 / var(--zoom, 1))); }
.pw-sat small { transition: opacity 0.4s; }
.pw-stage.sub .pw-sat small { opacity: 0; }
@media (max-width: 860px) {
  .pw-feat { --node: 2.6rem; width: 9.8rem; gap: 0.25rem; } .pw-feat b { font-size: 1.05rem; } .pw-feat span { font-size: 0.8rem; line-height: 1.5; }
  .pw-sub { gap: 0.5rem; } .pw-try { font-size: 0.95rem; padding-inline: 1rem; } .pw-more { font-size: 0.88rem; padding-inline: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { .pw-map.on .pw-feat, .pw-feat, .pw-feat i, .pw-sub > * { transition: opacity 0.2s; } }

/* the branch: hover a station (tap it on the phone) and a card opens in the middle with the obstacle and how
   it is easy now, a dotted branch from the station to it; the agent's mark and the other lines step back */
.pw-feat { cursor: default; outline: none; }
.pw-feat .pw-how { display: none; }
.pw-feat:focus-visible b { outline: 2px solid var(--act-hi); outline-offset: 0.25rem; border-radius: 0.3rem; }
.pw-stage.explain .pw-map.on .pw-feat { transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s; }
.pw-stage.explain .pw-map.on .pw-feat:not(.active) { opacity: 0.45; }
.pw-feat.active i { box-shadow: inset 0 0 0 2px var(--act-hi), 0 0 0 0.45rem color-mix(in srgb, var(--act) 22%, transparent), 0 0 2.6rem color-mix(in srgb, var(--act) 70%, transparent); }
.pw-stage.explain .pw-sat.chosen { opacity: 0.08 !important; transition: opacity 0.3s; }
.pw-stage.explain .pw-lines line { opacity: 0.16; transition: opacity 0.3s; }
.pw-stage.explain .pw-lines line.branch { opacity: 1; stroke-width: 2.6; }
.pw-card { position: absolute; left: 50%; top: 45%; z-index: 6; width: min(34rem, calc(100vw - 2rem)); translate: -50% -50%; box-sizing: border-box; padding: 1rem 1.25rem 1.05rem; border-radius: 1rem; text-align: start;
  background: color-mix(in srgb, var(--act) 10%, rgb(17 15 13 / 0.94)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--act) 40%, transparent), 0 1.2rem 3rem rgb(0 0 0 / 0.5);
  opacity: 0; scale: 0.96; pointer-events: none; transition: opacity 0.25s, scale 0.25s; }
.pw-stage.explain .pw-card { opacity: 1; scale: 1; pointer-events: auto; transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), scale 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.pw-card-head { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.6rem; }
.pw-card-head svg { flex: none; width: 1.45rem; height: 1.45rem; color: var(--act-hi); }
.pw-card-head b { color: var(--act-hi); font: 700 1.22rem/1.3 var(--display); }
.pw-card p.pw-how-was, .pw-card p.pw-how-now { margin: 0; line-height: 1.65; }
.pw-card small { font: 700 0.82rem/1 var(--text); margin-inline-end: 0.45rem; }
.pw-card .pw-how-was { color: #b3ada4; font-size: 0.95rem; }
.pw-card .pw-how-was small { color: #8f8981; }
.pw-card .pw-how-now { color: #f1ece4; font-size: 1.02rem; margin-top: 0.55rem; padding-top: 0.55rem; border-top: 1px dashed color-mix(in srgb, var(--act) 40%, transparent); }
.pw-card .pw-how-now small { color: var(--act-hi); }
.pw-pick { position: absolute; left: 50%; top: calc(45% + var(--pick-y, 4rem)); z-index: 5; margin: 0; translate: -50% 0; white-space: nowrap; color: #a8a29a; font-size: 0.9rem; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.pw-stage.focus:not(.explain) .pw-pick { opacity: 1; transition-delay: 0.9s; }
.pw-pick .by-touch { display: none; }
@media (hover: none) { .pw-pick .by-mouse { display: none; } .pw-pick .by-touch { display: inline; } }
@media (max-width: 860px) {
  .pw-card { padding: 0.85rem 1rem 0.9rem; } .pw-card-head b { font-size: 1.05rem; }
  .pw-card .pw-how-was { font-size: 0.86rem; } .pw-card .pw-how-now { font-size: 0.92rem; }
  .pw-pick { font-size: 0.82rem; }
}

/* the seeds and the acts (11-22): each feature a small lit seed with a word or two; touching it the seeds part,
   the mark's grains leave it and do the feature, and one sentence comes */
.pw-card { display: none !important; }
.pw-act { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.pw-feat { --node: 1rem; width: auto; max-width: 9rem; gap: 0.5rem; cursor: pointer; }
.pw-feat i { width: var(--node); border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff6dc, var(--act-hi) 45%, var(--act) 75%);
  box-shadow: 0 0 0 0.3rem color-mix(in srgb, var(--act) 16%, transparent), 0 0 1.4rem 0.2rem color-mix(in srgb, var(--act) 65%, transparent); animation: seed 2.6s ease-in-out infinite; animation-delay: calc(var(--n) * -0.5s); }
.pw-feat i svg { display: none; }
.pw-feat b { font: 700 1.15rem/1.3 var(--display); white-space: nowrap; }
.pw-feat:hover i, .pw-feat:focus-visible i, .pw-feat.active i { box-shadow: 0 0 0 0.45rem color-mix(in srgb, var(--act) 26%, transparent), 0 0 2.4rem 0.5rem color-mix(in srgb, var(--act) 85%, transparent); }
@keyframes seed { 50% { transform: scale(1.25); } }
.pw-pick { top: auto; bottom: calc(7svh + 3.4rem); }
/* while an act plays: the mark is away (its grains are the act), the lines fade, the other seeds wait dimmed */
.pw-stage.explain .pw-sat.chosen { opacity: 0 !important; }
.pw-stage.explain .pw-lines line { opacity: 0 !important; }
.pw-stage.explain .pw-map-tag { opacity: 0 !important; }
.pw-stage.explain .pw-map.on .pw-feat { transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s; }
.pw-stage.explain .pw-map.on .pw-feat:not(.active) { opacity: 0.28; }
.pw-line { position: absolute; left: 50%; z-index: 5; margin: 0; width: max-content; max-width: min(92vw, 44rem); translate: -50% 0.6rem; text-align: center; text-wrap: balance; pointer-events: none;
  background: linear-gradient(180deg, #fff3d6, #ffc169 45%, #f2a93b); -webkit-background-clip: text; background-clip: text; color: transparent;
  font: 700 clamp(1.5rem, 1rem + 1.7vw, 2.5rem)/1.35 var(--display); opacity: 0; filter: blur(8px); transition: opacity 0.6s, translate 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s; }
.pw-line.on { opacity: 1; translate: -50% 0; filter: none; }
.pw-tags { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.pw-tags span { position: absolute; translate: -50% -50%; color: #b9b2a7; font: 500 0.92rem/1 var(--text); white-space: nowrap; opacity: 0; transition: opacity 0.5s; }
.pw-tags span.on { opacity: 1; }
.pw-choices { position: absolute; left: 50%; z-index: 6; display: flex; gap: 0.8rem; translate: -50% 0; }
.pw-choices:empty { display: none; }
.pw-choices button { padding: 0.55rem 1.3rem; border: 0; border-radius: 2rem; background: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--act) 60%, transparent); color: #f1ece4; font: 700 1rem/1 var(--text); cursor: pointer; }
.pw-choices button:first-child { background: var(--gold); box-shadow: none; color: #2a1d0a; }
.pw-choices button:hover, .pw-choices button:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); outline: none; }
@media (max-width: 860px) {
  .pw-feat b { font-size: 0.98rem; }
  .pw-stage.explain .pw-map.on .pw-feat:not(.active) { opacity: 0; pointer-events: none; }
  .pw-line { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { .pw-feat i { animation: none; } }
/* the page's floating dust stays away while an agent's map is open */
#dust { transition: opacity 0.5s; }
body:has(.pw-stage.focus) #dust { opacity: 0; }
/* round 2: lighter transitions, and a small note under a seed (free, or in the subscription) */
.pw-stage.focus .pw-core, .pw-stage.focus .pw-sat:not(.chosen) { filter: none; }
.pw-feat small { color: #a39c91; font: 500 0.78rem/1 var(--text); white-space: nowrap; }
.pw-feat.up small { order: -1; }
.pw-stage.explain .pw-feat small { opacity: 0; }
/* round 3: the small words that name each step read clearly */
.pw-tags span { color: #e2dbd0; font-size: 1.05rem; }
@media (max-width: 860px) { .pw-tags span { font-size: 0.86rem; white-space: normal; text-align: center; max-width: 44vw; } }
/* round 4: a page's own words, readable, on the stage */
.pw-tags p { position: absolute; margin: 0; translate: -50% 0; box-sizing: border-box; color: #d9d2c7; font: 400 0.95rem/1.75 var(--text); text-align: start; opacity: 0; transition: opacity 0.5s; }
.pw-tags p.on { opacity: 1; }
.pw-tags p.mid { text-align: center; }
.pw-tags p h4 { margin: 0 0 0.15rem; color: var(--act-hi); font: 700 1rem/1.5 var(--display); }
.pw-tags p b { color: #ffd98a; font-weight: 700; }
.pw-tags p small { display: block; color: var(--act-hi); font-size: 0.8rem; opacity: 0.85; }
.pw-tags p u { text-decoration: none; padding: 0 0.3rem; border-radius: 0.3rem; box-shadow: inset 0 0 0 1px rgb(242 169 59 / 0.6); color: #a39c91; transition: color 0.4s, background 0.4s, box-shadow 0.4s; }
.pw-tags p u.in { background: rgb(242 169 59 / 0.16); box-shadow: none; color: #ffd98a; font-weight: 700; }
.pw-tags p u.miss { box-shadow: inset 0 0 0 2px #f2a93b; color: #ffd98a; }
.pw-tags p.gold { color: #ffe3a6; }
@media (max-width: 860px) { .pw-tags p { font-size: 0.76rem; line-height: 1.6; } .pw-tags p h4 { font-size: 0.82rem; } .pw-tags p small { font-size: 0.7rem; } }
.pw-tags p { font-size: 1.06rem; } .pw-tags p h4 { font-size: 1.12rem; }
@media (max-width: 860px) { .pw-tags p { font-size: 0.76rem; } .pw-tags p h4 { font-size: 0.82rem; } }
/* round 6: the opening, the way into the world, and the plan's card */
.pw { height: 300svh; }
/* the opening in the live site's own order: the words above in the middle, the mark below them rising out of the dunes */
@media (min-width: 861px) {
  body[data-design='proto'] .mg-open { --sun: min(19svh, 12vw, 11rem); align-content: start; justify-items: center; padding-block: calc(var(--header) + 5svh) 0; padding-inline: 1.5rem; text-align: center; }
  body[data-design='proto'] .mg-copy { max-width: 58rem; }
  /* (11-26, the owner: the opening's words were far too big, three lines over the button and the mark) */
  body[data-design='proto'] .mg-open .hero-line { font-size: clamp(2.3rem, 1.2rem + 2.2vw, 3.7rem); line-height: 1.22; text-wrap: balance; }
  body[data-design='proto'] .mg-open .lead { margin-inline: auto; }
  body[data-design='proto'] .mg-open .ctas { justify-content: center; }
  body[data-design='proto'] .mg-sun { inset-inline-end: auto; left: 50%; top: auto; bottom: 12svh; translate: -50% 0; }
  body[data-design='proto'] .mg-desert { inset-inline: 0; width: 100%; height: 40%; }
}
.pw-plan { position: relative; display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: 'who price in' 'who price free' 'try try try'; align-items: center; column-gap: 1.8rem; row-gap: 0.5rem;
  width: min(60rem, calc(100vw - 2rem)); box-sizing: border-box; padding: 1.2rem 1.8rem 1.1rem; border-radius: 1.4rem; text-align: start;
  background: linear-gradient(135deg, rgb(242 169 59 / 0.13), rgb(20 17 14 / 0.9) 42%, rgb(20 17 14 / 0.9) 70%, rgb(242 169 59 / 0.08));
  box-shadow: inset 0 0 0 1px rgb(242 169 59 / 0.32), 0 1.6rem 4rem rgb(0 0 0 / 0.55), 0 0 5rem rgb(242 169 59 / 0.08); }
.pl-who { grid-area: who; display: grid; grid-template-columns: repeat(2, 2.6rem); gap: 0.55rem; margin: 0; }
.pl-who .pl-mark, .pl-who .pl-win { width: 2.6rem; height: 2.6rem; }
.pl-who .pl-win { border-radius: 0.5rem; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgb(242 169 59 / 0.4); }
.pl-price { grid-area: price; display: flex; align-items: center; gap: 0.7rem; padding-inline-end: 1.8rem; border-inline-end: 1px solid rgb(242 169 59 / 0.28); }
.pl-price b { font: 700 clamp(3.4rem, 2.6rem + 2.6vw, 5rem)/0.95 var(--display); background: linear-gradient(180deg, #ffe3a6, #f2a93b 58%, #c98a2e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pl-price span { display: grid; gap: 0.15rem; } .pl-price em { color: #f6f1e9; font: 700 1.15rem/1.25 var(--text); font-style: normal; } .pl-price small { color: #a8a29a; font-size: 0.9rem; }
.pl-in { grid-area: in; display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.pl-in li { padding: 0.32rem 0.85rem; border-radius: 2rem; background: rgb(242 169 59 / 0.12); box-shadow: inset 0 0 0 1px rgb(242 169 59 / 0.35); color: #ffe3a6; font: 600 0.95rem/1.3 var(--text); white-space: nowrap; }
.pl-free { grid-area: free; margin: 0; color: #c9c3ba; font-size: 0.95rem; line-height: 1.6; } .pl-free strong { color: #f1ece4; }
.pl-try { grid-area: try; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0.35rem 0 0; padding-top: 0.8rem; border-top: 1px solid rgb(242 169 59 / 0.18); color: #f1ece4; font-size: 1.05rem; }
.pl-try strong { color: #ffdc92; }
@media (max-width: 860px) {
  .pw-plan { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'who price' 'in in' 'free free' 'try try'; column-gap: 1rem; padding: 0.9rem 1rem; }
  .pl-who { grid-template-columns: repeat(2, 1.9rem); gap: 0.4rem; } .pl-who .pl-mark, .pl-who .pl-win { width: 1.9rem; height: 1.9rem; }
  .pl-price { padding: 0; border: 0; } .pl-in li { font-size: 0.8rem; padding: 0.25rem 0.6rem; } .pl-free { font-size: 0.8rem; } .pl-try { font-size: 0.9rem; }
}
/* round 6b: no orange glow behind the world; a mark lands with a ring of light; the plan in its own section */
.pw-stage::before { display: none; }
.pw-core.lit::after, .pw-sat.lit::after { content: ''; position: absolute; left: 50%; top: 42%; width: 7rem; aspect-ratio: 1; margin: -3.5rem 0 0 -3.5rem; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 1px rgb(255 227 166 / 0.9), 0 0 2.2rem 0.3rem rgb(242 169 59 / 0.5); opacity: 0; animation: land 1.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
.pw-core.lit::after { width: 14rem; margin: -7rem 0 0 -7rem; top: 50%; }
@keyframes land { 0% { transform: scale(0.2); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(2.3); opacity: 0; } }
.plsec { display: grid; justify-items: center; align-content: center; gap: 1rem; min-height: 92svh; padding: 10svh 1rem; text-align: center; }
.pp-kick { margin: 0; color: var(--gold); font: 700 1.05rem/1 var(--text); }
.plsec h2 { margin: 0 0 1.4rem; color: #f6f1e9; font: 700 clamp(2rem, 1.3rem + 3vw, 4rem)/1.2 var(--display); }
.plsec > * { opacity: 0; translate: 0 2.2rem; filter: blur(10px); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), translate 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s; }
.plsec.in > * { opacity: 1; translate: 0 0; filter: none; }
.plsec.in > h2 { transition-delay: 0.12s; } .plsec.in > .pw-plan { transition-delay: 0.3s; }
.plsec .pw-plan { overflow: hidden; padding: 1.8rem 2.2rem 1.5rem; row-gap: 0.8rem; }
.plsec .pw-plan::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgb(255 227 166 / 0.16) 50%, transparent 60%); translate: -110% 0; pointer-events: none; }
.plsec.in .pw-plan::after { translate: 110% 0; transition: translate 1.6s cubic-bezier(0.3, 0, 0.2, 1) 0.9s; }
.plsec .pl-who { grid-template-columns: repeat(2, 3.2rem); gap: 0.7rem; } .plsec .pl-who .pl-mark, .plsec .pl-who .pl-win { width: 3.2rem; height: 3.2rem; }
@media (max-width: 860px) { .plsec .pw-plan { padding: 1.1rem 1.1rem 1rem; } .plsec .pl-who { grid-template-columns: repeat(2, 2.2rem); } .plsec .pl-who .pl-mark, .plsec .pl-who .pl-win { width: 2.2rem; height: 2.2rem; } }
@media (prefers-reduced-motion: reduce) { .plsec > * { transition: opacity 0.2s; translate: none; filter: none; } .pw-core.lit::after, .pw-sat.lit::after { animation: none; } }
/* round 7: a sign of grains in each seed; the plan as a tall card */
.pw-feat { --node: 2.9rem; max-width: 11rem; }
.pw-feat i { background: radial-gradient(closest-side, color-mix(in srgb, var(--act) 20%, transparent), transparent); box-shadow: none; animation: none; overflow: visible; }
.pw-feat i canvas { display: block; width: 100%; height: 100%; transition: scale 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s; }
.pw-feat:hover i, .pw-feat:focus-visible i, .pw-feat.active i { box-shadow: none; }
.pw-feat:hover i canvas, .pw-feat:focus-visible i canvas, .pw-feat.active i canvas { scale: 1.22; filter: drop-shadow(0 0 0.5rem var(--act)); }
.plsec { gap: 0.8rem; min-height: 100svh; }
.plsec h2 { margin-bottom: 0.6rem; }
.pp-plan { position: relative; display: grid; gap: 1.1rem; width: min(31rem, calc(100vw - 1.5rem)); box-sizing: border-box; padding: 2.9rem 2.6rem 2.6rem; text-align: start; }
.pl-cv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pp-plan > :not(.pl-cv) { position: relative; }
.pp-plan .pl-price { justify-content: center; padding: 0 0 1rem; border: 0; border-bottom: 1px solid rgb(242 169 59 / 0.2); opacity: 0; scale: 0.9; transition: opacity 0.8s 0.5s, scale 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s; }
.pp-plan.in .pl-price { opacity: 1; scale: 1; }
.pp-plan .pl-price b { font-size: clamp(4.4rem, 3rem + 4vw, 6.4rem); }
.pl-rows { display: grid; gap: 0.95rem; margin: 0; padding: 0; list-style: none; }
.pl-rows li { display: grid; grid-template-columns: 2.9rem minmax(0, 1fr); grid-template-areas: 'i b' 'i s'; column-gap: 1rem; align-items: center; opacity: 0; translate: 2.4rem 0; filter: blur(8px); transition: opacity 0.7s, translate 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s; }
.pl-rows li.on { opacity: 1; translate: 0 0; filter: none; }
.pl-rows i { grid-area: i; position: relative; width: 2.9rem; height: 2.9rem; }
.pl-rows i[data-plsign] canvas { display: block; width: 100%; height: 100%; }
.pl-rows b { grid-area: b; color: #f6f1e9; font: 700 1.22rem/1.3 var(--display); }
.pl-rows span { grid-area: s; color: #b3ada4; font-size: 0.95rem; line-height: 1.4; }
.pp-plan .pl-free { display: grid; grid-template-columns: 2.9rem minmax(0, 1fr); column-gap: 1rem; align-items: center; margin: 0; padding-top: 1rem; border-top: 1px solid rgb(242 169 59 / 0.2); color: #b3ada4; font-size: 0.95rem; line-height: 1.5; }
.pp-plan .pl-free strong { display: block; color: #ffe3a6; font: 700 1.1rem/1.4 var(--display); }
.pp-plan .pl-win { width: 2.9rem; height: 2.2rem; border-radius: 0.4rem; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgb(242 169 59 / 0.4); }
.pp-plan .pl-try { display: grid; justify-items: center; gap: 0.8rem; margin: 0; padding: 0; border: 0; color: #f1ece4; font-size: 1.08rem; }
.pp-plan .pl-free, .pp-plan .pl-try { opacity: 0; transition: opacity 0.8s; }
.pp-plan.full .pl-free, .pp-plan.full .pl-try { opacity: 1; }
.pp-plan.full .pl-try { transition-delay: 0.25s; }
@media (max-width: 860px) { .pw-feat { --node: 2.3rem; } .pp-plan { padding: 2.4rem 1.8rem 2.2rem; gap: 0.8rem; } .pl-rows { gap: 0.7rem; } .pl-rows b { font-size: 1.05rem; } .pl-rows span { font-size: 0.84rem; } }
@media (prefers-reduced-motion: reduce) { .pl-rows li, .pp-plan .pl-price { transition: opacity 0.2s; translate: none; filter: none; scale: 1; } }
.pp-plan .pl-price, .pp-plan .pl-free, .pp-plan .pl-try { grid-area: auto; }
body:has(.plsec.in) #dust { opacity: 0; }
/* round 8: the words on the stage stand clear of the grains: a little higher, and with a dark edge of their own */
html.pw-in #dust { opacity: 0; }
.pw-tags span, .pw-tags p { text-shadow: 0 0 0.35rem #0b0a09, 0 0 0.7rem #0b0a09, 0 0 1.1rem #0b0a09; }
.pw-tags span { padding: 0.1rem 0.5rem; border-radius: 1rem; background: rgb(11 10 9 / 0.55); }
.pw-tags p { padding: 0 0.5rem; }
.pw-line { text-shadow: none; filter: drop-shadow(0 0 0.5rem #0b0a09); }
/* round 9: the page's close */
.pend { display: grid; justify-items: center; gap: 1rem; padding: 18svh 1.5rem 20svh; text-align: center; }
.pend h2 { margin: 0; color: #f6f1e9; font: 700 clamp(2rem, 1.2rem + 3.4vw, 4.4rem)/1.2 var(--display); text-wrap: balance; }
.pend p { margin: 0 0 1rem; color: #c9c3ba; font-size: 1.15rem; }
.pp-plan .pl-rows { gap: 0.8rem; }
html.pw-in #dust { transition: opacity 0.3s; }
/* the world begins under the opening, so the way down is never an empty screen */
.pw { margin-top: -34svh; }
/* round 11: the entrance by the clock, less scrolling, no ring of light; the map says plainly what to do */
.pw { height: 190svh; margin-top: -20svh; }
.pw-core.lit::after, .pw-sat.lit::after { display: none; }
.pw-pick { top: calc(45% + var(--pick-y, 4rem) + 1.6rem); bottom: auto; color: #ffe3a6; font: 700 1.1rem/1.4 var(--display); }
.pw-stage.focus::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(closest-side at 50% 45%, transparent 55%, rgb(0 0 0 / 0.55)); pointer-events: none; }
.pw-map.on .pw-feat i { animation: invite 1.1s ease-out calc(0.9s + var(--n) * 0.16s) 1 both; }
@keyframes invite { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.35); } }
/* round 12: an agent tells itself like a story: bars that fill, two arrows, a close mark */
.pw-story { position: absolute; top: calc(var(--header) + 0.9rem); left: 50%; z-index: 6; width: min(34rem, 70vw); translate: -50% 0; opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.pw-stage.focus .pw-story { opacity: 1; transition-delay: 0.5s; }
.ps-bars { display: flex; flex-direction: row-reverse; gap: 0.4rem; }
.ps-bars i { flex: 1; height: 4px; border-radius: 2px; background: rgb(255 255 255 / 0.16); overflow: hidden; }
.ps-bars b { display: block; width: 0; height: 100%; margin-inline-start: auto; border-radius: 2px; background: var(--act-hi, #ffc169); }
.ps-bars i.ps-done b { width: 100%; }
.ps-bars i.ps-now b { animation: psfill 9s linear both; }
@keyframes psfill { from { width: 0; } to { width: 100%; } }
.ps-nav { position: absolute; top: 45%; z-index: 6; display: grid; place-items: center; width: 3.6rem; height: 3.6rem; padding: 0; border: 0; border-radius: 50%; translate: 0 -50%; cursor: pointer;
  background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18); color: #f6f1e9; opacity: 0; pointer-events: none; transition: opacity 0.4s, background 0.25s, scale 0.25s; }
.ps-nav svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ps-prev { right: clamp(0.6rem, 2.2vw, 2.4rem); } .ps-next { left: clamp(0.6rem, 2.2vw, 2.4rem); }
.pw-stage.focus .ps-nav { opacity: 1; pointer-events: auto; transition-delay: 0.6s, 0s, 0s; }
.ps-nav:hover, .ps-nav:focus-visible { background: rgb(242 169 59 / 0.22); box-shadow: inset 0 0 0 1px #f2a93b; scale: 1.08; outline: none; }
.ps-next { animation: none; }
.pw-stage.focus .ps-next { box-shadow: inset 0 0 0 1px rgb(242 169 59 / 0.7); color: #ffe3a6; }
/* the close mark: a clear round button at the top corner, in place of the pill at the bottom */
.pw-back { left: auto; right: clamp(0.6rem, 2.2vw, 2.4rem); bottom: auto; top: calc(var(--header) + 0.5rem); width: 2.8rem; height: 2.8rem; padding: 0; justify-content: center; border-radius: 50%; }
.pw-back::before { content: none; }
.pw-back svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.pw-stage.focus .pw-back { translate: 0 0; }
.pw-pick { display: none; }
/* the questions */
.pq { display: grid; justify-items: center; gap: 1.6rem; padding: 6svh 1.5rem 16svh; }
.pq h2 { margin: 0; color: #f6f1e9; font: 700 clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem)/1.25 var(--display); }
.pq-list { display: grid; gap: 0.2rem; width: min(46rem, 100%); }
.pq details { border-bottom: 1px solid rgb(242 169 59 / 0.2); }
.pq summary { padding: 1.1rem 0.2rem; color: #f1ece4; font: 700 1.15rem/1.5 var(--display); cursor: pointer; list-style: none; }
.pq summary::after { content: '+'; float: left; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.pq details[open] summary::after { content: '−'; }
.pq details p { margin: 0 0 1.2rem; color: #c9c3ba; font-size: 1.02rem; line-height: 1.8; }
@media (max-width: 860px) { .ps-nav { width: 2.8rem; height: 2.8rem; top: auto; bottom: 1.2rem; translate: none; } .pw-story { width: 62vw; } }
/* template B: a member's own page (11-23) */
.wst { padding: 10svh clamp(1.5rem, 6vw, 7rem) 6svh; }
.wst-h { margin: 0 0 4svh; color: #f6f1e9; font: 700 clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem)/1.25 var(--display); text-align: center; }
.wst-body { display: grid; grid-template-columns: minmax(16rem, 23rem) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); max-width: 86rem; margin: 0 auto; }
.wst-list { display: grid; align-content: center; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.wst-list button { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.9rem; align-items: center; width: 100%; padding: 0.8rem 0.9rem; border: 0; border-radius: 1rem; background: none; color: inherit; text-align: start; cursor: pointer; transition: background 0.3s; }
.wst-list button:hover, .wst-list button:focus-visible { background: rgb(255 255 255 / 0.04); outline: none; }
.wst-list i { width: 2.6rem; height: 2.6rem; } .wst-list i canvas { display: block; width: 100%; height: 100%; }
.wst-list b { display: block; color: #cfc8bd; font: 700 1.12rem/1.35 var(--display); transition: color 0.3s; }
.wst-list small { display: block; margin-top: 0.25rem; color: #8f887c; font-size: 0.9rem; line-height: 1.6; transition: color 0.3s; }
.wst-list li.now button { background: color-mix(in srgb, var(--act) 13%, transparent); }
.wst-list li.now b { color: var(--act-hi); } .wst-list li.now small { color: #e2dbd0; }
.wst-bar { display: block; height: 2px; margin: 0.15rem 0.9rem 0; border-radius: 1px; background: rgb(255 255 255 / 0.07); overflow: hidden; }
.wst-bar u { display: block; width: 0; height: 100%; margin-inline-start: auto; background: var(--act-hi); text-decoration: none; }
.wst-list li.past .wst-bar u { width: 100%; }
.wst-list li.now .wst-bar u { animation: psfill 9s linear both; }
.wst-stage { position: relative; min-height: 72svh; border-radius: 1.6rem; overflow: hidden;
  background: radial-gradient(closest-side at 50% 42%, color-mix(in srgb, var(--act) 14%, #0e0c0b), #0b0a09); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05); }
.wst-stage .pw-line { font-size: clamp(1.3rem, 0.9rem + 1.3vw, 2.1rem); max-width: min(90%, 40rem); }
@media (max-width: 860px) { .wst-body { grid-template-columns: minmax(0, 1fr); } .wst-stage { order: -1; min-height: 62svh; } }
.wst-stage { border-radius: 2.4rem; box-shadow: none; background: radial-gradient(closest-side at 50% 45%, color-mix(in srgb, var(--act) 16%, transparent), transparent); }
@media (max-width: 860px) { body[data-design="proto"] .mg-open .hero-line { font-size: clamp(1.9rem, 8.4vw, 2.4rem); } }
/* the opening holds still until the desert has drawn its first frame (site.ts, FREEZES.ar.md): its words too */
html.opening-held :is(.hero .kicker, .hero .lead, .hero .ctas, .hero-line .word, .hero-line .gold) { animation-play-state: paused; }
.wst-note { max-width: 46rem; margin: 2.2rem auto 0; color: #8f887c; font-size: 0.92rem; line-height: 1.7; text-align: center; }
/* template C: a feature's own page (11-24) */
.wst-one .wst-body { grid-template-columns: minmax(14rem, 19rem) minmax(0, 1fr); }
.fpg { padding: 4svh clamp(1.5rem, 6vw, 7rem) 8svh; }
.fpg-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: clamp(1.4rem, 3vw, 2.6rem) clamp(1.6rem, 4vw, 3.4rem); max-width: 76rem; margin: 0 auto; }
.fpg article h2 { margin: 0 0 0.6rem; color: var(--act-hi); font: 700 clamp(1.2rem, 1rem + 0.6vw, 1.5rem)/1.35 var(--display); }
.fpg article p { margin: 0; color: #cfc8bd; font-size: 1.02rem; line-height: 1.85; }
.fpg-back { display: block; width: max-content; margin: 3.4rem auto 0; color: var(--act-hi); font-weight: 700; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--act-hi) 40%, transparent); padding-bottom: 0.2rem; }
.fpg-back:hover, .fpg-back:focus-visible { border-color: var(--act-hi); outline: none; }
.dic-caret { color: #FFC169; animation: caret 1s steps(1) infinite; margin-inline-start: 0.1rem; }
@keyframes caret { 50% { opacity: 0; } }
/* template D: a comparison page (11-24) */
.cmp { padding: 8svh clamp(1.5rem, 6vw, 7rem) 4svh; }
.cmp-note { max-width: 52rem; margin: 0 auto 1.4rem; color: #b9b2a7; text-align: center; line-height: 1.8; }
.cmp-wrap { max-width: 78rem; margin: 0 auto; border-radius: 1.4rem; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
  background: radial-gradient(closest-side at 50% 0%, color-mix(in srgb, var(--act) 10%, #0e0c0b), #0b0a09); }
.cmp-t { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cmp-t th, .cmp-t td { padding: 1rem 1.1rem; text-align: start; vertical-align: top; border-bottom: 1px solid rgb(255 255 255 / 0.06); line-height: 1.7; }
.cmp-t tbody tr:last-child > * { border-bottom: 0; }
.cmp-t thead th { color: #f6f1e9; font: 700 1.1rem/1.4 var(--display); padding-block: 1.2rem; }
.cmp-t thead th.ours { color: #ffdc92; }
.cmp-t tbody th { width: 15rem; color: #e2dbd0; font: 700 1rem/1.5 var(--display); }
.cmp-t.cols-4 tbody th { width: 11rem; }
.cmp-t td { color: #b9b2a7; font-size: 0.98rem; }
.cmp-t td.ours { color: #f3ead8; background: rgb(242 169 59 / 0.07); box-shadow: inset 3px 0 0 rgb(242 169 59 / 0.55); }
.cmp-t.cols-4 td { font-size: 0.9rem; }
.cmp-src { max-width: 60rem; margin: 1rem auto 0; color: #7f786d; font-size: 0.86rem; line-height: 1.7; text-align: center; }
.cmp-plus { max-width: 52rem; margin: 1.6rem auto 0; color: #ffdc92; font: 700 1.1rem/1.6 var(--display); text-align: center; }
.cmp-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1.2rem; max-width: 78rem; margin: 3rem auto 0; }
.cmp-fit article { padding: 1.3rem 1.4rem; border-radius: 1.1rem; background: rgb(255 255 255 / 0.03); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05); }
.cmp-fit article.ours { background: rgb(242 169 59 / 0.07); box-shadow: inset 0 0 0 1px rgb(242 169 59 / 0.3); }
.cmp-fit h3 { margin: 0 0 0.5rem; color: #f6f1e9; font: 700 1.1rem/1.4 var(--display); }
.cmp-fit article.ours h3 { color: #ffdc92; }
.cmp-fit p { margin: 0; color: #cfc8bd; line-height: 1.8; }
.cmp-t tr.grp th { padding: 1.4rem 1.1rem 0.6rem; color: #ffdc92; font: 700 1.05rem/1.4 var(--display); border-bottom: 1px solid rgb(242 169 59 / 0.25); background: rgb(242 169 59 / 0.03); }
/* template F: a legal page (11-24) */
.lgl { max-width: 46rem; margin: 0 auto; padding: calc(var(--header) + 9svh) 1.5rem 12svh; }
.lgl-kick { margin: 0 0 0.6rem; color: #ffdc92; font: 700 0.95rem/1 var(--display); }
.lgl h1 { margin: 0 0 2.4rem; color: #f6f1e9; font: 700 clamp(2rem, 1.4rem + 2vw, 3rem)/1.2 var(--display); }
.lgl-body h2 { margin: 2.6rem 0 0.8rem; color: #ffdc92; font: 700 1.25rem/1.4 var(--display); }
.lgl-body p, .lgl-body li { color: #d9d2c7; font-size: 1.04rem; line-height: 1.95; }
.lgl-body p { margin: 0 0 1rem; }
.lgl-body ul { margin: 0 0 1rem; padding-inline-start: 1.3rem; }

/* (11-26, the owner) the «انزل» link is gone from every opening: the page below shows itself */
body[data-design='proto'] .mg-open .arrow-link.down { display: none; }
/* the world says it can be opened (11-26, the owner: «يحتاج إلى صدفة حرفياً»): its hint stays, in gold, under it; each
   member breathes a ring round its mark until one is opened; pointing at one lifts it */
.pw-hint { color: #ffdc92; font: 600 1rem/1.4 var(--text); }
.pw-hint::before { content: ''; display: inline-block; width: 0.5rem; height: 0.5rem; margin-inline-end: 0.55rem; border-radius: 50%; background: #f2a93b; vertical-align: 0.1em;
  box-shadow: 0 0 0.6rem #f2a93b; animation: pw-breathe 2.6s ease-in-out infinite; }
.pw-stage.opened .pw-hint::before { animation: none; }
.pw-sat .pw-sat-mark, .pw-sat .pw-win { transition: scale 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s; }
.pw-sat:hover .pw-sat-mark, .pw-sat:hover .pw-win, .pw-sat:focus-visible .pw-sat-mark, .pw-sat:focus-visible .pw-win { scale: 1.08; filter: brightness(1.15); }
.pw-sat.lit .pw-sat-mark::before, .pw-sat.lit .pw-win::before { content: ''; position: absolute; inset: -14%; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--act, #f2a93b) 60%, transparent); animation: pw-breathe 2.6s ease-in-out infinite; }
.pw-sat.lit .pw-win { position: relative; }
.pw-sat.lit .pw-win::before { border-radius: 0.9rem; inset: -8%; }
.pw-stage.opened .pw-sat-mark::before, .pw-stage.opened .pw-win::before, .pw-stage.focus .pw-sat-mark::before { animation: none; opacity: 0; }
@keyframes pw-breathe { 0%, 100% { opacity: 0; scale: 0.92; } 50% { opacity: 0.85; scale: 1.06; } }
@media (prefers-reduced-motion: reduce) { .pw-sat.lit .pw-sat-mark::before, .pw-sat.lit .pw-win::before { animation: none; opacity: 0.6; } }

/* template G: the mobile path (11-24) — the phone app sold on a phone. It explains before it shows: the opening on
   our desert, who the three are, each one's abilities played in grains under a plain sentence, and only then the
   app's real screens, the price and the stores */
[data-path="app"] { --ap-bar: 3.1rem; }
[data-agent="hammam"] { --ac: #EF6A4C; } [data-agent="raseeq"] { --ac: #3DBB8C; } [data-agent="qanan"] { --ac: #4A86EE; } [data-agent="brand"] { --ac: #F2A93B; }
[data-apmark] { position: relative; display: block; flex: none; }

/* the opening: our mark over the words, the stores as its buttons */
.ap-copy { justify-items: center; text-align: center; padding-inline: var(--gutter); box-sizing: border-box; }
.ap-mark { display: block; width: clamp(4.2rem, 17vw, 5.6rem); margin: 0 auto 0.9rem; filter: drop-shadow(0 0 1.6rem rgb(242 169 59 / 0.35)); }
.ap-mark svg { display: block; width: 100%; height: auto; }
.ap-copy .ctas { justify-content: center; }
.ap-stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.ap-store { display: grid; justify-items: start; gap: 0.1rem; min-width: 9.2rem; padding: 0.55rem 1.15rem 0.6rem; border-radius: 1rem; text-decoration: none;
  color: #f6f1e9; background: rgb(29 27 24 / 0.85); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18); backdrop-filter: blur(6px); }
.ap-store small { color: #b9b1a5; font-size: 0.76rem; }
.ap-store b { font: 600 1.06rem/1.2 var(--text); direction: ltr; }
/* the visitor's own store first, and in gold */
.ap-store[data-os="ios"], html[data-os="android"] .ap-store[data-os="android"] { order: -1; color: #1a1206; background: #F2A93B; box-shadow: none; }
.ap-store[data-os="ios"] small, html[data-os="android"] .ap-store[data-os="android"] small { color: #5b3d0c; }
html[data-os="android"] .ap-store[data-os="ios"] { order: 0; color: #f6f1e9; background: rgb(29 27 24 / 0.85); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18); }
html[data-os="android"] .ap-store[data-os="ios"] small { color: #b9b1a5; }
.ap-store:focus-visible, .ap-map a:focus-visible, .ap-who a:focus-visible { outline: 2px solid #ffdc92; outline-offset: 3px; }

/* the bar: the page's parts under the header, the one being read lit */
.ap-map { position: sticky; top: var(--header); z-index: 30; display: flex; justify-content: center; gap: clamp(0.2rem, 2vw, 1.4rem); height: var(--ap-bar); padding: 0 var(--gutter);
  background: rgb(14 13 12 / 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgb(255 255 255 / 0.07); }
.ap-map a { display: flex; align-items: center; gap: 0.4rem; padding: 0 0.5rem; color: #8d877e; text-decoration: none; font: 600 0.92rem/1 var(--text); transition: color 0.4s; }
.ap-map a i { display: block; width: 1.2rem; opacity: 0.6; transition: opacity 0.4s; }
.ap-map a i svg { display: block; width: 100%; height: auto; }
.ap-map a.on { color: #f6f1e9; box-shadow: inset 0 -2px 0 var(--ac); }
.ap-map a.on i { opacity: 1; }

.ap-sec-kick { margin: 0 0 0.4rem; color: #ffdc92; font: 600 0.95rem/1.4 var(--text); }

/* who the three are */
.ap-who { max-width: 40rem; margin: 0 auto; padding: 12svh var(--gutter) 6svh; text-align: center; }
.ap-who h2 { margin: 0 0 1.8rem; color: #f6f1e9; font: 700 clamp(1.7rem, 1.1rem + 3vw, 2.6rem)/1.25 var(--display); text-wrap: balance; }
.ap-who ul { display: grid; gap: 0.8rem; margin: 0; padding: 0; list-style: none; text-align: start; }
.ap-who a { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.1rem; padding: 1.1rem 1.15rem; border-radius: 1.3rem; text-decoration: none;
  background: linear-gradient(100deg, color-mix(in srgb, var(--ac) 13%, #141210), #11100e 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 26%, transparent); }
.ap-who a i { width: 3.4rem; height: 3.4rem; }
.ap-who a span { display: grid; gap: 0.15rem; }
.ap-who b { color: #f6f1e9; font: 700 1.35rem/1.3 var(--display); }
.ap-who em { color: var(--ac); font: 600 0.9rem/1.4 var(--text); font-style: normal; }
.ap-who small { margin-top: 0.25rem; color: #cfc8bd; font-size: 0.95rem; line-height: 1.75; }

/* each one's station: its heading, then its abilities one under another */
.ap-sta { max-width: 44rem; margin: 0 auto; padding: 10svh var(--gutter) 2svh; scroll-margin-top: calc(var(--header) + var(--ap-bar)); }
.ap-sta-head { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin-bottom: 2.2rem; }
.ap-sta-head i { width: 3rem; height: 3rem; }
.ap-sta-head h2 { margin: 0; color: #f6f1e9; font: 700 clamp(1.7rem, 1.1rem + 3vw, 2.6rem)/1.25 var(--display); }
.ab { display: grid; gap: 0.55rem; margin: 0 0 3.4rem; }
.ab h3 { display: flex; align-items: center; gap: 0.55rem; margin: 0; color: #f6f1e9; font: 700 clamp(1.35rem, 1.05rem + 1.6vw, 1.8rem)/1.35 var(--display); }
.ab h3::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ac); box-shadow: 0 0 0.8rem var(--ac); flex: none; }
.ab > p { margin: 0 0 0.5rem; color: #d9d2c7; font-size: 1.02rem; line-height: 1.85; text-wrap: pretty; }
.ab-stage { position: relative; height: clamp(22rem, 124vw, 28rem); border-radius: 1.4rem; overflow: hidden; --act: var(--ac);
  background: radial-gradient(closest-side at 50% 45%, color-mix(in srgb, var(--ac) 12%, #0e0c0b), #0b0a09); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05); }
/* the sentence above the stage says it already; the act's own line stays off */
.ab-stage .pw-line { display: none; }
.ab-stage .pw-tags span { font-size: 0.86rem; white-space: normal; max-width: 86%; width: max-content; text-align: center; line-height: 1.5; }
.ab-stage .pw-tags p { font-size: 0.86rem; line-height: 1.65; }
.ab-stage .pw-tags p h4 { font-size: 0.9rem; }

/* and the rest of the app */
.ap-more { max-width: 40rem; margin: 0 auto; padding: 8svh var(--gutter) 4svh; }
.ap-more h2 { margin: 0 0 1.2rem; color: #f6f1e9; font: 700 clamp(1.6rem, 1.1rem + 2.6vw, 2.3rem)/1.25 var(--display); text-align: center; }
.ap-more ul { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.ap-more li { display: grid; gap: 0.2rem; padding: 1rem 1.15rem; border-radius: 1.1rem; background: #13110f; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); }
.ap-more b { color: #ffdc92; font: 700 1.1rem/1.4 var(--display); }
.ap-more span { color: #d9d2c7; line-height: 1.8; }

/* the app's real screens, last: a reel the thumb pulls sideways */
.ap-shots { padding: 10svh 0 4svh; text-align: center; scroll-margin-top: calc(var(--header) + var(--ap-bar)); }
.ap-shots h2 { margin: 0; padding: 0 var(--gutter); color: #f6f1e9; font: 700 clamp(1.7rem, 1.1rem + 3vw, 2.6rem)/1.25 var(--display); }
.ap-shots-hint { margin: 0.5rem 0 1.4rem; color: #8d877e; font-size: 0.88rem; }
.ap-reel { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.5rem calc(50% - var(--phone) / 2 - 0.7rem) 1.2rem; --phone: min(62vw, 15.5rem); scrollbar-width: none; }
.ap-reel::-webkit-scrollbar { display: none; }
.ap-reel figure { flex: none; display: grid; justify-items: center; gap: 0.9rem; margin: 0; scroll-snap-align: center; width: calc(var(--phone) + 1.4rem); }
.ap-screen { position: relative; width: var(--phone); aspect-ratio: 828 / 1792; border-radius: 1.6rem; overflow: hidden; background: #191816;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 1.6rem 3.5rem -1rem rgb(0 0 0 / 0.85); container-type: inline-size; }
.ap-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* the drawn screen: the real screen's measures (its 828 px shot / 8.28 = cqw) and colours, sampled from it */
.aps { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto 1fr auto; background: #191816; color: #f5f1e8; font-family: var(--text); text-align: start; }
.aps svg { display: block; width: 100%; height: 100%; }
.aps-status { display: flex; align-items: center; justify-content: space-between; height: 11.5cqw; margin: 0; padding: 0 8.5cqw 0 5cqw; font: 700 3.6cqw/1 var(--text); }
.aps-status span { display: flex; align-items: center; gap: 1.6cqw; }
.aps-status svg { width: 3.8cqw; height: 3.8cqw; }
.aps-bat { width: 6.4cqw; height: 3cqw; border-radius: 1cqw; background: #3fc35a; }
.aps-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 13cqw; margin: 0; padding: 0 4.2cqw; border-bottom: 1px solid #2b2a28; }
.aps-head > span:first-child { justify-self: start; }
.aps-head > span:last-child { justify-self: end; display: flex; gap: 7cqw; }
.aps .aps-ic { display: flex; } .aps .aps-ic svg { width: 4.4cqw; height: 4.4cqw; color: #e6e1d8; }
.aps-head b { display: flex; align-items: center; gap: 1.4cqw; font: 700 4.6cqw/1 var(--text); }
.aps .aps-head .aps-mark { width: 5.2cqw; height: 5.2cqw; }
.aps .aps-chev svg { width: 2.6cqw; height: 2.6cqw; color: #9d978e; }
.aps-chat { display: grid; align-content: end; justify-items: start; gap: 2.2cqw; padding: 3cqw 3.9cqw; }
.aps-file { display: flex; align-items: center; gap: 2.6cqw; margin: 0; padding: 2.4cqw 3cqw; border-radius: 3.6cqw; background: #231f19; box-shadow: inset 0 0 0 1px #3a352c; }
.aps-file i { display: grid; place-items: center; width: 9cqw; height: 9cqw; border-radius: 2cqw; background: #0f0e0c; color: #f2a93b; }
.aps-file i svg { width: 4.8cqw; height: 4.8cqw; }
.aps-file span { display: grid; justify-items: start; }
.aps-file b { font: 700 4cqw/1.35 var(--text); }
.aps-file small { color: #9d978e; font-size: 3.4cqw; }
.aps-me { max-width: 83%; margin: 0; padding: 2.6cqw 3.4cqw; border-radius: 3.1cqw; background: #37362f; font: 700 4.4cqw/1.5 var(--text); }
.aps-who { margin-top: 1.6cqw; color: #9d978e; font: 700 3.4cqw/1 var(--text); }
.aps-him { margin: 0; font: 700 4.3cqw/1.65 var(--text); }
.aps-acts { display: flex; gap: 6cqw; margin: 0.6cqw 0 0; color: #b8b2a8; }
.aps-acts svg { width: 3.6cqw; height: 3.6cqw; }
.aps-task { justify-self: stretch; display: flex; align-items: flex-start; gap: 3cqw; margin-top: 1.4cqw; padding: 3cqw 3.4cqw; border-radius: 3.6cqw; background: #231f19; box-shadow: inset 0 0 0 1px #3a352c; }
.aps-task i { flex: none; display: grid; place-items: center; width: 8.7cqw; height: 8.7cqw; border-radius: 50%; background: #3a301f; box-shadow: inset 0 0 0 1px #6b5328; color: #f2a93b; }
.aps-task i svg { width: 4cqw; height: 4cqw; }
.aps-task span { display: grid; justify-items: start; }
.aps-task b { font: 700 4.3cqw/1.4 var(--text); }
.aps-task small { color: #e6e1d8; font-size: 3.6cqw; line-height: 1.4; }
.aps-task em { margin-top: 1cqw; color: #f2a93b; font: 700 3.6cqw/1.4 var(--text); font-style: normal; }
.aps-composer { margin: 0 2cqw 10.7cqw; padding: 3.4cqw 2.6cqw 2.4cqw; border-radius: 5.5cqw; background: #12110f; box-shadow: inset 0 0 0 1px #797e84; }
.aps-composer > p:first-child { margin: 0 1.2cqw 4.4cqw; color: #d7d1c7; font: 700 4.1cqw/1 var(--text); }
.aps-bar { display: flex; align-items: center; gap: 6.5cqw; margin: 0; }
.aps-sp { flex: 1; }
.aps-pill { display: flex; align-items: center; gap: 1.4cqw; height: 8.7cqw; padding: 0 3cqw; border-radius: 4.4cqw; background: #2c2922; color: #ffc26a; font: 700 3.9cqw/1 var(--text); }
.aps .aps-pill .aps-mark { width: 4cqw; height: 4cqw; }
.aps-tool svg { width: 4.4cqw; height: 4.4cqw; color: #d7d1c7; }
.aps-send { display: grid; place-items: center; width: 9.2cqw; height: 9.2cqw; border-radius: 50%; box-shadow: inset 0 0 0 1px #3a3936; color: #6f6a62; }
.aps-send svg { width: 4cqw; height: 4cqw; }
.ap-reel figcaption { max-width: 15rem; color: #d9d2c7; font-size: 0.95rem; line-height: 1.7; text-wrap: balance; }

/* the plan: the desktop's own card, the stores as its last row */
.ap-plan { scroll-margin-top: calc(var(--header) + var(--ap-bar)); }
.pp-plan .ap-stores { opacity: 0; transition: opacity 0.8s; }
.pp-plan.full .ap-stores { opacity: 1; }

@media (min-width: 860px) { .ab-stage { height: 26rem; } .ap-reel { --phone: 15rem; } }
.ap-reel figcaption { display: grid; gap: 0.2rem; }
.ap-reel figcaption b { color: #f6f1e9; font: 700 1rem/1.5 var(--display); }
.ap-reel figcaption span { color: #b9b1a5; font-size: 0.9rem; line-height: 1.6; }

/* the phone (11-25, owner: «من end to end يناسب الجوالات… لا أن تقوم فقط بتصغير إصدار الديسكتوب»). Every page's own
   words, laid for a phone: the opening stands in the middle with its button under the thumb; each story list becomes its
   features one under another, each over its own stage (the script builds them, .ab-list); a comparison table becomes a
   card per row, our answer first and gold, each other one under its name; the rest in one readable column */
@media (max-width: 859px) {
  /* the opening */
  body[data-design='proto'] .mg-open { padding-inline: var(--gutter); }
  body[data-design='proto'] .mg-copy { box-sizing: border-box; width: 100%; max-width: 100%; text-align: center; }
  body[data-design='proto'] .mg-open .kicker:has(.mg-kick-mark) { justify-content: center; }
  body[data-design='proto'] .mg-open .lead { margin-inline: auto; max-width: 30rem; text-wrap: pretty; }
  body[data-design='proto'] .mg-open .ctas { flex-direction: column; align-items: stretch; width: min(100%, 21rem); margin-inline: auto; }
  body[data-design='proto'] .mg-open .ctas .button { justify-content: center; text-align: center; }
  body[data-design='proto'] .mg-open .arrow-link.down { display: none; }

  /* the stories: one feature under another, each with its own stage */
  .wst.ab-mode { padding-inline: var(--gutter); }
  .wst.ab-mode .wst-h { margin-bottom: 1.6rem; text-align: center; }
  .ab-list { display: grid; gap: 0; max-width: 34rem; margin: 0 auto; }
  .ab-list .ab { margin-bottom: 2.6rem; }
  .ab h3 .ab-sign { flex: none; position: relative; width: 2rem; height: 2rem; }
  .ab h3 .ab-sign canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .ab h3:has(.ab-sign)::before { display: none; }

  /* a comparison, on a phone (11-25, the owner: the card per row was «غير إبداعي… لا حياة فيه… مكرر»). No box per row:
     a ledger read down the page. Each group is a chapter under the member it speaks of (his mark, his colour, a rule of
     light); each row is its subject in small letters, our answer in full light with a gold seed, and the other's answer
     quiet under it. Which is which is said once, by the bar that stays on top while the ledger is read. Rows rise and
     their seed lights as they come in */
  .cmp { padding-inline: var(--gutter); }
  .cmp-vs { position: sticky; top: calc(var(--header) + 0.4rem); z-index: 20; display: flex; align-items: center; justify-content: center; gap: 0.7rem;
    width: max-content; max-width: 100%; margin: 0 auto 1.2rem; padding: 0.5rem 1.1rem; border-radius: 2rem; box-sizing: border-box;
    background: rgb(17 15 13 / 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgb(242 169 59 / 0.22), 0 0.8rem 2rem -1rem #000;
    color: #9d968b; font: 600 0.88rem/1.3 var(--text); }
  .cmp-vs .ours { display: flex; align-items: center; gap: 0.4rem; color: #ffdc92; font-weight: 700; }
  .cmp-vs-mark { width: 1.1rem; height: auto; }
  .cmp-vs em { color: #6f695f; font-style: normal; font-size: 0.78rem; }
  .cmp-vs span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cmp-wrap { border-radius: 0; overflow: visible; background: none; box-shadow: none; }
  .cmp-t, .cmp-t tbody, .cmp-t tr, .cmp-t th, .cmp-t td { display: block; width: auto !important; }
  .cmp-t thead { display: none; }
  /* a chapter: the member's mark, his name in his colour, and a rule of light under it */
  .cmp-t tbody tr.grp { position: relative; margin: 0; padding: 2.8rem 0 0.4rem; background: none; box-shadow: none; }
  .cmp-t tbody tr.grp:first-child { padding-top: 0.6rem; }
  .cmp-t tr.grp th { display: flex; align-items: center; gap: 0.75rem; padding: 0 0 0.9rem; border: 0; background: none; color: var(--act-hi); font: 700 clamp(1.25rem, 1rem + 1.4vw, 1.5rem)/1.4 var(--display); text-wrap: balance; }
  .cmp-t tr.grp th::after { content: ''; position: absolute; inset-inline: 0; bottom: 0.4rem; height: 1px; background: linear-gradient(to left, var(--act), transparent 85%); opacity: 0.75; }
  .cmp-gmark { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--act) 28%, transparent), transparent); }
  .cmp-gm { width: 1.7rem; height: auto; }
  /* a row: no box, a line under it */
  .cmp-t tbody tr:not(.grp) { position: relative; margin: 0; padding: 1.15rem 0 1.1rem; background: none; box-shadow: none; border-bottom: 1px solid rgb(255 255 255 / 0.06); }
  .cmp-t tbody tr:not(.grp) th { padding: 0 0 0.45rem; border: 0; color: #8f887d; font: 700 0.86rem/1.4 var(--display); letter-spacing: 0.01em; }
  .cmp-t td, .cmp-t.cols-4 td { position: relative; margin: 0; padding: 0; padding-inline-start: 1.35rem; border: 0; background: none; box-shadow: none; font-size: 0.93rem; line-height: 1.75; color: #8f887d; }
  .cmp-t td::before { content: ''; position: absolute; inset-inline-start: 0.2rem; top: 0.62em; width: 0.42rem; height: 0.42rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #5d574e; }
  /* ours: the full light, its seed gold */
  .cmp-t td.ours { margin: 0 0 0.55rem; padding: 0; padding-inline-start: 1.35rem; border: 0; background: none; box-shadow: none; color: #f6efe2; font: 500 1.04rem/1.75 var(--text); }
  .cmp-t td.ours::before { background: #F2A93B; box-shadow: 0 0 0.7rem 0.1rem rgb(242 169 59 / 0.55); }
  /* the other's answer: its name before its words, quiet */
  .cmp-t td.none { display: none; }
  /* the other's name, set before its answer by the script (.cmp-who) */
  .cmp-who { color: #b5ada1; font-weight: 700; margin-inline-end: 0.35rem; }
  /* rising in: the row comes up, its seed lights (the script adds .in as it is reached) */
  .cmp.live .cmp-t tbody tr:not(.grp) { opacity: 0; translate: 0 0.8rem; transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), translate 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
  .cmp.live .cmp-t tbody tr:not(.grp).in { opacity: 1; translate: 0 0; }
  .cmp.live .cmp-t tbody tr:not(.grp) td.ours::before { transform: scale(0.2); transition: transform 0.5s 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .cmp.live .cmp-t tbody tr:not(.grp).in td.ours::before { transform: scale(1); }
  .cmp-fit { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; margin-top: 2.4rem; }

  /* the words of a feature or an answer, the questions, a legal page: one readable column with room at its sides */
  .fpg, .pq, .lgl { padding-inline: var(--gutter); }
  .fpg-in { grid-template-columns: minmax(0, 1fr); }
  .pq summary { padding-block: 1rem; line-height: 1.6; }
}

/* the comparison's own parts, kept off a computer (its table stays as it was approved) */
@media (min-width: 860px) { .cmp-vs { display: none; } .cmp-t .cmp-gmark { display: none; } }


/* ═══════════ المشاهد ═══════════
   Each scene is a tall section with a stage that stays on the screen while the visitor scrolls through
   it (designs.ts, scenes: --p and data-step); every [data-at] of the scene comes on at its step. The
   screens are drawn in em, the em a share of the screen's own width, so a screen is the same picture at
   every size. */
body[data-design='scenes'] main { overflow: clip; }

.sc { position: relative; height: calc((var(--steps) * 75 + 100) * 1svh); }
.sc-stage { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: minmax(15rem, 24rem) minmax(0, 1fr); align-items: center;
  gap: clamp(1.5rem, 4vw, 4.5rem); height: 100svh; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto;
  padding: calc(var(--header) + 1rem) var(--gutter) 2rem; }
.sc-copy { display: grid; gap: 0.9rem; align-content: center; }
.sc-who { display: flex; align-items: center; gap: 0.6rem; color: var(--act, var(--gold)); font: 600 1.05rem/1.4 var(--text); }
.sc-mark { width: 2.2rem; height: 2.2rem; }
.sc-title { font: 700 clamp(1.9rem, 1.4rem + 1.8vw, 3rem)/1.22 var(--display); text-wrap: balance; }
.sc-says { display: grid; margin: 0.3rem 0 0; padding: 0; list-style: none; }
.sc-says li { grid-area: 1 / 1; color: #dfe1e5; font: 500 clamp(1.08rem, 1rem + 0.35vw, 1.3rem)/1.6 var(--text); opacity: 0; translate: 0 -0.5rem; transition: opacity 0.18s, translate 0.18s; }
.sc-says li:not(.on) { translate: 0 0.7rem; }
.sc-says li.now { opacity: 1; translate: 0 0; transition: opacity 0.45s 0.16s, translate 0.45s 0.16s; }
html.js .sc .sc-says li[data-at]:not(.now) { opacity: 0; }
/* the request leaves once he is on it */
html.js .sc .ask-bar.on:not(.now) { opacity: 0; translate: 0 1em; }
.sc-dots { display: flex; gap: 0.45rem; }
.sc-dots i { width: 1.6rem; height: 3px; border-radius: 2px; background: rgb(255 255 255 / 0.14); transition: background 0.4s; }
.sc-dots i.on { background: var(--act, var(--gold)); }
.sc-more { display: inline-flex; align-items: center; gap: 0.6rem; width: max-content; margin-top: 0.6rem; color: var(--act-hi, var(--gold)); font: 600 1rem/1.4 var(--text); text-decoration: none; }
.sc-more i { font-style: normal; transition: translate 0.2s; } .sc-more:hover i { translate: -0.35rem 0; }

.sc-screen { position: relative; container-type: inline-size; width: 100%; aspect-ratio: 16 / 10; max-height: 74svh; border-radius: 1.1rem; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 0%, rgb(255 255 255 / 0.05), transparent 60%), #0f0e0d; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 2rem 5rem -2rem rgb(0 0 0 / 0.9); }
.sc-ui { position: absolute; inset: 0; font-size: calc(100cqw / 60); color: #e9e6e1; font-family: var(--text); }

/* what a step brings: hidden until its step, then in */
html.js .sc [data-at] { opacity: 0; transition: opacity 0.5s, translate 0.5s, scale 0.5s; }
html.js .sc [data-at].on { opacity: 1; }
html.js .sc .sc-dots i[data-at], html.js .sc .sc-tabs [data-at] { opacity: 1; }

/* windows */
.win { position: absolute; border-radius: 0.7em; overflow: hidden; background: #1a1816; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 1.2em 3em -1em rgb(0 0 0 / 0.8); }
.win .bar { display: flex; align-items: center; gap: 0.4em; height: 2.1em; padding-inline: 0.9em; background: #24211e; font-size: 0.9em; color: #b5b0a9; }
.win .bar i { width: 0.6em; height: 0.6em; border-radius: 50%; background: #3a3632; }
.win .bar span { margin-inline-start: 0.6em; }
.ask-mark { width: 1.6em; height: 1.6em; flex: none; }
.ptr { position: absolute; z-index: 9; width: 2.2em; height: auto; filter: drop-shadow(0 0.3em 0.5em rgb(0 0 0 / 0.6)); transition: left 0.9s cubic-bezier(0.5, 0, 0.2, 1), top 0.9s cubic-bezier(0.5, 0, 0.2, 1); left: 50%; top: 92%; }

/* Hammam at the desk: the study in Word behind, the deck in PowerPoint in front */
.sc-desk .word { inset: 6% 4% 26% 40%; }
.sc-desk .word .ln { margin: 0; padding: 0.5em 0; border-bottom: 1px solid rgb(255 255 255 / 0.06); color: #cfcac2; transition: background 0.3s calc(var(--i) * 0.2s), color 0.3s calc(var(--i) * 0.2s); }
.sc .word.on .ln { background: rgb(239 106 76 / 0.1); color: #f1ece4; }
.sc-desk .deck { inset: 9% 32% 7% 4%; translate: 0 1.5em; }
.sc-desk .deck.on { translate: 0 0; }
.slides { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; padding: 0.8em; }
.slide { position: relative; aspect-ratio: 16 / 9; border-radius: 0.4em; padding: 0.6em 0.7em; background: #f5f0e8; color: #1a1612; font-size: 0.85em; opacity: 0; scale: 0.92; transition: opacity 0.4s calc(var(--i) * 0.22s), scale 0.4s calc(var(--i) * 0.22s); }
.deck.on .slide { opacity: 1; scale: 1; }
.slide b { display: block; font-weight: 700; }
.slide i { position: absolute; inset: 42% 10% 12% 10%; }
.slide.title { background: linear-gradient(135deg, #ef6a4c, #c24e35); color: #fff; display: grid; place-items: center; text-align: center; font-size: 1em; }
.slide.title i { display: none; }
.slide.bars i { background: linear-gradient(to top, #ef6a4c 0 70%, transparent 0) 0 100% / 18% 100% no-repeat, linear-gradient(to top, #f2a93b 0 45%, transparent 0) 30% 100% / 18% 100% no-repeat, linear-gradient(to top, #797d84 0 85%, transparent 0) 60% 100% / 18% 100% no-repeat, linear-gradient(to top, #ef6a4c 0 55%, transparent 0) 90% 100% / 18% 100% no-repeat; }
.slide.pie i { inset: 38% 30% 8%; border-radius: 50%; background: conic-gradient(#ef6a4c 0 38%, #f2a93b 0 64%, #797d84 0); aspect-ratio: 1; margin: auto; }
.slide.steps i { background: repeating-linear-gradient(to bottom, #d9d2c6 0 0.45em, transparent 0 1em); }
.ask-bar, .done { position: absolute; inset-inline: 18%; display: flex; align-items: center; gap: 0.8em; padding: 0.9em 1.2em; border-radius: 1em; background: #23201d;
  box-shadow: 0 0 0 1px rgb(239 106 76 / 0.45), 0 1em 2.5em -0.6em rgb(0 0 0 / 0.8); font-size: 1.05em; }
.ask-bar { bottom: 5%; }
.done { top: 5%; translate: 0 -0.6em; } .done.on { translate: 0 0; }
.done b { color: var(--act-hi); }
.sc[data-step='0'] .sc-desk .ptr { left: 60%; top: 86%; }
.sc[data-step='1'] .sc-desk .ptr { left: 70%; top: 34%; }
.sc[data-step='2'] .sc-desk .ptr { left: 34%; top: 56%; }
.sc[data-step='3'] .sc-desk .ptr { left: 62%; top: 74%; }

/* Hammam from the phone */
.remote .laptop { position: absolute; inset: 7% 4% 8% 36%; border-radius: 0.8em; background: #141210; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07); }
.remote .doc { inset: 5% 5% 5% 5%; }
.sc-page { padding: 1.2em 1.6em; color: #ddd8d0; font-size: 0.95em; }
.sc-page h4 { margin: 0 0 0.3em; font: 700 1.4em/1.3 var(--display); }
.sc-page .sc-to { color: #8d9198; margin: 0 0 0.8em; }
.sc-page .sc-rows p { display: flex; justify-content: space-between; margin: 0; padding: 0.55em 0; border-bottom: 1px solid rgb(255 255 255 / 0.06); opacity: 0; transition: opacity 0.35s calc(var(--i) * 0.25s); }
.doc.on .sc-rows p { opacity: 1; }
.sc-page .sc-sum { display: flex; justify-content: space-between; margin-top: 0.6em; font-weight: 700; color: var(--act-hi); }
.sc-phone { position: absolute; inset-block: 6%; inset-inline-end: 5%; width: 26%; border-radius: 1.6em; padding: 0.5em; background: #050505; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 1.5em 3em -1em rgb(0 0 0 / 0.9); }
.sc-phone-in { position: relative; height: 100%; border-radius: 1.2em; overflow: hidden; background: #151311; padding: 0.9em; display: flex; flex-direction: column; gap: 0.7em; font-size: 0.92em; }
.sc-phone-top { display: flex; align-items: center; gap: 0.5em; padding-bottom: 0.6em; border-bottom: 1px solid rgb(255 255 255 / 0.07); }
.sc-phone .sc-me { align-self: flex-end; max-width: 92%; margin: 0; padding: 0.6em 0.8em; border-radius: 0.9em; background: #2a2622; line-height: 1.55; }
.sc-phone .sc-state { display: flex; align-items: center; gap: 0.5em; color: var(--act-hi); }
.sc-phone .sc-state i { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--act); box-shadow: 0 0 0 0.3em rgb(239 106 76 / 0.2); }
.sc-phone .sc-file { display: flex; align-items: center; gap: 0.6em; padding: 0.7em; border-radius: 0.8em; background: #221f1c; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.sc-phone .sc-pdf { padding: 0.3em 0.5em; border-radius: 0.4em; background: #c0392b; color: #fff; font-size: 0.75em; font-weight: 700; }
.sc-phone .sc-file b { font-weight: 500; font-size: 0.92em; }
.sc[data-step='0'] .remote .ptr { left: 82%; top: 90%; opacity: 0; }
.sc[data-step='1'] .remote .ptr { left: 50%; top: 55%; }
.sc[data-step='2'] .remote .ptr { left: 30%; top: 78%; }

/* translation */
.tr .sc-site { inset: 5% 5% 5% 5%; }
.player { position: absolute; inset: 2.1em 0 0 0; display: grid; grid-template-rows: 1fr auto auto; background: #000; }
.frame { position: relative; background: radial-gradient(70% 80% at 60% 40%, #3b4a5c, #10161d 70%); }
.frame .play { position: absolute; left: 50%; top: 45%; translate: -50% -50%; width: 4em; height: 4em; border-radius: 50%; background: rgb(255 255 255 / 0.12); }
.subs { position: absolute; inset-inline: 10%; bottom: 3.4em; display: grid; justify-items: center; }
.subs p { grid-area: 1 / 1; margin: 0; padding: 0.35em 0.8em; border-radius: 0.4em; background: rgb(0 0 0 / 0.72); font-size: 1.35em; text-align: center; transition: opacity 0.5s; }
.subs .en { direction: ltr; }
.sc .subs .ar.on ~ .en, .sc[data-step='2'] .subs .en { opacity: 0; }
.track { height: 0.35em; margin: 0.8em 1.2em 1em; border-radius: 1em; background: rgb(255 255 255 / 0.15); overflow: hidden; }
.track i { display: block; height: 100%; width: calc(20% + var(--p, 0) * 60%); background: var(--act); }
.tr-button { position: absolute; top: 9%; inset-inline-start: 8%; display: flex; align-items: center; gap: 0.6em; padding: 0.7em 1.1em; border-radius: 0.9em; background: #23201d;
  box-shadow: 0 0 0 1.5px var(--act), 0 0 2.4em -0.4em var(--act); font-size: 1.05em; }

/* Raseeq */
.rs .desk-r { inset: 5% 4% 5% 34%; }
.sc-talks { display: grid; gap: 0.6em; padding: 1em; }
.rs .who-line { margin: 0; color: #8d9198; font-size: 0.88em; }
.rs .cust { justify-self: start; max-width: 80%; margin: 0; padding: 0.6em 0.9em; border-radius: 0.9em; background: #2a2622; line-height: 1.55; }
.rs .sc-reply { justify-self: end; max-width: 85%; }
.rs .sc-reply.ok { background: rgb(61 187 140 / 0.28); color: #eafff5; font-weight: 600; }
.rs .you { padding: 0.3em 0 0.6em; color: #9be8c9; font-size: 0.85em; font-weight: 600; border-bottom: 1px solid rgb(255 255 255 / 0.07); }
.sc-acts.big { display: flex; gap: 0.4em; } .sc-acts.big span { flex: 1; text-align: center; padding: 0.6em; border-radius: 0.7em; background: #2b2723; } .sc-acts.big .go { background: #3dbb8c; color: #062016; font-weight: 700; }
.sc[data-step='3'] .sc-acts.big .go { box-shadow: 0 0 0 0.2em rgb(61 187 140 / 0.4); }
.sc-talk { display: grid; gap: 0.4em; padding: 0.7em 0.9em; border-radius: 0.8em; background: #201e1b; }
.sc-talk .sc-said { margin: 0; color: #cfcac2; } .sc-talk .sc-said b { display: block; color: #e9e6e1; font-size: 0.9em; }
.sc-talk .sc-reply { margin: 0; padding: 0.5em 0.8em; border-radius: 0.7em; background: rgb(61 187 140 / 0.14); color: #c9f1df; font-size: 0.95em; line-height: 1.55; }
.sc-talk .sc-wait { margin: 0; color: #d9b36a; font-size: 0.9em; }
.rs .sc-phone { width: 27%; }
.sc-note { display: flex; gap: 0.6em; align-items: flex-start; padding: 0.7em; border-radius: 0.9em; background: #24211e; box-shadow: inset 0 0 0 1px rgb(61 187 140 / 0.4); translate: 0 -0.8em; }
.sc-note.on { translate: 0 0; } .sc-note p { margin: 0; line-height: 1.5; } .sc-note b { display: block; color: var(--act-hi); }
.sc-phone .sc-saved { margin: 0; color: var(--act-hi); font-size: 0.88em; }

/* Qanan */
.qn .sc-papers { position: absolute; inset-inline-start: 5%; top: 8%; width: 30%; display: grid; gap: 0.6em; }
.qn .sc-papers span { padding: 0.7em 0.9em; border-radius: 0.6em; background: #201e1b; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); font-size: 0.95em; }
.qn .sc-papers p { margin: 0.4em 0 0; padding: 0.8em; border-radius: 0.8em; background: #23201d; box-shadow: 0 0 0 1px rgb(74 134 238 / 0.45); line-height: 1.5; }
.qn .sc-law { inset: 6% 38% 40% 4%; }
.sc-cite { display: grid; gap: 0.55em; padding: 1em 1.2em; } .sc-cite b { font-weight: 600; } .sc-cite i { display: block; height: 0.7em; border-radius: 0.3em; background: rgb(255 255 255 / 0.1); } .sc-cite i.hit { background: rgb(74 134 238 / 0.55); } .sc-cite i.short { width: 62%; }
.sc-cite mark { color: #e9eefc; background: rgb(74 134 238 / 0.25); box-decoration-break: clone; padding: 0 0.2em; }
.sc-cite small, .sc-calc small { color: #8d9198; }
.sc-calc { display: grid; grid-template-columns: auto 1fr; gap: 0.2em 1em; align-items: baseline; margin: 0 1.2em; padding: 0.8em 1em; border-radius: 0.7em; background: #201e1b; }
.sc-calc b { color: var(--act-hi); font-size: 1.3em; } .sc-calc small { grid-column: 1 / -1; }
.qn .sc-draft { inset: 46% 30% 5% 10%; translate: 0 1.5em; } .qn .sc-draft.on { translate: 0 0; }
.sc-draft sup { color: var(--act-hi); } .sc-draft .sc-tag { display: inline-block; margin: 0.4em 0 0; padding: 0.2em 0.7em; border-radius: 1em; background: rgb(74 134 238 / 0.18); color: var(--act-hi); font-size: 0.85em; }

/* Raseeq's ads: the owner's side chat, then the clip in the studio */
.rs-s .chat-s { inset: 5% 4% 5% 46%; }
.rs-s .cust { justify-self: start; max-width: 85%; margin: 0; padding: 0.6em 0.9em; border-radius: 0.9em; background: #2a2622; line-height: 1.55; }
.rs-s .sc-reply { justify-self: end; max-width: 85%; margin: 0; padding: 0.5em 0.8em; border-radius: 0.7em; background: rgb(61 187 140 / 0.14); color: #c9f1df; line-height: 1.55; }
.rs-s .chips { display: flex; flex-wrap: wrap; gap: 0.4em; justify-content: flex-end; }
.rs-s .chips span { padding: 0.3em 0.7em; border-radius: 1em; background: rgb(61 187 140 / 0.2); color: #e5fff3; font-size: 0.9em; }
.rs-s .studio { inset: 5% 58% 5% 4%; translate: 0 1.2em; } .rs-s .studio.on { translate: 0 0; }
.clip { display: grid; gap: 0.6em; padding: 0.8em; justify-items: center; }
.frame9 { position: relative; width: 62%; aspect-ratio: 9 / 16; border-radius: 0.6em; overflow: hidden; display: grid; place-items: center; text-align: center;
  background: linear-gradient(160deg, #1f6f57, #0e2f27 60%, #3dbb8c); color: #fff; font: 700 1.15em/1.5 var(--display); }
.frame9 b { position: relative; z-index: 1; padding: 0 0.4em; text-shadow: 0 0.1em 0.6em rgb(0 0 0 / 0.5); }
.clip-mark { position: absolute; bottom: 6%; left: 50%; translate: -50% 0; width: 2em; height: 2em; }
.frame9 .sweep { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.25) 50%, transparent 70%); translate: calc(-100% + var(--p, 0) * 300%) 0; }
.clip-meta { display: flex; justify-content: space-between; align-items: center; gap: 0.5em; width: 100%; font-size: 0.85em; color: #b5b0a9; }
.clip-meta .dl { padding: 0.35em 0.9em; border-radius: 0.6em; background: #3dbb8c; color: #062016; font-weight: 700; }

/* Qanan: filling a template */
.qn-t .tpl { inset: 5% 4% 5% 30%; }
.qn-t .sc-page p { margin: 0 0 0.55em; line-height: 1.9; }
.qn-fld .qn-k { padding: 0 0.3em; border-radius: 0.3em; background: rgb(255 255 255 / 0.08); color: #b5b0a9; }
.qn-fld .qn-v { display: none; padding: 0 0.3em; border-radius: 0.3em; background: rgb(74 134 238 / 0.22); color: #e3ecff; }
html.js .sc .qn-fld .qn-v.on { display: inline; }
html.js .sc .qn-fld:has(.qn-v.on) .qn-k { display: none; }
.qn-fld.qn-miss .qn-v { background: rgb(242 169 59 / 0.16); color: #ffd18a; }
.qn-t .qn-origin { margin-top: 0.6em; padding: 0.6em 0.8em; border-inline-start: 2px solid var(--act); background: rgb(74 134 238 / 0.08); font-size: 0.9em; line-height: 1.6; }
.qn-t .qn-drop { position: absolute; inset-inline-end: 4%; top: 8%; width: 23%; display: grid; gap: 0.6em; padding: 0.8em; border-radius: 0.8em; background: #23201d; box-shadow: 0 0 0 1px rgb(74 134 238 / 0.45); font-size: 0.92em; line-height: 1.55; }
.qn-chip { justify-self: start; padding: 0.3em 0.7em; border-radius: 0.5em; background: #2b2723; }
.qn-t .qn-drop p { margin: 0; color: #b5cfff; }
.qn-t .qn-warn { position: absolute; inset-inline-end: 4%; bottom: 8%; width: 23%; padding: 0.8em; border-radius: 0.8em; background: #2a2219; box-shadow: 0 0 0 1px rgb(242 169 59 / 0.45); font-size: 0.9em; line-height: 1.6; }
.qn-t .qn-warn b { color: #ffd18a; }
.qn-exp { display: flex; gap: 0.4em; margin-top: 0.5em; } .qn-exp span { padding: 0.3em 0.8em; border-radius: 0.5em; background: #3a332b; }

/* Qanan: the probe, plain lists like the product */
.qn-m .papers-in { position: absolute; inset-inline-end: 4%; top: 8%; width: 22%; display: grid; gap: 0.5em; }
.qn-m .papers-in span { padding: 0.6em 0.8em; border-radius: 0.6em; background: #201e1b; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); font-size: 0.92em; }
.qn-m .papers-in p { margin: 0.3em 0 0; color: #b5cfff; font-size: 0.9em; }
.qn-m .probe { inset: 5% 4% 5% 30%; }
.qn-m h5 { margin: 0 0 0.4em; font: 700 1.1em/1.4 var(--display); color: #e3ecff; }
.qn-m .qn-grp { margin-bottom: 0.7em; } .qn-m .qn-grp b { display: block; color: var(--act-hi); font-size: 0.9em; margin-bottom: 0.2em; }
.qn-m .qn-grp p { margin: 0; padding: 0.35em 0; border-bottom: 1px solid rgb(255 255 255 / 0.06); line-height: 1.55; font-size: 0.95em; }
.qn-m .qn-grp small { color: #8d9198; margin-inline-start: 0.4em; }
.qn-m .qn-grp.qn-odd b { color: #ffd18a; }

/* Qanan: a question about a law */
.qn-q .qa { inset: 5% 4% 5% 4%; }
.qn-q .qn-line { display: flex; justify-content: space-between; align-items: center; gap: 1em; margin: 0 0 0.8em; padding: 0.7em 0.9em; border-radius: 0.8em; background: #23201d; }
.qn-badge { flex: none; padding: 0.2em 0.7em; border-radius: 1em; background: rgb(74 134 238 / 0.18); color: #b5cfff; font-size: 0.8em; }
.qn-q .qn-reading { margin-bottom: 0.8em; } .qn-q .qn-reading b, .qn-q .qn-srcs b { display: block; color: var(--act-hi); font-size: 0.9em; }
.qn-q .qn-reading p { margin: 0.2em 0; } .qn-q .qn-reading small { color: #8d9198; }
.qn-q .qn-ans { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45em; margin-bottom: 0.8em; }
.qn-q .qn-ans i { display: block; height: 0.65em; width: 30%; border-radius: 0.3em; background: rgb(255 255 255 / 0.12); }
.qn-q .qn-ans i.qn-lead { width: 100%; height: 0.8em; background: rgb(255 255 255 / 0.3); }
.qn-q .qn-ans i.qn-short { width: 18%; }
.qn-art { padding: 0.1em 0.5em; border-radius: 0.4em; background: rgb(74 134 238 / 0.25); color: #e3ecff; font-size: 0.85em; }
.qn-q .qn-srcs p { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 0.4em 0; border-bottom: 1px solid rgb(255 255 255 / 0.06); }
.qn-open { padding: 0.25em 0.7em; border-radius: 0.5em; background: #4a86ee; color: #fff; font-size: 0.85em; }

/* the phone app */
.app .sc-phone.big { inset-block: 4%; inset-inline: auto; left: 50%; translate: -50% 0; width: 30%; }
.sc-tabs { display: flex; justify-content: space-between; gap: 0.3em; padding-bottom: 0.6em; border-bottom: 1px solid rgb(255 255 255 / 0.07); }
.sc-tabs span { display: flex; align-items: center; gap: 0.3em; padding: 0.3em 0.5em; border-radius: 0.7em; font-size: 0.9em; color: #8d9198; transition: background 0.4s, color 0.4s; }
.sc-tabs span .ask-mark { width: 1.3em; height: 1.3em; }
.sc-tabs span.now { background: rgb(255 255 255 / 0.08); color: #f1ece4; }
.app .sc-card { position: absolute; inset-inline: 0.9em; top: 4.2em; display: grid; gap: 0.5em; padding: 0.9em; border-radius: 0.9em; background: #221f1c; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
html.js .app .sc-card.on:not(.now) { opacity: 0; }
.app .sc-card small { color: #8d9198; } .app .sc-card b { font-weight: 600; line-height: 1.5; }
.c0 .sc-prog { height: 0.35em; border-radius: 1em; background: rgb(255 255 255 / 0.1); overflow: hidden; } .c0 .sc-prog i { display: block; height: 100%; width: 62%; background: #ef6a4c; }
.c1 { box-shadow: inset 0 0 0 1px rgb(61 187 140 / 0.45) !important; }
.c1 .sc-acts { display: flex; gap: 0.4em; } .c1 .sc-acts span { padding: 0.35em 0.7em; border-radius: 0.6em; background: #2b2723; font-size: 0.88em; } .c1 .sc-acts .go { background: #3dbb8c; color: #062016; font-weight: 600; }
.c2 { box-shadow: inset 0 0 0 1px rgb(74 134 238 / 0.45) !important; } .c2 .sc-docx { color: #b5cfff; font-size: 0.9em; }

/* the bands after the scenes: the plans, the details */
.sc-band { position: relative; z-index: 2; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 12svh var(--gutter) 6svh; display: grid; gap: 1.2rem; }
.sc-line { color: var(--sand); font-size: 1.1rem; }
.sc-details .faq { margin-inline: 0; }

@media (max-width: 860px) {
  .sc-stage { grid-template-columns: 1fr; align-content: center; gap: 1.2rem; padding-top: calc(var(--header) + 0.6rem); }
  .sc-copy { gap: 0.5rem; }
  .sc-title { font-size: clamp(1.5rem, 1.2rem + 2.5vw, 2rem); }
  .sc-says li { font-size: 1.02rem; }
  .sc-screen { aspect-ratio: 4 / 5; max-height: 56svh; }
  .sc-ui { font-size: calc(100cqw / 34); }
  .sc-desk .word { inset: 4% 4% 44% 4%; } .sc-desk .deck { inset: 30% 4% 14% 4%; }
  .inbox li { grid-template-columns: 7em 1fr auto; }
  .ask-bar, .done { inset-inline: 4%; font-size: 0.95em; }
  .remote .laptop { inset: 4% 4% 42% 4%; } .sc-phone { inset-block: auto 3%; height: 46%; width: 50%; inset-inline: auto; left: 25%; }
  .rs-s .chat-s { inset: 3% 4% 52% 4%; } .rs-s .studio { inset: 50% 22% 3% 22%; } .frame9 { width: 42%; }
  .rs .desk-r { inset: 4% 4% 46% 4%; } .rs .sc-phone { width: 56%; inset-inline: auto; left: 22%; }
  .qn-t .tpl, .qn-m .probe { inset: 30% 4% 3% 4%; } .qn-t .qn-drop, .qn-m .papers-in { inset-inline: 4%; width: auto; top: 3%; } .qn-m .papers-in { grid-template-columns: repeat(3, 1fr); } .qn-m .papers-in p { grid-column: 1 / -1; } .qn-t .qn-warn { inset-inline: 4%; width: auto; bottom: 3%; }
  .qn .sc-papers { inset-inline: 4%; width: auto; top: 3%; grid-template-columns: repeat(3, 1fr); } .qn .sc-papers p { grid-column: 1 / -1; }
  .qn .sc-law { inset: 33% 4% 34% 4%; } .qn .sc-draft { inset: 60% 4% 3% 4%; }
  .tr .sc-site { inset: 4%; }
  .app .sc-phone.big { width: 74%; height: 92%; }
  .sc[data-step] .ptr { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sc-says li, .sc [data-at], .ptr { transition: none; } }
.qn-q .sc-page { font-size: 1.2em; } .qn-q .qn-ans i { height: 0.75em; }

/* التصاميم الخمسة: لكل تصميم بنيته وحركته، والهوية واحدة (site.css). */

/* ═══════════ الخيط ═══════════
   صفحة كتاب: عمود كلام واسع، وعلى جانبه خيط الغبار ومحطاته. */
body[data-design='thread'] { --rail: 7.5rem; --page: 74rem; }
body[data-design='thread'] main {
  position: relative;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: calc(var(--gutter) + var(--rail)) var(--gutter);
}
.th-thread {
  position: fixed;
  top: calc(var(--header) + 1rem);
  bottom: 0;
  inset-inline-start: calc(max((100% - var(--page)) / 2, 0px) + var(--gutter) + 1.2rem);
  width: 2px;
  pointer-events: none;
}
body[data-design='thread'] .rail {
  display: flex;
  inset-inline-start: calc(max((100% - var(--page)) / 2, 0px) + var(--gutter) + 1.2rem - 0.2rem);
  gap: 0.9rem;
  z-index: 31;
}
body[data-design='thread'] .rail i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--lead-dim); box-shadow: 0 0 0 0.3rem #020101; }
body[data-design='thread'] .rail a[data-on] i { width: 0.45rem; background: var(--gold); }
body[data-design='thread'] .rail span { padding: 0; background: none; opacity: 1; font-size: 0.74rem; }
body[data-design='thread'] .rail a { gap: 0.9rem; }

.th-open { display: grid; align-content: center; min-height: 100svh; padding-block: calc(var(--header) + 3rem) 4rem; }
.th-open.short { min-height: 0; padding-bottom: 2rem; }
.th-sun { position: absolute; top: calc(var(--header) + 1.2rem); inset-inline-start: calc(var(--gutter) + 1.2rem - 2.6rem); width: 5.2rem; aspect-ratio: 1; }
.th-open h1 { font-weight: 700; }
.th-open .kicker { margin-bottom: 1.4rem; }
.th-line { display: block; max-width: 11em; font: 700 clamp(3rem, 1.6rem + 5.4vw, 7.4rem)/1.14 var(--display); }
.th-open.short .th-line, body[data-page='hammam'] .th-line, body[data-page='raseeq'] .th-line, body[data-page='qanan'] .th-line { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 5.4rem); max-width: 13em; }
.th-open .lead { max-width: 32em; margin: 1.8rem 0 0; font-size: 1.2rem; }
.th-open .ctas { margin-top: 2rem; }

.th-chapter { padding-block: clamp(3.5rem, 9vh, 6rem); border-top: 1px solid var(--line-soft); }
.th-chapter header { max-width: 44rem; margin-bottom: 2.4rem; }
.th-name { font: 700 clamp(3.4rem, 2rem + 5vw, 6.6rem)/1.1 var(--display); }
.th-name.small, .th-title { font: 700 clamp(2rem, 1.5rem + 2vw, 3.2rem)/1.25 var(--display); }
.th-say { margin-top: 0.9rem; color: var(--sand); font-size: 1.3rem; line-height: 1.7; }
.th-ledger { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); margin-bottom: 2.2rem; }
.th-ledger h3 { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.6rem; font: 600 0.9rem/1.6 var(--text); }
.th-ledger h3::before { content: ''; width: 1.8rem; height: 2px; }
.th-ledger .his h3 { color: var(--gold); }
.th-ledger .his h3::before { background: var(--gold); }
.th-ledger .yours h3 { color: var(--lead); }
.th-ledger .yours h3::before { background: var(--lead); }
.th-ledger .plain li { font-size: 1.12rem; padding-block: 0.8rem; }
.th-ledger .his li { color: var(--ink); }
.th-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.th-two .does { margin-top: 0; }
.th-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; grid-column: 1 / -1; }
.th-stats li { display: grid; gap: 0.3rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.th-stats b { font: 700 clamp(2.4rem, 1.6rem + 3vw, 4.4rem)/1.1 var(--display); }
.th-stats span { color: var(--sand); }
.th-table { display: grid; }
.th-row { display: grid; grid-template-columns: 12rem 9rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: start; padding-block: 1.5rem; border-top: 1px solid var(--line-soft); }
.th-row.lit { border-top-color: rgb(242 169 59 / 0.5); }
.th-row h3 { font: 700 1.5rem/1.3 var(--display); }
.th-row .for { color: var(--mute); font-size: 0.8rem; }
.th-row .price { margin: 0; font-size: 2.2rem; }
.th-row .note { color: var(--gold); font-size: 0.84rem; margin-bottom: 0.3rem; }
.th-row .plain li { padding-block: 0.35rem; border: 0; font-size: 0.94rem; }
.th-steps { display: grid; counter-reset: step; max-width: 44rem; }
.th-steps li { display: grid; grid-template-columns: 2.6rem 9rem 1fr; gap: 0.8rem; align-items: baseline; padding-block: 0.9rem; border-top: 1px solid var(--line-soft); counter-increment: step; }
.th-steps li::before { content: counter(step, arabic-indic); color: var(--lead); font: 700 1.5rem/1 var(--display); }
.th-steps b { font-weight: 600; }
.th-steps span { color: var(--sand); font-size: 0.95rem; line-height: 1.7; }
.th-after { margin: 2.4rem 0 0.6rem; color: var(--mute); font: 500 0.86rem var(--text); }
.th-chapter .needs { margin-top: 0.9rem; color: var(--mute); font-size: 0.84rem; }
.th-chapter .qr-row, .th-chapter .stores { margin-top: 1.2rem; }
.th-chapter .faq { margin-inline: 0; }
.th-chapter .form { margin-top: 0.5rem; }
.th-by-device { display: flex; flex-direction: column; }
html[data-face='phone'] .th-by-device #phone { order: -1; }
.th-end { padding-block: 2rem 4rem; }
body[data-design='thread'] .footer { margin-top: 0; }

@media (max-width: 900px) {
  body[data-design='thread'] { --rail: 1.9rem; }
  body[data-design='thread'] main { padding-inline: calc(var(--gutter) + var(--rail)) var(--gutter); }
  .th-thread { inset-inline-start: 1.25rem; }
  body[data-design='thread'] .rail { display: none; }
  .th-sun { inset-inline-start: 0.1rem; width: 2.3rem; }
  .th-open { min-height: 88svh; }
  .th-ledger, .th-two { grid-template-columns: 1fr; }
  .th-row { grid-template-columns: 1fr auto; gap: 0.6rem 1rem; }
  .th-row .th-has, .th-row .th-act { grid-column: 1 / -1; }
  .th-steps li { grid-template-columns: 2rem 1fr; }
  .th-steps span { grid-column: 2; }
  .th-stats { grid-template-columns: 1fr; }
  .th-say { font-size: 1.12rem; }
}
