:root {
  --top: #0d1530;
  --bottom: #4a4470;
  --ink: #fff8ee;
  --ink-soft: rgba(255, 248, 238, .88);
  --glass: rgba(255, 255, 255, .14);
  --sans: "Instrument Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --arabic: "Noto Naskh Arabic", serif;
  --dock: 84px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; scroll-padding-top: 0; }
body { background: #0d1530; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; transition: color .5s; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 99px; background: var(--ink); color: var(--top); font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

body::after { content: ""; position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: .05; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
.day { position: fixed; top: 0; left: 0; z-index: -2; width: 100%; height: 100vh; height: 100lvh; overflow: hidden; background: #0d1530; transform-origin: 50% 100%; }
.day img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero-copy, .moment > div:first-child, .engines h2, .engines-lede, .close h2, .close p, footer, .brand, .brand-link { text-shadow: 0 1px 18px rgba(8, 10, 24, .6), 0 0 2px rgba(8, 10, 24, .3); }
.veil { position: fixed; top: 0; left: 0; z-index: -1; width: 100%; height: 100vh; height: 100lvh; pointer-events: none; background: linear-gradient(90deg, rgba(8, 10, 24, .46), rgba(8, 10, 24, .12) 56%, rgba(8, 10, 24, 0)), linear-gradient(180deg, rgba(8, 10, 24, .24), rgba(8, 10, 24, 0) 22%); }

.top { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 4vw, 48px); transition: color .5s; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.brand { font: 400 32px var(--serif); letter-spacing: .02em; }
.brand-c { position: relative; display: inline-block; }
.brand-c::before { content: ""; position: absolute; left: 8%; right: 8%; top: .02em; height: .06em; background: currentColor; }
.brand-c::after { content: "a"; position: absolute; left: 96%; top: -.35em; font-size: .34em; line-height: 1; letter-spacing: 0; }
.brand-link { font-size: 15px; font-weight: 500; padding: 12px 0; }

.dock { position: fixed; left: 50%; bottom: 16px; z-index: 5; transform: translateX(-50%); display: flex; gap: 2px; padding: 5px; border-radius: 99px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); max-width: calc(100vw - 32px); }
.dock { opacity: 0; pointer-events: none; transition: opacity .4s; }
.dock.show { opacity: 1; pointer-events: auto; }
.dock a { min-height: 44px; padding: 0 16px; display: flex; align-items: center; border-radius: 99px; font-size: 15px; font-weight: 500; transition: background .3s, color .3s; }
.dock a { position: relative; }
.dock a[aria-current="true"] { color: var(--top); }
.dock-pill { position: absolute; left: 0; top: 5px; bottom: 5px; border-radius: 99px; background: var(--ink); transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), width .45s, opacity .3s; }

section { min-height: 100svh; scroll-snap-align: start; }

.hero { display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 44px); padding: 84px clamp(16px, 5vw, 64px) calc(var(--dock) + 32px); max-width: 1240px; margin: 0 auto; }
h1 { font: 400 clamp(60px, min(8.4vw, 15vh), 132px)/.98 var(--serif); letter-spacing: -.025em; }
.now { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; margin-bottom: 18px; border-radius: 99px; background: var(--glass); font-weight: 500; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.now i { width: 9px; height: 9px; border-radius: 50%; background: #ffd9a0; animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 217, 160, .22); } }
.rise .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .03em .14em; margin: -.08em -.03em -.14em; }
.rise .w > span { display: inline-block; transform: translateY(112%); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.in .rise .w > span { transform: none; }
.settled .rise .w > span { transition: none; }
.hero-copy p { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.4; color: var(--ink-soft); margin-top: 20px; max-width: 34em; }
.proof { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 20px; font-size: 16px; color: var(--ink-soft); }
.proof b { font: 400 30px/1 var(--serif); color: var(--ink); margin-right: 4px; }
.picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pick { display: flex; flex-direction: column; gap: 8px; padding: 6px 0; transition: transform .25s; }
.pick:hover { transform: translateY(-4px); }
.pick img, .pick .blank { width: 64px; height: 64px; border-radius: 15px; display: grid; place-items: center; font: italic 30px var(--serif); background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #35574a, #1f3229); color: #e7c98a; box-shadow: inset 0 0 0 1px rgba(231, 201, 138, .35); }
.pick b, .pick small { text-shadow: 0 1px 10px rgba(5, 8, 23, .9); }
.pick small { font-size: 14px; color: var(--ink); }
.pick b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }

.stage { position: sticky; top: 0; z-index: 1; height: 100svh; margin-bottom: -100svh; overflow: hidden; pointer-events: none; }
.beat { min-height: 100svh; }
.moment { position: absolute; inset: 0; z-index: 0; opacity: 0; visibility: hidden; transition: opacity .55s cubic-bezier(.4, 0, .2, 1), visibility .55s; }
.moment.in { opacity: 1; visibility: visible; pointer-events: auto; }
.moment { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(24px, 5vw, 72px); padding: 88px clamp(16px, 5vw, 64px) calc(var(--dock) + 11vh); max-width: 1240px; margin: 0 auto; }
.when { display: flex; align-items: baseline; gap: 12px; font-size: 18px; font-weight: 500; }
.when span { font: 500 24px var(--arabic); }
.when { text-shadow: 0 1px 14px rgba(8, 10, 24, .85), 0 0 3px rgba(8, 10, 24, .5); }
.moment h2 { font: 400 clamp(46px, 6.2vw, 92px)/1 var(--serif); letter-spacing: -.02em; margin: 14px 0 18px; }
.moment p { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; color: var(--ink-soft); max-width: 30em; }
.app { display: flex; align-items: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.app img, .app .blank { width: 60px; height: 60px; border-radius: 14px; }
.app .blank { display: grid; place-items: center; font: italic 32px var(--serif); background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #35574a, #1f3229); color: #e7c98a; box-shadow: inset 0 0 0 1px rgba(231, 201, 138, .35); }
.app b { display: block; font-size: 19px; font-weight: 600; }
.app small { font-size: 15px; color: var(--ink-soft); }
.get { margin-left: 8px; min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; border-radius: 99px; background: var(--ink); color: var(--top); font-weight: 600; transition: transform .25s; }
.get { text-shadow: none; }
.get:hover { transform: translateY(-2px); }
.get, .all, .pick, .engine, .close-apps img { transition-timing-function: cubic-bezier(.2, .8, .2, 1); }
.get.off { background: var(--glass); color: var(--ink); }
.fan { position: relative; justify-self: center; width: min(100%, 460px); height: min(62svh, 560px); perspective: 1400px; transform: translateY(calc(var(--p, 0) * -90px)); }
.fan::before { content: ""; position: absolute; inset: -22%; background: radial-gradient(closest-side, rgba(var(--glow), .55), rgba(var(--glow), 0)); }
.poster { position: absolute; left: 50%; top: 50%; height: 100%; aspect-ratio: 9/19; border-radius: 30px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .34); transition: transform 1s cubic-bezier(.2, .8, .2, 1), opacity .8s; opacity: 0; }
.in .poster { opacity: 1; }
.poster img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.poster.p1 { z-index: 2; transform: translate(-50%, -50%) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(.92); }
.in .poster.p1 { transform: translate(-50%, -50%) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.poster.p0, .poster.p2 { height: 84%; transform: translate(-50%, -50%); }
.in .poster.p0 { transform: translate(-96%, -50%) rotate(-7deg) rotateY(var(--ry, 0deg)); }
.in .poster.p2 { transform: translate(-4%, -50%) rotate(7deg) rotateY(var(--ry, 0deg)); }
.book { position: relative; justify-self: center; width: min(100%, 460px); height: min(52svh, 440px); display: grid; place-items: center; perspective: 1300px; }
.book::before { content: ""; position: absolute; inset: -14%; background: radial-gradient(closest-side, rgba(255, 196, 120, .3), rgba(255, 196, 120, 0)); animation: lamp 6s ease-in-out infinite alternate; }
@keyframes lamp { to { opacity: .68; } }
.spread { position: relative; width: min(88%, 400px); aspect-ratio: 1.46; transform: rotateX(46deg) rotateZ(-7deg); transform-style: preserve-3d; opacity: 0; transition: opacity 1.2s; }
.in .spread { opacity: 1; }
.spread::before { content: ""; position: absolute; inset: -10px -13px; border-radius: 14px; background: #6a3f26; box-shadow: 0 34px 60px rgba(0, 0, 0, .55); transform: translateZ(-3px); }
.leaf, .turn { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; padding: 14% 11%; background: repeating-linear-gradient(rgba(70, 48, 28, .26) 0 2px, transparent 2px 13px) content-box, linear-gradient(90deg, #fbf1dc, #efdfc1); border-radius: 8px 1px 1px 8px; }
.leaf.right, .turn { left: 50%; background: repeating-linear-gradient(rgba(70, 48, 28, .26) 0 2px, transparent 2px 13px) content-box, linear-gradient(270deg, #fbf1dc, #efdfc1); border-radius: 1px 8px 8px 1px; }
.turn { transform-origin: left center; animation: turn 10s ease-in-out infinite; }
.turn.later { animation-delay: 5s; }
@keyframes turn { 0%, 34% { transform: rotateY(0); } 66%, 100% { transform: rotateY(-180deg); } }

.engines { display: flex; flex-direction: column; justify-content: center; padding: 96px clamp(16px, 5vw, 64px) calc(var(--dock) + 24px); max-width: 1240px; margin: 0 auto; }
.engines h2 { max-width: 13em; font: 400 clamp(40px, 5.4vw, 78px)/1.02 var(--serif); letter-spacing: -.02em; }
.eyebrow { margin-bottom: 14px; font: 600 13px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #ffd9a0; text-shadow: 0 1px 12px rgba(8, 10, 24, .8); }
.meter { display: flex; align-items: center; gap: 12px; margin: -12px 0 26px; font-size: 15px; font-weight: 600; text-shadow: 0 1px 12px rgba(8, 10, 24, .8); }
.meter .bar { width: 160px; height: 8px; border-radius: 99px; background: rgba(255, 248, 238, .18); overflow: hidden; }
.meter .bar i { display: block; width: 75%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffd9a0, #f2a58e); transform-origin: left; transform: scaleX(0); transition: transform 1.2s .3s cubic-bezier(.2, .8, .2, 1); }
.engines.in .meter .bar i { transform: none; }
.engines-lede { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.4; color: var(--ink-soft); margin: 12px 0 28px; max-width: 34em; }
.engine-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.engine { position: relative; display: flex; flex-direction: column; min-height: 312px; padding: 22px; border-radius: 22px; background: rgba(10, 12, 30, .72); transition: transform .35s, background .35s; }
.locked .demo, .locked h3 { opacity: .55; }
.engine:hover { transform: translateY(-6px); }
.engines.in .engine { animation: card-up .7s cubic-bezier(.2, .8, .2, 1) both; }
.engines.in .engine:nth-child(2) { animation-delay: .09s; }
.engines.in .engine:nth-child(3) { animation-delay: .18s; }
.engines.in .engine:nth-child(4) { animation-delay: .27s; }
@keyframes card-up { from { opacity: 0; transform: translateY(26px); } }
.engine h3 { font: italic 400 clamp(32px, 3.2vw, 44px)/1.1 var(--serif); }
.engine p { font-size: 17px; line-height: 1.4; color: var(--ink-soft); margin-top: 6px; }
.demo { height: 92px; display: flex; align-items: flex-end; gap: 6px; margin-bottom: auto; padding-bottom: 20px; }
.demo i { display: block; background: #ffd9a0; }
.demo.lesson { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 14px; }
.progress { display: block; height: 6px; border-radius: 3px; background: rgba(255, 248, 238, .16); overflow: hidden; }
.progress u { display: block; height: 100%; border-radius: 3px; background: #ffd9a0; transform-origin: left; animation: fill 6s infinite; }
@keyframes fill { 0% { transform: scaleX(.08); } 33% { transform: scaleX(.38); } 66% { transform: scaleX(.7); } 88%, 100% { transform: scaleX(1); } }
.chips { display: flex; gap: 6px; }
.demo.lesson .chips i { padding: 7px 12px; border-radius: 10px; background: rgba(255, 248, 238, .1); font: 500 15px var(--sans); color: var(--ink); animation: pick 6s infinite; }
.demo.lesson .chips i:nth-child(2) { animation-delay: 2s; }
.demo.lesson .chips i:nth-child(3) { animation-delay: 4s; }
@keyframes pick { 0%, 4% { background: rgba(255, 248, 238, .1); color: var(--ink); } 8%, 28% { background: #ffd9a0; color: #17202e; } 34%, 100% { background: rgba(255, 248, 238, .1); color: var(--ink); } }
.demo.quiet { position: relative; align-items: flex-start; gap: 10px; }
.demo.quiet i { width: 44px; height: 44px; border-radius: 12px; animation: hush 6s infinite; }
.demo.quiet i:nth-child(2) { background: #f2a58e; animation-delay: .12s; }
.demo.quiet i:nth-child(3) { background: #9ac7e8; animation-delay: .24s; }
.demo.quiet i:nth-child(4) { background: #b6d7a8; animation-delay: .36s; }
.demo.quiet em { position: absolute; left: 0; top: 54px; font: 500 14px var(--sans); color: var(--ink-soft); animation: paused 6s infinite; }
@keyframes hush { 0%, 35% { opacity: 1; } 48%, 85% { opacity: .16; transform: scale(.9); } 100% { opacity: 1; } }
@keyframes paused { 0%, 38% { opacity: 0; } 48%, 85% { opacity: 1; } 95%, 100% { opacity: 0; } }
.demo.story { align-items: flex-start; gap: 12px; }
.play { flex: none; position: relative; width: 48px; height: 48px; border-radius: 50%; background: #ffd9a0; }
.play::after { content: ""; position: absolute; left: 18px; top: 14px; border-left: 16px solid #17202e; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.wave { display: flex; align-items: center; gap: 3px; height: 48px; min-width: 0; overflow: hidden; }
.demo.story .wave i { flex: none; width: 3px; height: 44px; border-radius: 2px; animation: wave 1.5s ease-in-out infinite alternate; }
.demo.story .wave i:nth-child(3n) { animation-delay: -.5s; }
.demo.story .wave i:nth-child(3n + 1) { animation-delay: -1s; }
.demo.story .wave i:nth-child(4n) { animation-duration: 1.1s; }
@keyframes wave { from { transform: scaleY(.18); } to { transform: scaleY(1); } }
.demo.library { gap: 3px; align-items: flex-end; height: 72px; margin-bottom: auto; padding-bottom: 0; border-bottom: 3px solid rgba(255, 248, 238, .28); }
.demo.library i { width: 15px; height: 56px; border-radius: 3px 3px 0 0; animation: lift 9s infinite; }
.demo.library i:nth-child(2n) { height: 66px; background: #f2a58e; }
.demo.library i:nth-child(3n) { height: 48px; background: #9ac7e8; }
.demo.library i:nth-child(5n) { background: #b6d7a8; }
.demo.library i:nth-child(3) { animation-delay: 3s; }
.demo.library i:nth-child(7) { animation-delay: 6s; }
@keyframes lift { 0%, 14%, 100% { transform: none; } 6%, 9% { transform: translateY(-12px); } }
.engine .demo.library + h3 { margin-top: 20px; }
.powers { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; margin-top: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.powers .chip { padding: 3px; }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.also:empty { display: none; }
.also small { width: 100%; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); text-shadow: 0 1px 10px rgba(8, 10, 24, .8); }
.also .chip { background: rgba(10, 12, 30, .55); }
.also .chip em { margin-left: 2px; font-style: normal; font-size: 11px; font-weight: 500; opacity: .7; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 3px 11px 3px 3px; border-radius: 99px; background: rgba(255, 248, 238, .1); font-size: 13px; font-weight: 600; transition: background .25s, transform .25s cubic-bezier(.2, .8, .2, 1); }
a.chip:hover { background: rgba(255, 248, 238, .2); transform: translateY(-2px); }
.chip img, .chip .mono { flex: none; width: 28px; height: 28px; border-radius: 8px; }
.chip .mono { display: grid; place-items: center; font: italic 17px var(--serif); background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #35574a, #1f3229); color: #e7c98a; box-shadow: inset 0 0 0 1px rgba(231, 201, 138, .35); }
.chip.prd .mono { background: linear-gradient(160deg, #8a5a2e, #5e3a1c); }
.chip.proposed { background: none; box-shadow: inset 0 0 0 1px rgba(255, 248, 238, .25); color: var(--ink-soft); }
.chip.proposed .mono { background: rgba(255, 248, 238, .14); color: var(--ink); }

.memo-box { width: min(100% - 32px, 680px); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 8px; border: 0; background: none; overflow: auto; color: #22201c; }
.memo-box::backdrop { background: rgba(8, 10, 24, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
html:has(.memo-box[open]) { overflow: hidden; }
.paper { position: relative; padding: clamp(24px, 5vw, 52px); border-radius: 3px; background: #f6efe0; color: #22201c; font-family: "Courier Prime", "Courier New", monospace; box-shadow: 0 30px 70px rgba(0, 0, 0, .42); }
.memo-box[open] .paper { animation: unfold .55s cubic-bezier(.2, .8, .2, 1); }
.memo-box[open]::backdrop { animation: fade-in .4s ease both; }
.memo-box.closing .paper { opacity: 0; transform: translateY(24px) rotate(-1deg) scale(.97); transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .3s; }
.memo-box.closing::backdrop { animation: fade-out .35s ease both; }
@keyframes unfold { from { opacity: 0; transform: translateY(36px) rotate(1.6deg) scale(.96); } }
.memo-close { position: absolute; right: 12px; top: 10px; min-height: 44px; padding: 0 12px; border: 0; background: none; color: inherit; font: inherit; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.memo-link { min-height: 44px; display: inline-flex; align-items: center; margin-top: 6px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-shadow: 0 1px 14px rgba(8, 10, 24, .7); }
.memo-head { font-size: 28px; letter-spacing: .3em; }
.paper dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; margin-top: 18px; font-size: 17px; }
.paper dd { margin: 0; }
.paper hr { border: 0; border-top: 2px solid #22201c; margin: 18px 0 20px; }
.typed p { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; margin-top: 14px; }
.typed .sign { margin-top: 26px; }
.typed .memo-mail { margin-top: 18px; font-size: 15px; opacity: .8; }
.typed .memo-mail a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.typed .ch { visibility: hidden; }
.typed .ch.on { visibility: visible; }
.typed .ch.at { box-shadow: 2px 0 0 #22201c; }
.links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 16px; font-size: 15px; font-weight: 500; }
.moment .links { color: var(--ink); max-width: none; font-size: 15px; }
.links a { min-height: 32px; display: inline-flex; align-items: center; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-shadow: 0 1px 12px rgba(8, 10, 24, .85); }
.brand-link.here { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.engine { scroll-margin-top: 110px; }
.engine:target { box-shadow: 0 0 0 2px #ffd9a0; }
.top-links { display: flex; gap: clamp(14px, 3vw, 28px); }
.notebook { display: flex; flex-direction: column; justify-content: center; padding: 96px clamp(16px, 5vw, 64px) 40px; max-width: 1240px; margin: 0 auto; }
.notebook { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 8px; }
.nb-copy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 12px 48px; }
.nb-copy .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.nb-copy h2 { grid-row: 2; }
.nb-copy .engines-lede { grid-row: 2; grid-column: 2; margin: 0 0 6px; }
.nb-copy .all { grid-row: 3; grid-column: 2; justify-self: start; margin-top: 0; }
.notebook .lib { margin-top: 8px; }

.notebook h2 { font: 400 clamp(38px, 4.6vw, 66px)/1.04 var(--serif); letter-spacing: -.02em; }
.notebook h2 { text-shadow: 0 1px 18px rgba(8, 10, 24, .6); }
.all { align-self: flex-start; margin-top: 28px; min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; border-radius: 99px; background: var(--ink); color: var(--top); font-weight: 600; }
.close { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 96px 16px calc(var(--dock) + 16vh); }
.close h2 { font: 400 clamp(68px, 13vw, 200px)/.95 var(--serif); letter-spacing: -.025em; }
.close p { font-size: clamp(18px, 1.8vw, 22px); color: var(--ink-soft); margin-top: 18px; }
.close-apps { display: flex; gap: 14px; margin: 28px 0 22px; flex-wrap: wrap; justify-content: center; }
.close-apps img, .close-apps .mono { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 16px; transition: transform .25s; }
.close-apps .mono { font: italic 32px var(--serif); background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #35574a, #1f3229); color: #e7c98a; box-shadow: inset 0 0 0 1px rgba(231, 201, 138, .35); }
.close-apps a:hover .mono { transform: translateY(-4px); }
.close-apps a:hover img { transform: translateY(-4px); }
footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; max-width: min(100%, 860px); padding: 4px 26px; border-radius: 28px; background: rgba(12, 14, 30, .42); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: inset 0 0 0 1px rgba(255, 248, 238, .12); font-size: 15px; font-weight: 500; color: var(--ink); text-shadow: none; }
footer a { position: relative; min-height: 44px; display: inline-flex; align-items: center; }
footer a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 11px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
footer a:hover::after { transform: scaleX(1); transform-origin: left; }
footer > span:last-child { opacity: .7; }
.close-apps img, .close-apps .mono { box-shadow: 0 14px 30px rgba(8, 10, 24, .35); }
.close-apps a:hover img, .close-apps a:hover .mono { transform: translateY(-6px) scale(1.06); }
.close .close-apps > *, .close footer, .close .memo-link { opacity: 0; transform: translateY(18px); }
.close.in .close-apps > * { animation: pop-in .7s calc(.35s + var(--k, 0) * 70ms) cubic-bezier(.2, 1.3, .4, 1) forwards; }
.close.in footer, .close.in .memo-link { animation: pop-in .8s .25s cubic-bezier(.2, .8, .2, 1) forwards; }
.close.in footer { animation-delay: .8s; }
@keyframes pop-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .close .close-apps > *, .close footer, .close .memo-link { opacity: 1; transform: none; animation: none !important; } }
footer span { display: inline-flex; align-items: center; }

@media (max-width: 820px) {
  :root { --dock: 74px; }
  html { scroll-snap-type: none; }
  body::after { opacity: .035; }
  .fan::before { display: none; }
  .top, .pick, .now, .engine { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .top { -webkit-mask-image: none; mask-image: none; }
  .dock { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(18, 20, 38, .78); }
  .veil { background: linear-gradient(180deg, rgba(8, 10, 24, .42), rgba(8, 10, 24, .2) 50%, rgba(8, 10, 24, 0) 72%); }
  .brand-link { font-size: 14px; }
  .top-links { gap: 12px; }
  .dock { left: 8px; right: 8px; max-width: none; transform: none; justify-content: space-between; }
  .dock a { padding: 0 9px; font-size: 14px; }
  .picker { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .pick { align-items: center; gap: 6px; padding: 8px 2px; border-radius: 14px; background: none; text-align: center; }
  .pick img, .pick .blank { width: 52px; height: 52px; border-radius: 12px; font-size: 24px; }
  .pick b { font-size: 13px; line-height: 1.15; font-weight: 500; }
  .pick small { display: none; }
  .hero { padding-top: 96px; padding-bottom: 24px; gap: 20px; justify-content: flex-start; }
  .proof { gap: 4px 18px; font-size: 14px; margin-top: 14px; }
  .proof b { font-size: 24px; }
  h1 { font-size: clamp(44px, min(13vw, 7.2vh), 84px); }
  .hero-copy p { margin-top: 12px; }
  .moment { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 16px; padding-top: 84px; padding-bottom: calc(var(--dock) + 16px); overflow: hidden; }
  .moment h2 { font-size: clamp(38px, 10.6vw, 64px); margin: 6px 0 8px; }
  .moment p { font-size: 17px; }
  .when { font-size: 16px; }
  .app { margin-top: 16px; }
  .moment .links { margin-top: 8px; font-size: 14px; gap: 0 14px; }
  .also { flex-wrap: nowrap; overflow-x: auto; margin: 10px -16px 0; padding: 0 16px; scrollbar-width: none; }
  .also::-webkit-scrollbar { display: none; }
  .also small { display: none; }
  .also .chip { flex: none; }
  .app { gap: 10px; flex-wrap: nowrap; }
  .app img, .app .blank { width: 48px; height: 48px; flex: none; }
  .get { margin-left: auto; padding: 0 16px; font-size: 15px; white-space: nowrap; }
  .fan { transform: none; display: flex; gap: 12px; justify-self: stretch; width: auto; min-width: 0; height: 100%; min-height: 0; margin: 0 -16px; padding: 0 16px; overflow-x: auto; perspective: none; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
  .fan::-webkit-scrollbar { display: none; }
  .fan .poster, .in .fan .poster.p0, .in .fan .poster.p1, .in .fan .poster.p2 { position: relative; left: auto; top: auto; flex: none; height: 100%; border-radius: 20px; transform: none; box-shadow: 0 12px 28px rgba(0, 0, 0, .28); scroll-snap-align: start; }
  .book { height: 100%; width: 100%; min-height: 0; }
  .paper dl { font-size: 15px; }
  .engine-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .engine { min-height: 0; padding: 14px; border-radius: 20px; }
  .demo { height: 66px; padding-bottom: 8px; }
  .demo.quiet i { width: 30px; height: 30px; border-radius: 9px; }
  .demo.quiet em { top: 36px; font-size: 13px; }
  .play { width: 36px; height: 36px; }
  .play::after { left: 14px; top: 10px; border-left-width: 12px; border-top-width: 8px; border-bottom-width: 8px; }
  .wave { height: 36px; }
  .demo.story .wave i { height: 34px; }
  .demo.library { height: 56px; padding-bottom: 0; }
  .demo.library i { width: 9px; height: 42px; }
  .demo.library i:nth-child(2n) { height: 50px; }
  .demo.library i:nth-child(3n) { height: 36px; }
  .demo.lesson { gap: 8px; }
  .chips { gap: 4px; }
  .demo.lesson .chips i { padding: 5px 7px; font-size: 13px; }
  .engine h3 { font-size: 25px; }
  .notebook { padding-top: 88px; }
  .nb-copy { grid-template-columns: minmax(0, 1fr); }
  .nb-copy h2, .nb-copy .engines-lede, .nb-copy .all { grid-row: auto; grid-column: auto; }
  .engine p { font-size: 15px; }
  .engines h2 { margin-bottom: 4px; font-size: 38px; }
  .eyebrow { margin-bottom: 10px; font-size: 12px; }
  .meter { margin: -4px 0 18px; font-size: 14px; }
  .meter .bar { width: 120px; }
  .powers { min-height: 26px; margin-top: 8px; }
  .chip { font-size: 12px; padding-right: 9px; }
  .chip img, .chip .mono { width: 24px; height: 24px; }
}
@media (max-width: 820px) and (max-height: 600px) {
  .fan, .book { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .rise .w > span { transform: none; }
  .poster, .spread { opacity: 1; }
}

/* Moving between pages crossfades instead of cutting */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out .26s ease both; }
::view-transition-new(root) { animation: page-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* Live to your clock: the hero tells the visitor's time, and their hour's app glows in the picker */
.now .clock { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.now i { flex: none; }
.pick { position: relative; }
.pick.is-now img, .pick.is-now .blank { box-shadow: 0 0 0 2px #ffd9a0, 0 0 0 7px rgba(255, 217, 160, .22), 0 12px 30px rgba(255, 190, 110, .35); animation: now-glow 2.8s ease-in-out infinite; }
.pick.is-now small::after { content: " · now"; color: #ffd9a0; font-weight: 600; }
@keyframes now-glow { 50% { box-shadow: 0 0 0 2px #ffd9a0, 0 0 0 11px rgba(255, 217, 160, .1), 0 12px 30px rgba(255, 190, 110, .25); } }
.pick .first { position: absolute; left: 44px; top: -6px; padding: 3px 8px; border-radius: 99px; background: #ffd9a0; color: #17202e; font: 600 11px var(--sans); letter-spacing: .02em; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }

/* Try it here: a button on each phone, and the live device it grows into */
.fan-wrap { position: relative; justify-self: center; width: min(100%, 460px); transform: translateY(calc(var(--p, 0) * -90px)); }
.fan-wrap .fan { width: 100%; transform: none; }
.try { position: absolute; left: 50%; bottom: -10px; z-index: 3; display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px 0 16px; border: 0; border-radius: 99px; background: var(--ink); color: #17202e; font: 600 16px var(--sans); white-space: nowrap; cursor: pointer; box-shadow: 0 16px 40px rgba(8, 10, 24, .45); transform: translateX(-50%); opacity: 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .5s .3s; }
.in .try { opacity: 1; }
.try:hover { transform: translateX(-50%) translateY(-3px) scale(1.03); }
.try i { position: relative; width: 26px; height: 26px; border-radius: 50%; background: rgb(var(--glow)); }
.try i::after { content: ""; position: absolute; left: 10px; top: 8px; border-left: 9px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.try i::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(var(--glow), .6); animation: try-ring 2.2s infinite; }
@keyframes try-ring { 70%, 100% { box-shadow: 0 0 0 12px rgba(var(--glow), 0); } }

.tryout { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 16px; border: 0; background: none; overflow: hidden; }
.tryout[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.tryout::backdrop { background: rgba(6, 8, 20, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: try-fade .5s both; }
.tryout.closing::backdrop { animation: try-fade .42s reverse both; }
.tryout.closing .tryout-done { opacity: 0; }
@keyframes try-fade { from { opacity: 0; } }
.device { position: relative; height: min(80svh, 740px); aspect-ratio: 9 / 19.3; max-width: calc(100vw - 32px); padding: 10px; border-radius: 48px; background: #0b0b0f; box-shadow: 0 0 0 2px #30303a, inset 0 0 0 1px #000, 0 50px 120px rgba(0, 0, 0, .6); }
.notch { position: absolute; left: 50%; top: 20px; z-index: 3; width: 92px; height: 27px; margin-left: -46px; border-radius: 99px; background: #0b0b0f; }
.screen { position: relative; height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 58px 18px 22px; border-radius: 38px; overflow: hidden auto; scrollbar-width: none; background: #fbf8f1; color: #1d1b18; font: 16px/1.4 var(--sans); }
.screen > * { animation: m-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.screen > :nth-child(2) { animation-delay: .05s; } .screen > :nth-child(3) { animation-delay: .1s; } .screen > :nth-child(4) { animation-delay: .15s; } .screen > :nth-child(5) { animation-delay: .2s; }
@keyframes m-in { from { opacity: 0; transform: translateY(14px); } }
.tryout-done { min-height: 46px; padding: 0 26px; border: 0; border-radius: 99px; background: var(--ink); color: #17202e; font: 600 16px var(--sans); cursor: pointer; transition: opacity .3s; animation: try-fade .5s .3s both; }

.m-top { display: flex; justify-content: space-between; font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.m-title { font: 400 30px/1.05 var(--serif); }
.m-q { font-size: 18px; }
.m-q.big { margin-top: 30%; font: 400 30px/1.1 var(--serif); }
.m-options { display: grid; gap: 10px; margin-top: auto; }
.m-options button { min-height: 54px; border: 2px solid rgba(29, 27, 24, .14); border-radius: 16px; background: #fff; color: inherit; font: 600 17px var(--sans); cursor: pointer; transition: transform .2s, background .25s, border-color .25s, color .25s; box-shadow: 0 3px 0 rgba(29, 27, 24, .1); }
.m-options button:hover { transform: translateY(-2px); }
.m-options button.yes { background: #2f8a55; border-color: #2f8a55; color: #fff; animation: m-pop .4s; }
.m-options button.no { border-color: #d0573c; color: #b2432b; animation: m-shake .4s; }
@keyframes m-pop { 40% { transform: scale(1.05); } }
@keyframes m-shake { 25% { transform: translateX(-6px); } 60% { transform: translateX(5px); } }
.m-done { display: grid; gap: 12px; margin: auto 0; text-align: center; justify-items: center; }
.m-done h3 { font: 400 34px/1.05 var(--serif); }
.m-done p { color: rgba(29, 27, 24, .7); }
.m-get, .m-soon { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 6px; padding: 0 18px; border-radius: 99px; background: #1d1b18; color: #fbf8f1; font: 600 15px var(--sans); text-align: center; }
.m-soon { background: none; color: inherit; border: 1.5px dashed currentColor; opacity: .75; }

/* Lisan */
.s-fajr { background: linear-gradient(180deg, #fff4e6, #fbf8f1 40%); }
.m-xp { color: #c4602f; opacity: 1; }
.m-bar { height: 10px; border-radius: 99px; background: rgba(196, 96, 47, .15); overflow: hidden; }
.m-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #e8935a, #c4602f); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.m-ayah { margin: 22px 0 6px; font: 500 34px/1.9 "Noto Naskh Arabic", serif; text-align: center; }
.m-ayah.small { margin: 0; font-size: 22px; }
.m-ayah span { padding: 0 3px; border-radius: 8px; transition: background .3s; }
.m-ayah .hit { background: rgba(232, 147, 90, .28); box-shadow: 0 0 0 2px rgba(196, 96, 47, .35); }
.m-q b { font: 500 22px "Noto Naskh Arabic", serif; color: #c4602f; }
.m-flame { width: 64px; height: 64px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #ffd27a, #f08a3c 55%, #c4602f); box-shadow: 0 10px 30px rgba(240, 138, 60, .45); animation: m-flicker 1.6s ease-in-out infinite; }
@keyframes m-flicker { 50% { transform: scale(1.06) rotate(-3deg); } }
.m-streak { font-weight: 600; color: #c4602f !important; }

/* Darb */
.s-dhuhr { background: #f6faf7; }
.s-dhuhr .m-top { color: #044a27; }
.m-card { position: relative; display: grid; gap: 8px; margin-top: 8px; padding: 26px 22px; min-height: 52%; align-content: end; border-radius: 26px; background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 50%), linear-gradient(160deg, #0a6a3a, #044a27); color: #fff; cursor: pointer; box-shadow: 0 14px 0 -6px #9bc7ac, 0 28px 0 -12px #cfe4d6, 0 20px 40px rgba(4, 74, 39, .3); transition: transform .32s cubic-bezier(.4, 0, .2, 1), opacity .32s; }
.m-card small { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.m-card b { font: 400 40px/1 var(--serif); }
.m-card p { font-size: 16px; line-height: 1.45; opacity: .9; }
.m-card.away { transform: translateX(-120%) rotate(-12deg); opacity: 0; }
.m-card:focus-visible { outline: 3px solid #e7c98a; outline-offset: 3px; }
.m-tap { margin-top: 18px; text-align: center; font-size: 14px; color: rgba(29, 27, 24, .55); }
.m-dots { display: flex; justify-content: center; gap: 6px; }
.m-dots i, .m-path i { width: 8px; height: 8px; border-radius: 50%; background: rgba(4, 74, 39, .18); transition: background .3s, transform .3s; }
.m-dots i.on { background: #044a27; }
.m-path { display: flex; flex-direction: column-reverse; align-items: center; gap: 14px; margin-bottom: 10px; }
.m-path i { width: 46px; height: 46px; background: #e3eee7; box-shadow: inset 0 -4px 0 rgba(4, 74, 39, .12); }
.m-path i:nth-child(2n) { transform: translateX(26px); } .m-path i:nth-child(4n) { transform: translateX(-26px); }
.m-path i.on { background: #044a27; box-shadow: 0 0 0 6px rgba(4, 74, 39, .15); animation: m-pop .6s .2s; }

/* Unplug */
.s-asr { background: linear-gradient(180deg, #123b37, #0c2624); color: #f1f6f4; }
.s-asr .m-top { opacity: .85; }
.m-time { font-variant-numeric: tabular-nums; }
.m-banner { display: grid; gap: 6px; justify-items: start; padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); }
.m-banner b { font: 400 28px/1.05 var(--serif); }
.m-banner span { font-size: 15px; opacity: .8; }
.m-go { margin-top: 8px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 99px; background: #f1f6f4; color: #0c2624; font: 600 15px var(--sans); cursor: pointer; }
.s-asr .m-get { background: #f1f6f4; color: #0c2624; }
.m-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 10px; margin-top: 8px; }
.m-app { display: grid; justify-items: center; gap: 6px; font-size: 11px; opacity: .9; transition: opacity .5s, filter .5s, transform .5s; }
.m-app i { position: relative; width: 100%; aspect-ratio: 1; border-radius: 15px; background: linear-gradient(160deg, color-mix(in srgb, var(--c), #fff 25%), var(--c)); box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
.m-app i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 11px; margin: -2px 0 0 -7px; border-radius: 3px; background: #fff; opacity: 0; transition: opacity .4s; box-shadow: 0 -7px 0 -2px transparent; }
.m-app i::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 9px; margin: -10px 0 0 -6px; border: 2px solid #fff; border-bottom: 0; border-radius: 6px 6px 0 0; opacity: 0; transition: opacity .4s; }
.paused .m-app:not(.keep) { opacity: .45; filter: grayscale(1); transform: scale(.92); }
.paused .m-app:not(.keep) i::after, .paused .m-app:not(.keep) i::before { opacity: 1; }
.m-app:nth-child(2) { transition-delay: .06s; } .m-app:nth-child(3) { transition-delay: .12s; } .m-app:nth-child(4) { transition-delay: .18s; } .m-app:nth-child(5) { transition-delay: .24s; } .m-app:nth-child(6) { transition-delay: .3s; } .m-app:nth-child(7) { transition-delay: .36s; }
.paused .m-app.keep i { box-shadow: 0 0 0 3px #e7c98a, 0 6px 14px rgba(0, 0, 0, .25); }
.back .m-app { animation: m-pop .5s both; }
.m-ring { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #e7c98a; animation: m-spin 1.4s linear infinite; }
@keyframes m-spin { to { transform: rotate(1turn); } }

/* Bedtime */
.s-maghrib { background: linear-gradient(180deg, #1d2457, #0d1233 70%); color: #eef0ff; text-align: center; align-items: center; }
.s-maghrib .m-top { width: 100%; }
.m-night { position: absolute; inset: 0; pointer-events: none; animation: none !important; }
.m-night i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .6; animation: m-twinkle 3s ease-in-out infinite; }
.m-night i:nth-child(1) { left: 12%; top: 14%; } .m-night i:nth-child(2) { left: 78%; top: 10%; animation-delay: .4s; } .m-night i:nth-child(3) { left: 30%; top: 24%; animation-delay: 1s; } .m-night i:nth-child(4) { left: 88%; top: 30%; animation-delay: 1.6s; } .m-night i:nth-child(5) { left: 8%; top: 44%; animation-delay: .7s; } .m-night i:nth-child(6) { left: 62%; top: 20%; animation-delay: 2.2s; } .m-night i:nth-child(7) { left: 92%; top: 56%; animation-delay: 1.2s; } .m-night i:nth-child(8) { left: 20%; top: 66%; animation-delay: 2.6s; } .m-night i:nth-child(9) { left: 48%; top: 8%; animation-delay: .2s; } .m-night i:nth-child(10) { left: 70%; top: 72%; animation-delay: 1.9s; } .m-night i:nth-child(11) { left: 4%; top: 84%; animation-delay: 1.4s; } .m-night i:nth-child(12) { left: 84%; top: 86%; animation-delay: .9s; } .m-night i:nth-child(13) { left: 40%; top: 90%; animation-delay: 2.4s; } .m-night i:nth-child(14) { left: 56%; top: 52%; animation-delay: .5s; }
@keyframes m-twinkle { 50% { opacity: .15; transform: scale(.6); } }
.m-cover { width: 62%; aspect-ratio: 1; margin-top: 10px; border-radius: 28px; object-fit: cover; box-shadow: 0 20px 50px rgba(0, 0, 0, .45), 0 0 60px rgba(120, 140, 255, .25); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.playing .m-cover { transform: scale(1.04); animation: m-breathe 5s ease-in-out infinite; }
@keyframes m-breathe { 50% { transform: scale(1.07); } }
.m-line { min-height: 4.4em; max-width: 26ch; font: 400 21px/1.35 var(--serif); opacity: .85; }
.m-line.show { animation: m-in .7s cubic-bezier(.2, .8, .2, 1) both; }
.m-wave { display: flex; align-items: center; gap: 3px; height: 34px; }
.m-wave i { width: 3px; height: 100%; border-radius: 99px; background: #aab4ff; opacity: .5; transform: scaleY(.25); }
.playing .m-wave i { animation: wave .9s ease-in-out infinite alternate; opacity: .9; }
.m-wave i:nth-child(3n) { animation-delay: .2s; } .m-wave i:nth-child(3n + 1) { animation-delay: .45s; } .m-wave i:nth-child(4n) { animation-delay: .1s; }
.m-play { position: relative; flex: none; width: 66px; height: 66px; border: 0; border-radius: 50%; background: #eef0ff; cursor: pointer; box-shadow: 0 0 0 8px rgba(238, 240, 255, .12); }
.m-play::after { content: ""; position: absolute; left: 26px; top: 21px; border-left: 18px solid #1d2457; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.playing .m-play::after { left: 23px; top: 22px; width: 6px; height: 22px; border: 0; background: #1d2457; box-shadow: 13px 0 0 #1d2457; }
.s-maghrib .m-get { background: #eef0ff; color: #1d2457; }

@media (max-width: 820px) {
  .fan-wrap { display: flex; flex-direction: column; justify-self: stretch; align-self: stretch; width: auto; min-width: 0; min-height: 0; transform: none; }
  .fan-wrap .fan { flex: 1; min-height: 0; }
  .try { bottom: 12px; min-height: 46px; font-size: 15px; }
  .now .where { display: none; }
  .pick .first { left: 50%; top: -14px; transform: translateX(-50%); font-size: 10px; padding: 2px 7px; }
  .device { height: min(76svh, 680px); border-radius: 42px; }
  .screen { border-radius: 33px; padding: 52px 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .try i::before, .pick.is-now img, .pick.is-now .blank, .m-flame, .m-ring, .playing .m-cover, .m-night i, .playing .m-wave i { animation: none; }
  .screen > *, .m-line.show { animation: none; }
}

/* Before the settings arrive, the hero holds back what may change */
.picker, .proof, .launch { transition: opacity .5s; }
.loading .picker, .loading .proof { opacity: 0; }
[hidden] { display: none !important; }

/* Coming soon: the app that is next, and its waitlist */
.launch { display: grid; gap: 16px; margin-top: 26px; max-width: 520px; animation: card-up .7s .2s cubic-bezier(.2, .8, .2, 1) both; }
.launch-app { display: flex; align-items: center; gap: 14px; }
.launch-app img, .launch-app .blank { width: 64px; height: 64px; flex: none; border-radius: 15px; box-shadow: 0 10px 26px rgba(8, 10, 24, .35); }
.launch-app b { display: flex; align-items: center; gap: 10px; font: 600 22px var(--sans); letter-spacing: -.01em; }
.launch-app b em { padding: 3px 10px; border-radius: 99px; background: #ffd9a0; color: #17202e; font: 600 12px var(--sans); font-style: normal; letter-spacing: .02em; }
.launch-app small { display: block; margin-top: 2px; font-size: 16px; color: var(--ink-soft); }
.waitlist { display: grid; gap: 8px; width: 100%; max-width: 520px; }
.wl-row { display: flex; gap: 6px; padding: 6px; border-radius: 99px; background: rgba(255, 248, 238, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 248, 238, .22); transition: box-shadow .3s; }
.wl-row:focus-within { box-shadow: inset 0 0 0 1.5px rgba(255, 217, 160, .8), 0 0 0 5px rgba(255, 217, 160, .14); }
.wl-row input { flex: 1; min-width: 0; min-height: 46px; padding: 0 16px; border: 0; background: none; color: var(--ink); font: 500 17px var(--sans); outline: none; }
.wl-row input::placeholder { color: rgba(255, 248, 238, .6); }
.wl-row button { flex: none; min-height: 46px; padding: 0 20px; border: 0; border-radius: 99px; background: var(--ink); color: #17202e; font: 600 16px var(--sans); cursor: pointer; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.wl-row button:hover { transform: translateY(-1px) scale(1.02); }
.wl-row button:disabled { opacity: .6; cursor: progress; }
.wl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; }
.wl-note { padding-left: 18px; font-size: 14px; color: var(--ink-soft); text-shadow: 0 1px 10px rgba(8, 10, 24, .8); }
.waitlist.wl-shake .wl-row { animation: m-shake .4s; }
.wl-done { display: flex; align-items: center; gap: 12px; max-width: 520px; padding: 14px 18px; border-radius: 22px; background: rgba(255, 248, 238, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 16px; animation: m-pop .5s; }
.wl-done i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #ffd9a0; }
.wl-done i::after { content: ""; position: absolute; left: 10px; top: 6px; width: 6px; height: 12px; border: solid #17202e; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.scene-waitlist { margin-top: 16px; }
/* Inside the Darb demo the form sits on white */
.screen .waitlist { margin-top: 8px; }
.screen .wl-row { background: #fff; box-shadow: inset 0 0 0 1.5px rgba(4, 74, 39, .2); backdrop-filter: none; flex-direction: column; border-radius: 18px; }
.screen .wl-row input { color: #1d1b18; text-align: center; }
.screen .wl-row input::placeholder { color: rgba(29, 27, 24, .45); }
.screen .wl-row button { background: #044a27; color: #fff; }
.screen .wl-note { padding: 0; color: rgba(29, 27, 24, .6); text-shadow: none; font-size: 12px; }
.screen .wl-done { background: rgba(4, 74, 39, .08); color: #044a27; font-size: 14px; text-align: left; }
@media (max-width: 820px) {
  .launch { margin-top: 18px; gap: 12px; }
  .launch-app img, .launch-app .blank { width: 52px; height: 52px; }
  .launch-app b { font-size: 19px; }
  .wl-row { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(18, 20, 38, .55); }
  .wl-row input { font-size: 16px; padding: 0 12px; }
  .wl-row button { padding: 0 16px; font-size: 15px; }
  .scene-waitlist { margin-top: 10px; }
}

/* Watch the intro and See the demo, under the waitlist */
.launch-more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.film-btn, .demo-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px 0 8px; border: 0; border-radius: 99px; background: rgba(255, 248, 238, .12); box-shadow: inset 0 0 0 1px rgba(255, 248, 238, .28); color: var(--ink); font: 600 15px var(--sans); cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .25s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.demo-btn { padding: 0 18px; }
.film-btn:hover, .demo-btn:hover { background: rgba(255, 248, 238, .22); transform: translateY(-2px); }
.film-btn small { font-weight: 500; opacity: .65; }
.film-btn i { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); }
.film-btn i::after { content: ""; position: absolute; left: 12px; top: 9px; border-left: 11px solid #17202e; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.film-btn i::before { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: try-ring 2.4s infinite; box-shadow: 0 0 0 0 rgba(255, 248, 238, .5); }
.scene-waitlist .launch-more { margin-top: 10px; }

/* The film, played over the page */
.film { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 20px; border: 0; background: none; overflow: hidden; }
.film[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.film::backdrop { background: rgba(4, 6, 16, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: try-fade .45s both; }
.film.closing::backdrop { animation: try-fade .32s reverse both; }
.film-frame { width: min(100%, calc((100svh - 120px) * 16 / 9), 1400px); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #02311a; box-shadow: 0 50px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); animation: film-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.film.is-tall .film-frame { width: min(100%, calc((100svh - 110px) * 9 / 16)); aspect-ratio: 9 / 16; }
.film.closing .film-frame { animation: film-in .32s reverse both cubic-bezier(.4, 0, .2, 1); }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; background: #02311a; }
.film-done { min-height: 44px; padding: 0 24px; border: 0; border-radius: 99px; background: var(--ink); color: #17202e; font: 600 15px var(--sans); cursor: pointer; animation: try-fade .5s .25s both; }
.film.closing .film-done { opacity: 0; }
@keyframes film-in { from { opacity: 0; transform: translateY(30px) scale(.94); } }
@media (max-width: 820px) {
  .film-btn, .demo-btn { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(18, 20, 38, .5); font-size: 14px; min-height: 44px; }
  .film-btn small { display: none; }
  .launch-more { flex-wrap: nowrap; gap: 8px; }
  .film { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .film-frame, .film-btn i::before { animation: none; } }

/* The hero's one quiet secondary action: the film, as a text link under the waitlist */
.film-link { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink); font: 600 16px var(--sans); cursor: pointer; text-shadow: 0 1px 10px rgba(8, 10, 24, .8); }
.film-link i { position: relative; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 248, 238, .7); transition: background .25s, box-shadow .25s; }
.film-link i::after { content: ""; position: absolute; left: 12px; top: 9px; border-left: 9px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.film-link small { font-weight: 500; opacity: .65; }
.film-link:hover i { background: rgba(255, 248, 238, .16); box-shadow: inset 0 0 0 1.5px var(--ink); }
.film-link:hover { text-decoration: underline; text-underline-offset: 5px; }

/* The Darb demo: a real lesson */
.s-dhuhr { background: #f6faf7; gap: 12px; }
.d-top { display: flex; justify-content: space-between; align-items: center; }
.d-lesson { font: 700 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #044a27; }
.d-xp { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px 5px 8px; border-radius: 99px; background: #fff3dc; color: #a8681a; font: 700 13px var(--sans); }
.d-xp svg { color: #e08a1e; }
.d-xp.pop { animation: m-pop .45s; }
.d-bar { height: 10px; border-radius: 99px; background: #e4ede7; overflow: hidden; }
.d-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1aa35a, #044a27); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.d-topic { display: flex; align-items: center; gap: 10px; margin-top: 10px; font: 600 13px var(--sans); color: #5d7466; }
.d-tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(155deg, #2aa964, #127a45 55%, #0b5a31); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 14px rgba(18, 122, 69, .3); }
.d-q { font: 700 26px/1.12 var(--sans); letter-spacing: -.03em; color: #101a14; }
.d-options { display: grid; gap: 10px; }
.d-options button { display: flex; justify-content: space-between; align-items: center; min-height: 54px; padding: 0 16px 0 18px; border: 2px solid #e3ebe6; border-radius: 16px; background: #fff; color: #101a14; font: 600 17px var(--sans); text-align: left; cursor: pointer; box-shadow: 0 3px 0 #e3ebe6; transition: transform .2s, background .25s, border-color .25s, color .25s; }
.d-options button:hover:not(:disabled) { transform: translateY(-2px); border-color: #bfe0cb; }
.d-options button.yes { background: linear-gradient(180deg, #19a159, #127a45); border-color: #14894b; color: #fff; box-shadow: 0 10px 24px rgba(20, 137, 75, .35); animation: m-pop .4s; }
.d-options button.no { border-color: #d0573c; color: #b2432b; animation: m-shake .4s; }
.d-options button:disabled:not(.yes) { opacity: .55; cursor: default; }
.d-why { margin-top: auto; padding: 16px; border-radius: 20px; background: #e9f5ee; color: #0b3a22; animation: m-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.d-why b { display: flex; align-items: center; gap: 6px; font: 700 15px var(--sans); color: #14894b; }
.d-why p { margin-top: 6px; font-size: 14.5px; line-height: 1.45; }
.d-next { width: 100%; min-height: 48px; margin-top: 12px; border: 0; border-radius: 14px; background: #044a27; color: #fff; font: 600 16px var(--sans); cursor: pointer; }
.d-done { display: grid; justify-items: center; gap: 10px; margin: auto 0; text-align: center; }
.d-flame { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #fff3dc, #ffe1ad); color: #e08a1e; box-shadow: 0 10px 30px rgba(224, 138, 30, .3); animation: m-pop .6s; }
.d-done h3 { font: 700 28px var(--sans); letter-spacing: -.03em; color: #101a14; }
.d-sub { font-size: 14px; color: #5d7466; }
.d-path { display: flex; gap: 6px; margin: 8px 0 4px; }
.d-node { display: grid; justify-items: center; gap: 6px; width: 52px; font: 600 11px var(--sans); color: #8aa093; animation: m-in .45s calc(var(--k) * 80ms + .2s) both; }
.d-node i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #eef4f0; color: #a7bbad; box-shadow: inset 0 -4px 0 #dbe8df; }
.d-node.on { color: #044a27; }
.d-node.on i { background: linear-gradient(160deg, #1aa35a, #044a27); color: #fff; box-shadow: 0 5px 0 #02311a; }
.d-node.next i { background: #fff; color: #127a45; box-shadow: 0 0 0 5px rgba(20, 137, 75, .16); }

/* Wudu: hold to wash. A calm, faceless figure; the part being washed glows; water falls while you hold */
.w-stage { position: relative; flex: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; height: 250px; margin: 2px 0; border-radius: 24px; background: radial-gradient(circle at 45% 40%, #ffffff, #eaf4ee 70%); overflow: hidden; }
.w-fig { width: 100%; height: 244px; }
.w-body { fill: #e9f3ed; stroke: #a9c7b4; stroke-width: 2.2; }
.w-limb { fill: none; stroke-width: 15; stroke-linecap: round; }
.w-body .w-limb { stroke: #d6e8dd; }
.w-part { fill: transparent; stroke: transparent; transition: fill .4s, stroke .4s, filter .4s; }
.w-part .w-limb { stroke: transparent; }
.w-part.now { fill: rgba(79, 179, 217, .38); filter: drop-shadow(0 0 8px rgba(79, 179, 217, .8)); animation: w-glow 1.6s ease-in-out infinite; }
.w-part.now .w-limb { stroke: rgba(79, 179, 217, .5); }
.w-part.done { fill: rgba(26, 163, 90, .22); }
.w-part.done .w-limb { stroke: rgba(26, 163, 90, .28); }
@keyframes w-glow { 50% { filter: drop-shadow(0 0 2px rgba(79, 179, 217, .4)); } }
.w-stage.complete .w-fig { animation: w-joy .7s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes w-joy { 40% { transform: translateY(-6px) scale(1.03); } }
.w-rain { position: absolute; left: 0; top: 0; width: calc(100% - 44px); height: 100%; pointer-events: none; }
.w-rain i { position: absolute; top: -10px; width: 6px; height: 10px; margin-left: -3px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: linear-gradient(#9fe0f7, #3fa7d6); opacity: .9; animation: w-fall .6s cubic-bezier(.5, 0, 1, 1) forwards; }
@keyframes w-fall { to { top: var(--to); opacity: .2; } }
.w-rain b { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid #4fb3d9; animation: w-ripple .7s ease-out forwards; }
@keyframes w-ripple { to { transform: scale(4); opacity: 0; } }
.w-drops { display: grid; gap: 7px; margin: 0 14px 0 0; padding: 0; list-style: none; }
.w-drops li { width: 14px; height: 18px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #dfe9e3; transition: background .4s, transform .4s; }
.w-drops li.on { background: linear-gradient(#7fd3f2, #2f9fd0); transform: scale(1.1); }
.w-step { min-height: 44px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.w-step b { font: 700 18px var(--sans); letter-spacing: -.02em; color: #101a14; }
.w-step.next b { animation: m-in .4s cubic-bezier(.2, .8, .2, 1) both; }
.w-count { display: flex; gap: 6px; }
.w-count i { width: 9px; height: 9px; border-radius: 50%; background: #dbe7e0; transition: background .25s, transform .25s; }
.w-count i.on { background: #2f9fd0; transform: scale(1.25); }
.w-hold { position: relative; align-self: center; flex: none; width: 84px; height: 84px; margin-top: 2px; border: 0; border-radius: 50%; background: linear-gradient(160deg, #6cc8ee, #2f9fd0); color: #fff; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 12px 26px rgba(47, 159, 208, .4), inset 0 1px 0 rgba(255, 255, 255, .4); transition: transform .2s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.w-hold > svg { position: absolute; inset: -6px; width: 96px; height: 96px; transform: rotate(-90deg); }
.w-hold > svg circle { fill: none; stroke: rgba(47, 159, 208, .18); stroke-width: 5; }
.w-hold .w-ring { stroke: #1d7fb0; stroke-dasharray: 1 1; stroke-dashoffset: 1; stroke-linecap: round; }
.w-hold span { position: relative; display: grid; place-items: center; height: 100%; }
.w-hold.on { transform: scale(.93); }
.w-hold.gone { opacity: 0; transform: scale(.6); pointer-events: none; }
.w-hold:focus-visible { outline: 3px solid #1d7fb0; outline-offset: 6px; }
.w-help { min-height: 1.2em; text-align: center; font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #6b8577; }

/* Prayer: the figure moves into each position you choose */
.p-stage { position: relative; flex: none; display: grid; grid-template-columns: 1fr auto; align-items: center; height: 230px; border-radius: 24px; background: radial-gradient(circle at 45% 45%, #ffffff, #eef5f0 70%); }
.p-fig { width: 100%; height: 210px; }
.p-mat { fill: #cfe3d6; }
.p-line { fill: none; stroke: #127a45; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.p-head { fill: #127a45; }
.p-steps { display: grid; gap: 5px; margin: 0 12px 0 0; padding: 0; list-style: none; font: 600 11px var(--sans); color: #9fb3a6; }
.p-steps li { padding: 3px 8px; border-radius: 99px; }
.p-steps li.on { color: #127a45; }
.p-steps li.now { background: #127a45; color: #fff; }
.p-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-q { grid-column: 1 / -1; text-align: center; font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #6b8577; }
.p-choices button { min-height: 56px; border: 2px solid #e3ebe6; border-radius: 18px; background: #fff; color: #101a14; font: 700 17px var(--sans); cursor: pointer; box-shadow: 0 3px 0 #e3ebe6; transition: transform .2s, background .25s, color .25s, border-color .25s; }
.p-choices button:hover:not(:disabled) { transform: translateY(-2px); border-color: #bfe0cb; }
.p-choices button.yes { background: linear-gradient(180deg, #19a159, #127a45); border-color: #14894b; color: #fff; }
.p-choices button.no { border-color: #d0573c; color: #b2432b; animation: m-shake .4s; }
@media (prefers-reduced-motion: reduce) { .w-part.now, .w-stage.complete .w-fig { animation: none; } }

/* Toolkit demos for the standard qualities every app has */
.engine .every { margin-top: 14px; font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #ffd9a0; }
.demo.touch { position: relative; align-items: center; gap: 16px; }
.demo.touch .tap { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(160deg, #6cc8ee, #2f9fd0); box-shadow: 0 8px 20px rgba(47, 159, 208, .35); animation: press 2.4s ease-in-out infinite; }
.demo.touch .tap i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #9fe0f7; animation: ripple-out 2.4s ease-out infinite; }
.demo.touch .tap i + i { animation-delay: .5s; }
.demo.touch em { font: 500 14px var(--sans); font-style: normal; color: var(--ink-soft); }
@keyframes press { 0%, 100% { transform: scale(1); } 15%, 55% { transform: scale(.88); } }
@keyframes ripple-out { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2.1); } }
.demo.tune { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 9px; }
.demo.tune .slider { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 10px; }
.demo.tune small { font: 500 12px var(--sans); color: var(--ink-soft); }
.demo.tune b { position: relative; height: 4px; border-radius: 99px; background: rgba(255, 248, 238, .18); }
.demo.tune b i { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #ffd9a0; box-shadow: 0 0 0 4px rgba(255, 217, 160, .2); animation: slide 5s ease-in-out infinite; }
.demo.tune .slider:nth-child(2) b i { animation-delay: -1.7s; }
.demo.tune .slider:nth-child(3) b i { animation-delay: -3.3s; }
@keyframes slide { 0%, 100% { left: 25%; } 50% { left: 80%; } }
.demo.clock { align-items: center; gap: 16px; }
.demo.clock .dial { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 248, 238, .4); }
.demo.clock .dial::before { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #ffd9a0; }
.demo.clock .dial i { position: absolute; left: 50%; bottom: 50%; width: 2px; height: 20px; margin-left: -1px; border-radius: 2px; background: #ffd9a0; transform-origin: bottom center; animation: sweep 6s linear infinite; }
.demo.clock .when { display: grid; gap: 4px; }
.demo.clock .when small { font: 600 13px var(--sans); color: var(--ink-soft); animation: now-on 6s infinite; }
.demo.clock .when small:nth-child(2) { animation-delay: 2s; }
.demo.clock .when small:nth-child(3) { animation-delay: 4s; }
@keyframes sweep { to { transform: rotate(1turn); } }
@keyframes now-on { 0%, 30% { color: #ffd9a0; } 34%, 100% { color: var(--ink-soft); } }
@media (prefers-reduced-motion: reduce) { .demo.touch .tap, .demo.touch .tap i, .demo.tune b i, .demo.clock .dial i, .demo.clock .when small { animation: none; } }

/* Questions: short, quotable answers, also published as FAQ structured data */
.faq { display: flex; flex-direction: column; justify-content: center; padding: 96px clamp(16px, 5vw, 64px) 60px; max-width: 980px; margin: 0 auto; }
.faq h2 { font: 400 clamp(40px, 5vw, 70px)/1.02 var(--serif); letter-spacing: -.02em; text-shadow: 0 1px 18px rgba(8, 10, 24, .6); margin-bottom: 26px; }
.faq-list { display: grid; gap: 10px; }
.faq details { border-radius: 20px; background: rgba(10, 12, 30, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 248, 238, .1); transition: background .3s; }
.faq details[open] { background: rgba(10, 12, 30, .78); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 0 24px; font: 600 clamp(17px, 1.6vw, 20px) var(--sans); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 300 28px var(--sans); color: #ffd9a0; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; max-width: 46em; font-size: 17px; line-height: 1.55; color: var(--ink-soft); animation: card-up .4s cubic-bezier(.2, .8, .2, 1) both; }
.faq details a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 820px) { .faq details, .faq details[open] { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(12, 14, 32, .82); } .faq summary { padding: 0 18px; } .faq details p { padding: 0 18px 18px; } }

/* Toolkit: four qualities, each shown with a real piece of Darb on a white card */
.tk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tk { display: flex; flex-direction: column; gap: 18px; padding: 14px 14px 22px; border-radius: 26px; background: rgba(10, 12, 30, .62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 248, 238, .1); transition: transform .4s cubic-bezier(.2, .8, .2, 1), background .3s; }
.engines.in .tk { animation: card-up .7s calc(var(--k) * 90ms + .1s) cubic-bezier(.2, .8, .2, 1) both; }
.tk:hover { transform: translateY(-6px); background: rgba(10, 12, 30, .74); }
.tk-ui { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 12px; height: 150px; padding: 18px; border-radius: 18px; background: #fbfdfb; color: #101a14; font-family: var(--sans); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); overflow: hidden; }
.tk-text { padding: 0 8px; }
.tk h3 { font: 400 clamp(28px, 2.4vw, 34px)/1 var(--serif); }
.tk p { margin-top: 8px; font-size: 16px; line-height: 1.45; color: var(--ink-soft); }
.tk svg { flex: none; }
.tk-row { display: flex; gap: 8px; }
.tk-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 99px; font: 700 13px var(--sans); }
.tk-pill.xp { background: #fff3dc; color: #a8681a; }
.tk-pill.fire { background: #ffe6dc; color: #c4532b; }
.tk-pill svg { color: currentColor; }
.tk-bar { height: 10px; border-radius: 99px; background: #e4ede7; overflow: hidden; }
.tk-bar i { display: block; width: 60%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1aa35a, #044a27); transform-origin: left; animation: tk-fill 4s cubic-bezier(.2, .8, .2, 1) infinite; }
@keyframes tk-fill { 0% { transform: scaleX(.4); } 40%, 100% { transform: scaleX(1); } }
.tk-week { display: flex; gap: 5px; }
.tk-week span { flex: 1; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #f1f5f2; color: #9fb3a6; font: 700 11px var(--sans); }
.tk-week span.on { background: #fff3dc; color: #e08a1e; }
.tk-hold { display: flex; align-items: center; gap: 14px; }
.tk-ring { position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(#1d7fb0 0 66%, rgba(47, 159, 208, .18) 66% 100%); animation: tk-pour 2.6s ease-in-out infinite; }
.tk-ring i { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(160deg, #6cc8ee, #2f9fd0); color: #fff; }
@keyframes tk-pour { 0%, 100% { transform: scale(1); } 40% { transform: scale(.92); } }
.tk-hold b { display: block; font: 700 16px var(--sans); letter-spacing: -.01em; }
.tk-hold small { display: flex; align-items: center; gap: 5px; margin-top: 6px; font: 600 12px var(--sans); color: #6b8577; }
.tk-hold small i { width: 8px; height: 8px; border-radius: 50%; background: #dbe7e0; }
.tk-hold small i.on { background: #2f9fd0; }
.tk-label { font: 700 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #6b8577; }
.tk-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-opts span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 99px; border: 1.5px solid #dbe7e0; font: 600 13px var(--sans); color: #6b8577; }
.tk-opts span.on { border-color: #127a45; background: #127a45; color: #fff; }
.tk-ui.clock { background: linear-gradient(180deg, #2a3350, #151a2e); }
.tk-note { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(245, 245, 245, .92); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); animation: tk-drop 4s cubic-bezier(.2, .8, .2, 1) infinite; }
.tk-note img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.tk-note b { display: flex; justify-content: space-between; font: 600 13px var(--sans); }
.tk-note b small { font-weight: 400; opacity: .5; }
.tk-note > span > span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; color: #333; }
@keyframes tk-drop { 0% { opacity: 0; transform: translateY(-24px); } 12%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 1100px) { .tk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .tk-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tk { flex-direction: row; align-items: center; gap: 14px; padding: 12px; border-radius: 22px; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(12, 14, 32, .78); }
  .tk-ui { flex: none; width: 52%; height: 128px; padding: 12px; gap: 8px; }
  .tk-text { padding: 0; }
  .tk h3 { font-size: 24px; }
  .tk p { font-size: 14px; margin-top: 4px; }
  .tk-pill { font-size: 11px; padding: 4px 8px; }
  .tk-week span { height: 20px; font-size: 9px; }
  .tk-ring { width: 48px; height: 48px; } .tk-ring i { width: 40px; height: 40px; }
  .tk-hold { gap: 10px; } .tk-hold b { font-size: 13px; }
  .tk-opts span { font-size: 11px; padding: 4px 8px; }
  .tk-note { padding: 8px; gap: 8px; } .tk-note img { width: 28px; height: 28px; } .tk-note > span > span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .tk-bar i, .tk-ring, .tk-note, .engines.in .tk { animation: none; } }

/* Phones: the time bar hides when there is one stop; the waitlist stays a tap away; the demo fills the screen */
.dock.solo { display: none !important; }
.m-cta { display: none; }
@media (max-width: 820px) {
  .m-cta:not([hidden]) { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 6; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 20px; background: rgba(14, 16, 34, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 14px 40px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 248, 238, .1); color: var(--ink); text-decoration: none; font-size: 14px; animation: card-up .45s cubic-bezier(.2, .8, .2, 1) both; }
  .m-cta img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
  .m-cta span { flex: 1; min-width: 0; color: var(--ink-soft); }
  .m-cta b { color: var(--ink); }
  .m-cta em { flex: none; padding: 10px 14px; border-radius: 14px; background: var(--ink); color: #17202e; font: 700 14px var(--sans); font-style: normal; }
  .close { padding-bottom: calc(var(--dock) + 16vh + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .tryout { padding: 0; }
  .tryout[open] { gap: 0; }
  .device { width: 100vw; height: 100svh; max-width: none; padding: 0; border-radius: 0; background: #fbfdfb; box-shadow: none; }
  .notch { display: none; }
  .screen { border-radius: 0; padding: calc(env(safe-area-inset-top) + 58px) 18px calc(env(safe-area-inset-bottom) + 22px); }
  .tryout-done { position: fixed; top: calc(env(safe-area-inset-top) + 10px); right: 12px; z-index: 5; min-height: 40px; padding: 0 16px; background: rgba(16, 26, 20, .08); color: #101a14; }
  .s-maghrib + .tryout-done, .tryout:has(.s-asr) .tryout-done, .tryout:has(.s-maghrib) .tryout-done { background: rgba(255, 255, 255, .16); color: #fff; }
}

/* Toolkit, take three: a light panel floating over the painting, four white tiles, the Darb piece large */
.engines { scroll-margin-top: 84px; width: min(100% - 32px, 1240px); min-height: 0; margin: 9vh auto; padding: clamp(28px, 4.2vw, 60px); border-radius: 36px; background: #f5f5f2; color: #1d1d1f; box-shadow: 0 40px 120px rgba(4, 6, 16, .45); }
.engines h2, .engines-lede { text-shadow: none; }
.engines .eyebrow { color: #127a45; text-shadow: none; }
.engines h2 { color: #1d1d1f; }
.engines .engines-lede { color: #6e6e73; }
.engines .tk-grid { gap: 16px; margin-top: 6px; }
.engines .tk { padding: 0; gap: 0; overflow: hidden; border-radius: 26px; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 14px 34px rgba(0, 0, 0, .07); }
.engines .tk:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 26px 50px rgba(0, 0, 0, .12); }
.engines .tk-ui { height: clamp(170px, 24vh, 220px); padding: 22px; border-radius: 0; box-shadow: none; align-items: stretch; }
.engines .tk-ui.game { background: linear-gradient(160deg, #fff8ea, #ffe9c7); }
.engines .tk-ui.touch { background: linear-gradient(160deg, #eef8fd, #d6edf8); align-items: center; }
.engines .tk-ui.tune { background: linear-gradient(160deg, #f0f8f3, #d9eee1); }
.engines .tk-ui.clock { background: linear-gradient(170deg, #2f3a5c, #141a2e); }
.engines .tk-text { padding: 20px 22px 24px; }
.engines .tk h3 { font: 700 clamp(22px, 1.9vw, 27px)/1.1 var(--sans); letter-spacing: -.035em; color: #1d1d1f; }
.engines .tk p { margin-top: 8px; font-size: 15.5px; line-height: 1.45; color: #6e6e73; }
.engines .tk-pill { font-size: 14px; padding: 7px 12px; background: #fff; }
.engines .tk-week span { height: 30px; background: rgba(255, 255, 255, .7); }
.engines .tk-week span.on { background: #fff; }
.engines .tk-bar { background: rgba(255, 255, 255, .8); }
.engines .tk-hold { gap: 16px; }
.engines .tk-ring { width: 76px; height: 76px; } .engines .tk-ring i { width: 64px; height: 64px; }
.engines .tk-hold b { font-size: 18px; }
.engines .tk-opts span { background: rgba(255, 255, 255, .8); font-size: 14px; padding: 7px 12px; }
.engines .tk-opts span.on { background: #127a45; }
.engines .tk-note { padding: 14px; }
.engines .tk-note img { width: 40px; height: 40px; }
.engines .tk-note > span > span { font-size: 14px; }
@media (max-width: 820px) {
  .engines { width: calc(100% - 20px); margin: 6vh auto; padding: 26px 16px 18px; border-radius: 28px; }
  .engines .tk { flex-direction: column; align-items: stretch; background: #fff; }
  .engines .tk-ui { width: auto; height: 150px; padding: 16px; }
  .engines .tk-text { padding: 14px 16px 18px; }
  .engines .tk h3 { font-size: 22px; }
}
