/* Home page — extends /site.css. Sections: hero, marquee, live rail, scroll-driven phone scene, stacked steps, hosts, FAQ, final call. */
.home h2 { margin: 0; padding: 0; border: 0; }
.sec { padding: clamp(72px, 11vw, 160px) 0; }
.h-xl { word-spacing: .08em; font-weight: 800; font-size: clamp(36px, 6.6vw, 100px); letter-spacing: -0.052em; line-height: .96; text-wrap: balance; max-width: 16ch; }
html[dir="rtl"] .h-xl { line-height: 1.25; }
.sec-body { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.6; color: var(--ink-soft); max-width: 520px; margin-top: 22px; }
.txt-link { font-family: 'Space Mono', 'IBM Plex Sans Arabic', monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; padding-bottom: 4px; border-bottom: 1.5px solid currentColor; transition: gap .4s var(--ease); }
.txt-link:hover { opacity: 1; gap: 18px; }

/* ── hero ── */
.hero { min-height: calc(100svh - 84px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 32px; padding-top: clamp(36px, 5vw, 72px); padding-bottom: 56px; }
.hero h1 { font-size: clamp(54px, 8.7vw, 152px); line-height: .86; margin: 20px 0 30px; letter-spacing: -0.065em; }
html[dir="rtl"] .hero h1 { line-height: 1.16; font-size: clamp(52px, 8.2vw, 140px); }
.hero h1 em { font-style: normal; position: relative; display: inline-block; }
.swash { position: absolute; inset-inline: -2%; bottom: -.04em; width: 104%; height: .32em; overflow: visible; pointer-events: none; }
html[dir="rtl"] .swash { bottom: -.12em; }
.swash path { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s cubic-bezier(.6, 0, .2, 1) 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lead { max-width: 500px; margin-bottom: 30px; color: var(--ink-soft); line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.scroll-cue { position: absolute; inset-inline-start: 24px; bottom: 18px; font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .2em; color: var(--ink-mid); display: flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 38px; background: var(--ink-mid); transform-origin: top; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.stage { position: relative; display: grid; place-items: center; perspective: 1500px; min-height: 660px; }
.stage::before { content: ''; position: absolute; width: min(520px, 110%); aspect-ratio: 1; border-radius: 50%; background: var(--ink); transform: translate(6%, 4%) scale(var(--blob, 1)); animation: blob 9s ease-in-out infinite; }
@keyframes blob { 0%, 100% { border-radius: 50% 46% 54% 48% / 48% 54% 46% 52%; } 50% { border-radius: 44% 56% 46% 54% / 56% 44% 54% 46%; } }
.badge { position: absolute; width: 150px; height: 150px; inset-inline-end: -8px; top: 6px; animation: spin 22s linear infinite; z-index: 3; }
.badge text { font: 700 15.5px 'Space Mono', monospace; letter-spacing: .18em; fill: var(--ink); }
.badge circle { fill: var(--bone); }
@keyframes spin { to { transform: rotate(360deg); } }
.float { animation: float 7s ease-in-out infinite; transform-style: preserve-3d; position: relative; z-index: 2; }
@keyframes float { 0%, 100% { transform: translateY(-10px); } 50% { transform: translateY(12px); } }

/* ── the phone ── */
.phone { width: 300px; height: 624px; border-radius: 50px; background: #0c0c0c; padding: 10px; position: relative; flex-shrink: 0; box-shadow: 0 70px 110px -50px rgba(20, 20, 20, .75), 0 0 0 1.5px #2c2c2c, 0 0 0 1px rgba(255, 255, 255, .12) inset; transition: transform .5s var(--ease); transform: rotateY(calc(var(--ry, -14) * 1deg)) rotateX(calc(var(--rx, 6) * 1deg)); }
.phone::before { content: ''; position: absolute; top: 20px; left: 50%; width: 86px; height: 25px; margin-left: -43px; border-radius: 14px; background: #0c0c0c; z-index: 6; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 41px; overflow: hidden; background: var(--bone); color: var(--ink); font-size: 11px; line-height: 1.35; }
.scr { position: absolute; inset: 0; padding: 56px 14px 14px; display: flex; flex-direction: column; gap: 9px; opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .45s ease, transform .7s var(--ease); pointer-events: none; }
.scr.on { opacity: 1; transform: none; }
.p-mono { font-family: 'Space Mono', 'IBM Plex Sans Arabic', monospace; font-size: 8px; letter-spacing: .12em; color: var(--ink-mid); text-transform: uppercase; }
.p-h { font-weight: 800; font-size: 19px; letter-spacing: -.035em; line-height: 1.1; }
.p-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.p-av { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bone); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.p-search { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; color: var(--ink-mid); }
.p-chips { display: flex; gap: 5px; overflow: hidden; }
.p-chips > * { border: 1px solid var(--line); border-radius: 99px; padding: 4px 9px; font-weight: 600; font-size: 10px; white-space: nowrap; }
.p-chips > b { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.p-feat { position: relative; background: var(--ink); color: var(--bone); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.p-feat .p-mono { color: var(--ink-faint); }
.p-emoji { font-size: 34px; line-height: 1.2; }
.p-t { font-weight: 800; font-size: 15px; letter-spacing: -.02em; line-height: 1.2; }
.p-li { display: flex; align-items: center; gap: 9px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 13px; padding: 7px 9px; }
.p-li > i { font-style: normal; font-size: 19px; width: 34px; height: 34px; border-radius: 9px; background: var(--bone-soft); display: grid; place-items: center; flex-shrink: 0; }
.p-li > div { flex: 1; min-width: 0; }
.p-li b { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-li small { font-family: 'Space Mono', 'IBM Plex Sans Arabic', monospace; font-size: 7.5px; letter-spacing: .1em; color: var(--ink-mid); }
.p-li em { font-style: normal; font-weight: 700; font-size: 10px; white-space: nowrap; }
.p-cover { margin: -56px -14px 2px; height: 168px; background: var(--ink); display: grid; place-items: center; font-size: 62px; flex-shrink: 0; }
.p-times { display: flex; gap: 6px; }
.p-times > * { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 7px 4px; font-weight: 700; font-size: 10px; }
.p-times > b { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.p-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.p-facts > div { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 11px; padding: 7px 9px; }
.p-facts b { display: block; font-size: 11.5px; margin-top: 2px; }
.p-btn { position: relative; margin-top: auto; background: var(--ink); color: var(--bone); border-radius: 99px; text-align: center; font-weight: 800; font-size: 12.5px; padding: 12px; }
.p-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); margin-top: 0; }
.p-line { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.p-line.tot { border: 0; font-weight: 800; font-size: 14px; }
.p-step { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 14px; }
.p-step i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; }
.p-check { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--ink-soft); }
.p-check i { font-style: normal; width: 16px; height: 16px; border-radius: 5px; background: var(--ink); color: var(--bone); display: grid; place-items: center; font-size: 10px; flex-shrink: 0; }
.scr.dim { background: rgba(20, 20, 20, .45); justify-content: flex-end; padding: 0; }
.p-sheet { background: #fff; border-radius: 26px 26px 41px 41px; padding: 16px 16px 22px; display: flex; flex-direction: column; gap: 8px; transform: translateY(105%); transition: transform .8s var(--ease) .1s; }
.scr.on .p-sheet { transform: none; }
.p-pay { font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.p-side { align-self: center; margin-top: 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.p-side i { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-style: normal; font-size: 15px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.14); box-shadow: 0 0 0 8px rgba(20, 20, 20, .08); } }
.p-ok { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--bone); display: grid; place-items: center; font-size: 22px; align-self: center; transform: scale(0); transition: transform .7s cubic-bezier(.3, 1.6, .5, 1) .25s; }
.scr.on .p-ok { transform: none; }
.p-ticket { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.p-cut { border-top: 1.5px dashed var(--line); margin: 3px -12px; }
.p-qr { width: 62px; height: 62px; border-radius: 8px; flex-shrink: 0; background: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 12.4px 12.4px, repeating-linear-gradient(90deg, var(--ink) 0 3.1px, transparent 0 9.3px), var(--paper); outline: 4px solid #fff; }
.p-code { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.tap { position: absolute; inset-inline-end: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: rgba(239, 236, 231, .9); mix-blend-mode: difference; opacity: 0; }
.scr.on .tap { animation: tap 2.4s ease-out .9s infinite; }
@keyframes tap { 0% { opacity: 0; transform: scale(1.8); } 25% { opacity: .9; transform: scale(1); } 45% { opacity: .9; transform: scale(.8); } 70%, 100% { opacity: 0; transform: scale(2.2); } }

/* ── marquee ── */
.mq { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; direction: ltr; background: var(--bone); }
.mq-row { display: flex; width: max-content; animation: mq 70s linear infinite; transform-origin: center; }
.mq-row.rev { animation-direction: reverse; animation-duration: 110s; }
.mq-skew { transform: skewX(calc(var(--sk, 0) * 1deg)); transition: transform .3s ease-out; }
.mq-row span { font-weight: 800; font-size: clamp(34px, 6.2vw, 92px); letter-spacing: -.045em; line-height: 1.15; padding: 0 .32em; white-space: nowrap; }
.mq-row.rev span { font-size: clamp(20px, 2.6vw, 38px); font-weight: 600; letter-spacing: -.02em; color: var(--ink-mid); }
.mq-row:not(.rev) span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.mq:hover .mq-row { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ── live rail ── */
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 24px 40px; margin: 0 -24px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .ws-card { flex: 0 0 min(320px, 78vw); scroll-snap-align: start; }

/* ── scroll-driven scene ── */
.scene { height: 460vh; }
.scene-pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; overflow: hidden; }
.scene-steps { list-style: none; margin-top: 34px; display: flex; flex-direction: column; }
.scene-steps li { display: flex; align-items: baseline; gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); font-weight: 800; font-size: clamp(22px, 2.8vw, 40px); letter-spacing: -.04em; color: var(--ink-faint); transition: color .4s, padding .5s var(--ease); }
.scene-steps li small { font: 400 11px 'Space Mono', monospace; letter-spacing: .14em; }
.scene-steps li.on { color: var(--ink); padding-inline-start: 18px; }
.scene-bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.scene-bar i { display: block; height: 100%; background: var(--ink); transform: scaleX(var(--sp, 0)); transform-origin: left; }
html[dir="rtl"] .scene-bar i { transform-origin: right; }
.scene .stage { min-height: 0; }
.scene .stage::before { width: min(560px, 120%); background: var(--bone-soft); border: 1px solid var(--line); }
.scene .phone { --ry: 0; --rx: 0; }

/* ── stacked steps ── */
.stack { display: grid; gap: 28px; margin-top: 56px; }
.stack-card { position: sticky; top: calc(96px + var(--i) * 20px); min-height: min(62vh, 560px); border-radius: 36px; border: 1px solid var(--line); background: var(--paper); padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; box-shadow: 0 -24px 60px -44px rgba(20, 20, 20, .6); overflow: hidden; }
.stack-card:nth-child(2) { background: var(--bone-soft); }
.stack-card:nth-child(3) { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.stack-top { display: flex; justify-content: space-between; font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .16em; opacity: .6; }
.stack-word { font-weight: 800; font-size: clamp(76px, 17vw, 260px); letter-spacing: -.07em; line-height: .82; }
html[dir="rtl"] .stack-word { line-height: 1.2; font-size: clamp(70px, 14vw, 210px); }
.stack-card p { font-size: clamp(17px, 1.8vw, 22px); line-height: 1.5; max-width: 460px; opacity: .85; }
.stack-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* ── hosts ── */
.hosts { background: var(--ink); color: var(--bone); border-radius: 44px; margin: 0 12px; overflow: hidden; }
.hosts .eyebrow, .hosts .sec-body { color: var(--ink-faint); }
.hosts .eyebrow::before { background: var(--ink-faint); }
.hosts .h-xl { max-width: 12ch; }
.host-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0; margin: 56px 0 44px; border-top: 1px solid rgba(239, 236, 231, .18); }
.host-pt { padding: 28px 24px 28px 0; border-bottom: 1px solid rgba(239, 236, 231, .18); display: flex; flex-direction: column; gap: 10px; }
html[dir="rtl"] .host-pt { padding: 28px 0 28px 24px; }
.host-pt small { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .16em; color: var(--ink-faint); }
.host-pt b { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.03em; line-height: 1.15; }
.host-pt span { color: var(--ink-faint); line-height: 1.55; font-size: 16px; }
.btn-bone { display: inline-flex; align-items: center; gap: 14px; background: var(--bone); color: var(--ink); text-decoration: none; font-weight: 800; font-size: clamp(16px, 1.6vw, 20px); letter-spacing: -.02em; padding: 20px 30px; border-radius: 99px; transition: transform .4s var(--ease), gap .4s var(--ease); }
.btn-bone:hover { opacity: 1; transform: translateY(-3px); gap: 22px; }
.ticker { direction: ltr; overflow: hidden; border-top: 1px solid rgba(239, 236, 231, .18); margin-top: clamp(56px, 8vw, 110px); padding: 16px 0; }
.ticker div { display: flex; width: max-content; animation: mq 40s linear infinite; font-family: 'Space Mono', 'IBM Plex Sans Arabic', monospace; font-size: 12px; letter-spacing: .16em; color: var(--ink-faint); }
.ticker span { padding: 0 22px; white-space: nowrap; }

/* ── FAQ ── */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.faq-list { border-top: 1.5px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-weight: 700; font-size: clamp(19px, 2.1vw, 28px); letter-spacing: -.03em; transition: padding .4s var(--ease); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { padding-inline-start: 12px; }
.faq-item summary i { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--ink); position: relative; transition: transform .5s var(--ease), background .3s; }
.faq-item summary i::before, .faq-item summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: var(--ink); transition: background .3s; }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i { transform: rotate(135deg); background: var(--ink); }
.faq-item[open] summary i::before, .faq-item[open] summary i::after { background: var(--bone); }
.faq-item p { font-size: 17px; line-height: 1.7; color: var(--ink-soft); max-width: 620px; padding: 0 0 28px; animation: faq .6s var(--ease); }
@keyframes faq { from { opacity: 0; transform: translateY(-10px); } }

/* ── final call ── */
.final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.final .h-xl { font-size: clamp(44px, 9.4vw, 150px); max-width: 12ch; }
.final .sec-body { margin: 0; }
.final .stores { justify-content: center; }
.home .footer { margin-top: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .stage { min-height: 560px; }
  .hero .phone, .scene .phone { zoom: .82; }
  .scroll-cue { display: none; }
  .faq { grid-template-columns: 1fr; gap: 28px; }
  .scene { height: 420vh; }
  .scene-pin { grid-template-columns: 1fr; gap: 0; align-content: center; padding-top: 70px; }
  .scene-pin .h-xl { font-size: clamp(28px, 7vw, 44px); }
  .scene-pin .sec-body, .scene-pin .eyebrow { display: none; }
  .scene-steps { flex-direction: row; gap: 14px; margin: 12px 0 10px; overflow: hidden; }
  .scene-steps li { border: 0; padding: 0; font-size: 15px; letter-spacing: -.02em; white-space: nowrap; }
  .scene-steps li.on { padding: 0; }
  .scene-steps li small { display: none; }
  .scene .phone { zoom: .68; }
  .scene .stage::before { display: none; }
  .hosts { border-radius: 30px; margin: 0 8px; }
  .badge { width: 110px; height: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .mq-row, .ticker div, .badge, .float, .stage::before, .scroll-cue i { animation: none; }
  .swash path { animation: none; stroke-dashoffset: 0; }
  .scene { height: auto; } .scene-pin { position: static; height: auto; padding: 80px 0; }
}

/* the pinned scene must fit short laptop screens */
.scene-pin { padding-top: 84px; padding-bottom: 20px; }
.scene-pin .h-xl { font-size: clamp(30px, 4.4vw, 66px); }
.scene-pin .sec-body { margin-top: 14px; font-size: clamp(15px, 1.3vw, 18px); }
.scene-steps { margin-top: 20px; }
.scene-steps li { padding: 9px 0; font-size: clamp(19px, 2.2vw, 32px); }
@media (max-height: 860px) { .scene .phone { zoom: .86; } }
@media (max-height: 720px) { .scene .phone { zoom: .74; } .scene-pin .sec-body { display: none; } }
@media (max-width: 900px) { .scene-pin { padding-top: 70px; } .scene .phone { zoom: .8; } .scene-steps li { font-size: 15px; padding: 0; } .scene-pin .h-xl { font-size: clamp(26px, 7vw, 40px); } }
@media (max-width: 900px) and (max-height: 720px) { .scene .phone { zoom: .64; } }
