
/* The first visit (the owner, 26 Sept): three short screens on what the
   app is, then a hands-on practice of every gesture on a real passage --
   the reader does each gesture and the practice moves on. The sentences are
   his, verbatim (Hud 11:9-11, the English edition). */
:root{--body:#4A4032;--cap:#8A7B66;--ink:#2A241B;--muted:#6F6452;--faint:#978B78;--line:#DDD3C2;--accent:#0A5C49;--ground:#F5F1E8}
*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;overscroll-behavior:none;touch-action:none}
body{font-family:Karla,system-ui,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased;
  background:radial-gradient(120% 40% at 50% 0%,rgba(236,226,206,.9) 0%,rgba(236,226,206,0) 100%),linear-gradient(180deg,#EFE7D8 0%,#F5F1E8 45%);
  -webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.serif{font-family:Newsreader,"Iowan Old Style",Georgia,serif}
.cap{font-size:11px;font-weight:700;letter-spacing:.18em;text-transform:uppercase}
.scr{position:fixed;inset:0;display:none;flex-direction:column;padding:max(28px,env(safe-area-inset-top)) 28px max(28px,env(safe-area-inset-bottom));
  max-width:520px;margin:0 auto}
.scr.on{display:flex;animation:in .5s cubic-bezier(.2,.8,.2,1)}
@keyframes in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.dots{display:flex;justify-content:center;gap:6px;margin-top:22px}
.dots i{width:6px;height:3px;border-radius:2px;background:#D6CCBA}.dots i.on{width:18px;background:var(--accent)}
.intro{margin-top:auto;margin-bottom:auto;display:flex;flex-direction:column;gap:20px}
.btn{display:flex;align-items:center;justify-content:center;min-height:54px;border-radius:16px;border:0;background:var(--accent);
  color:#fff;font:700 18px Karla,system-ui,sans-serif;cursor:pointer;width:100%}
/* 0.62.0: Urdu on an Urdu phone (the words come from chrome_ur.json), and one quiet row that names the other editions */
html[lang="ur"] body{direction:rtl}
html[lang="ur"] .intro span,html[lang="ur"] .btn,html[lang="ur"] .link{font-family:"Jameel Noori Nastaleeq","Noto Nastaliq Urdu","Noto Naskh Arabic",serif;line-height:1.9}
html[lang="ur"] #wTitle{font-size:40px!important}
.langs{display:flex;justify-content:center;gap:8px;margin-top:6px}.langs .link{width:auto;padding:0 18px;color:var(--muted)}
.link{background:none;border:0;color:var(--muted);font:400 16px Karla,system-ui,sans-serif;min-height:44px;cursor:pointer;width:100%}
.box{padding:16px;border-radius:16px;display:flex;flex-direction:column;gap:6px}

/* 0.87.0 the same three grounds as every other page (the owner's design QA, 2 Oct: some pages opened in another theme) */
html[data-ground="sky"]{--body:#2F3E57;--cap:#7486A0;--ink:#1B2536;--muted:#4A5D77;--faint:#7486A0;--line:#C9D3DF;--ground:#E6EAEE}
html[data-ground="sky"] body{background:radial-gradient(140% 45% at 20% 0%,rgba(143,176,214,.9) 0%,rgba(143,176,214,0) 100%),linear-gradient(180deg,#B3C8DF 0%,#D3DDE8 26%,#E6EAEE 48%,#E9E9EA 100%)}
html[data-ground="sky"] .dots i{background:#B5C3D4}
html[data-ground="night"]{--body:#C9D0DE;--cap:#7F8BA3;--ink:#ECE8DF;--muted:#AEB9CC;--faint:#7F8BA3;--line:#26314B;--ground:#111A2F}
html[data-ground="night"] body{background:radial-gradient(140% 45% at 25% 0%,rgba(66,96,156,.55) 0%,rgba(66,96,156,0) 100%),linear-gradient(180deg,#0C1428 0%,#111A2F 45%)}
html[data-ground="night"] .dots i{background:#26314B}
html[data-ground="night"] .skip{background:rgba(255,255,255,.06)}
html[data-ground="night"] .ln{color:rgba(236,232,223,.34)}
html[data-ground="night"] .sheet{background:#17213A;box-shadow:0 -12px 34px rgba(0,0,0,.4)}
html[data-ground="night"] .opt i,html[data-ground="night"] .side.r{background:#1D2743;box-shadow:none}
html[data-ground="night"] .side.r{box-shadow:-10px 0 34px rgba(0,0,0,.4)}
html[data-ground="night"] #done .g b{background:rgba(95,199,164,.14);color:#5FC7A4}

/* 0.92.0 the opening (the owner, 3 Oct, chose "Tafsir. In your pocket" with "When it is hard"): one scroll, one thread that draws
   a shelf of books, then a phone, then carries three verses from loss to hope. Few words a screen. Urdu phones keep #w1. */
#wIntro{position:fixed;inset:0;z-index:20;background:#F6F0E7;color:#2A2219;display:none;--ink:#2A2219;--soft:#7A6F5C;--mint:#0A5C49}
#wIntro.on{display:block}
#wIntro .wi-sc{position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;touch-action:pan-y;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scrollbar-width:none}
#wIntro .wi-sc::-webkit-scrollbar{display:none}
#wIntro .wi-ct{position:relative;max-width:460px;margin:0 auto}
#wIntro svg{position:absolute;left:0;top:0;pointer-events:none;z-index:1;overflow:visible}
#wIntro svg path{fill:none;stroke:var(--ink);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#wIntro svg circle{fill:var(--mint)}
#wIntro svg #wiTan{stroke-width:.9;opacity:.92}
#wIntro .stop{position:relative;z-index:2;padding:110px 26px 0;display:flex;flex-direction:column}
#wIntro .stop.l{padding-left:46px}#wIntro .stop.r{padding-right:46px}
#wIntro .stop.c{align-items:center;text-align:center}
#wIntro .art{width:100%;flex:none;margin-bottom:26px}
#wIntro .w{font:400 46px/1.02 Newsreader,"Iowan Old Style",Georgia,serif;letter-spacing:-.025em;margin:0}
#wIntro .w.m{font-size:36px;line-height:1.08}
#wIntro .w em{font-style:italic}
#wIntro .mi{font:500 14px/1.45 Karla,system-ui,sans-serif;color:var(--soft);margin:10px 0 0}
#wIntro .tag{font:700 11px Karla,system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:var(--mint);margin:0 0 10px}
#wIntro .vcard{background:#fff;border-radius:18px;padding:16px;box-shadow:0 14px 34px rgba(40,28,10,.12);margin-bottom:14px}
#wIntro .vk{font:700 10px Karla,system-ui,sans-serif;letter-spacing:.16em;color:var(--mint);margin:0 0 6px}
#wIntro .v{font:400 21px/1.38 Newsreader,"Iowan Old Style",Georgia,serif;margin:0}
#wIntro .said{font:300 28px/1.22 Newsreader,"Iowan Old Style",Georgia,serif;margin:0}
#wIntro .said i{font-style:normal;color:var(--mint)}
#wIntro .chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}
#wIntro .chips span{border:1px solid rgba(42,34,25,.18);border-radius:999px;padding:8px 13px;font:500 14px Karla,system-ui,sans-serif;background:#fff}
#wIntro .bubble{align-self:flex-end;background:var(--mint);color:#fff;border-radius:18px 18px 5px 18px;padding:11px 15px;font:500 15px/1.35 Karla,system-ui,sans-serif;max-width:250px;margin-bottom:14px}
#wIntro .hop{display:flex;align-items:center;gap:8px;margin-bottom:14px;font:700 13px Karla,system-ui,sans-serif;color:var(--mint)}
#wIntro .hop span{width:40px;height:40px;border-radius:50%;border:1.5px solid var(--mint);display:grid;place-items:center;background:#F6F0E7}
#wIntro .obj{transition:opacity .7s,transform .7s cubic-bezier(.2,.8,.2,1);opacity:.35;transform:translateY(12px)}
#wIntro .obj.seen{opacity:1;transform:none}
#wIntro .icon{width:84px;height:84px;border-radius:22px;overflow:hidden;box-shadow:0 14px 30px rgba(40,28,10,.18);margin-bottom:22px;display:block}
#wIntro .icon img{width:100%;height:100%;display:block}
#wIntro .name{font:400 40px/1.05 Newsreader,"Iowan Old Style",Georgia,serif;margin:0;letter-spacing:-.015em}
#wIntro .by{font:700 13px Karla,system-ui,sans-serif;letter-spacing:.18em;color:var(--soft);margin:10px 0 0;text-transform:uppercase}
#wIntro .pocket{font:italic 400 24px/1.2 Newsreader,"Iowan Old Style",Georgia,serif;margin:22px 0 0}
#wIntro .go{display:flex;align-items:center;justify-content:center;width:min(300px,100%);min-height:54px;border-radius:16px;border:0;background:var(--mint);color:#fff;font:700 17px Karla,system-ui,sans-serif;cursor:pointer;margin-top:28px}
#wIntro .demo{display:flex;align-items:center;justify-content:center;gap:10px;width:min(300px,100%);min-height:50px;border-radius:16px;border:1.5px solid rgba(42,34,25,.22);background:transparent;color:var(--ink);font:700 16px Karla,system-ui,sans-serif;cursor:pointer;margin-top:10px}
#wIntro .demo i{width:0;height:0;border-left:9px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent}
#wIntro .eds{display:flex;gap:6px;margin:16px 0 80px}
#wIntro .eds button{border:0;background:none;color:var(--soft);font:500 15px Karla,system-ui,sans-serif;min-height:44px;padding:0 12px;cursor:pointer}
#wIntro .eds button[lang="ur"]{font-family:"Jameel Noori Nastaleeq","Noto Nastaliq Urdu",serif;font-size:17px}
#wIntro .wi-hint{position:absolute;left:0;right:0;bottom:max(16px,env(safe-area-inset-bottom));text-align:center;font:700 12px Karla,system-ui,sans-serif;letter-spacing:.2em;color:var(--soft);pointer-events:none;transition:opacity .4s;z-index:3}

/* 0.93.0 the language screen, then the thread in that language */
#wIntro .wi-pick{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 28px}
#wIntro .wi-langs{display:flex;flex-direction:column;gap:12px;width:min(300px,100%);margin-top:44px}
#wIntro .wi-langs button{min-height:58px;border-radius:16px;border:1.5px solid rgba(42,34,25,.2);background:#fff;color:var(--ink);font:500 19px Karla,system-ui,sans-serif;cursor:pointer}
#wIntro .wi-langs button[lang="ur"]{font:400 24px/1 "Jameel Noori Nastaleeq","Noto Nastaliq Urdu",serif;padding-bottom:6px}
#wIntro .wi-langs button.first{background:var(--mint);border-color:var(--mint);color:#fff}
#wIntro.ur .w,#wIntro.ur .v,#wIntro.ur .said,#wIntro.ur .pocket,#wIntro.ur .name,#wIntro.ur .mi,#wIntro.ur .bubble,#wIntro.ur .chips span,#wIntro.ur .go,#wIntro.ur .demo,#wIntro.ur .by,#wIntro.ur .tag,#wIntro.ur .vk{
  font-family:"Jameel Noori Nastaleeq","Noto Nastaliq Urdu",serif;letter-spacing:0;font-style:normal}
#wIntro.ur .w{font-size:36px;line-height:1.9}#wIntro.ur .w.m{font-size:30px}#wIntro.ur .v{font-size:21px;line-height:2.1}#wIntro.ur .said{font-size:24px;line-height:2}
#wIntro.ur .w em{font-style:normal}#wIntro.ur .tag,#wIntro.ur .vk{font-size:14px}#wIntro.ur .name{font-size:34px;line-height:1.8}#wIntro.ur .pocket{font-size:22px;line-height:2}
#wIntro.ur .hop{direction:ltr}
@media (prefers-reduced-motion:reduce){#wIntro .obj{transition:none;opacity:1;transform:none}}

/* 0.122.0 the last question: how would you like to read? (three picture cards, then Home) */
/* 0.133.0 five more morning grounds (the owner, 7 Oct): a tint over Sky or Paper -- every other rule of the base ground still applies */
html[data-tint="dawn"][data-ground]{--ground:#F1E0D6}
html[data-tint="dawn"][data-ground] body{background:linear-gradient(180deg,#9DB9DC 0%,#C6D5EA 36%,#F2DCCD 74%,#FBEEE2 100%);background-attachment:fixed}
html[data-tint="golden"][data-ground]{--ground:#F8E8D3}
html[data-tint="golden"][data-ground] body{background:radial-gradient(90% 40% at 85% 0%,rgba(255,214,150,.75) 0,rgba(255,214,150,0) 70%),linear-gradient(180deg,#F5DDB8 0%,#F8E8D3 46%,#FBF4EA 100%);background-attachment:fixed}
html[data-tint="mint"][data-ground]{--ground:#DCEFE6}
html[data-tint="mint"][data-ground] body{background:radial-gradient(80% 36% at 15% 0%,rgba(255,255,255,.7) 0,rgba(255,255,255,0) 70%),linear-gradient(180deg,#B7E0D2 0%,#D9EEE5 44%,#F6F3E9 100%);background-attachment:fixed}
html[data-tint="lav"][data-ground]{--ground:#EBD9E1}
html[data-tint="lav"][data-ground] body{background:linear-gradient(180deg,#C4BEE5 0%,#E4D2E2 40%,#F7E5D7 76%,#FBF3EA 100%);background-attachment:fixed}
html[data-tint="pearl"][data-ground]{--ground:#F3F4F4}
html[data-tint="pearl"][data-ground] body{background:radial-gradient(70% 38% at 50% 105%,rgba(244,196,186,.55) 0,rgba(244,196,186,0) 70%),linear-gradient(180deg,#FBFAF6 0%,#EFF1F3 100%);background-attachment:fixed}
