/* Wird website. Tokens, components and type are lifted unchanged from the
   design artboards (website/_base.css); only the layout is new, so one page
   can be the 1440 desktop artboard and the 390 phone artboard at once. */

:root{
  --ink:#1A1F1C; --parchment:#FAF7F0; --deep:#F2EDE0;
  --accent:#0F6B59; --accent-soft:rgba(15,107,89,.16); --accent-ink:#0A4E42;
  --gold:#B88F38; --uncertain:#C78721; --muted:#73736B;
  --rule:rgba(184,143,56,.28); --rule-outer:rgba(184,143,56,.55); --loz:rgba(184,143,56,.5);
  /* DESIGN.md Theme.onAccent: text on an accent fill inverts with the scheme */
  --on-accent:var(--parchment);
  --veil:rgba(26,31,28,.09); --veil-current:rgba(26,31,28,.16);
  --gut:72px;
  color-scheme:light dark;
}
@media (prefers-color-scheme:dark){
  :root{
    --ink:#EDEBE0; --parchment:#121412; --deep:#212421;
    --accent:#54B899; --accent-soft:rgba(84,184,153,.16); --accent-ink:#7FCCB2;
    --gold:#D9B566; --uncertain:#EBB352; --muted:#9E9E94;
    --rule:rgba(217,181,102,.28); --rule-outer:rgba(217,181,102,.55); --loz:rgba(217,181,102,.5);
    --veil:rgba(237,235,224,.09); --veil-current:rgba(237,235,224,.16);
  }
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;-webkit-font-smoothing:antialiased;background:var(--parchment);color:var(--ink);
  font-family:"EB Garamond",Georgia,"Times New Roman",serif;text-wrap:pretty;min-height:100vh}
img{max-width:100%}
.ui{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",system-ui,sans-serif}
.ar{font-family:"Amiri","Geeza Pro","Times New Roman",serif;direction:rtl;unicode-bidi:isolate}
a{color:var(--accent);text-decoration:none;border-bottom:1px solid var(--accent-soft)}
a:hover{color:var(--accent-ink);border-bottom-color:var(--accent)}
a:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
.rule{height:.8px;background:var(--rule);border:0;margin:0;width:100%;flex:0 0 auto;align-self:stretch}

/* Ornament.IlluminatedBorder — hairline .8 @55%, inner rule 2 @28% inset 4, 7px lozenges */
.illum{position:relative}
.frame{position:absolute;inset:0;pointer-events:none;display:block}
.frame::before{content:"";position:absolute;inset:0;border:.8px solid var(--rule-outer);border-radius:16px}
.frame::after{content:"";position:absolute;inset:4px;border:2px solid var(--rule);border-radius:10px}
.frame i{position:absolute;width:7px;height:7px;background:var(--loz);transform:rotate(45deg)}
.frame i:nth-child(1){left:.5px;top:.5px}
.frame i:nth-child(2){right:.5px;top:.5px}
.frame i:nth-child(3){left:.5px;bottom:.5px}
.frame i:nth-child(4){right:.5px;bottom:.5px}
.girih{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.lift{position:relative}

/* Components — DESIGN.md */
.card{background:var(--deep);border-radius:16px;padding:24px}
.chip{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:999px;
  background:var(--accent-soft);color:var(--accent);font-size:13px;font-weight:600;letter-spacing:.01em}
.chip.on{background:var(--accent);color:var(--on-accent)}
.cta{display:inline-flex;align-items:center;gap:8px;padding:14px 28px;border-radius:999px;
  background:var(--accent);color:var(--on-accent);font-size:16px;font-weight:600;border:0;
  letter-spacing:.01em;cursor:pointer;text-decoration:none}
.cta:hover{background:var(--accent-ink);color:var(--on-accent)}
.cta.ghost{background:transparent;color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent-soft)}
.cta.ghost:hover{box-shadow:inset 0 0 0 1px var(--accent)}

/* Type — 40/30/21 lifted from the mushaf scale, extended for the wider medium */
.h1{font-size:64px;line-height:1.04;font-weight:500;letter-spacing:-.015em;margin:0}
.h2{font-size:40px;line-height:1.12;font-weight:500;letter-spacing:-.01em;margin:0}
.h3{font-size:21px;line-height:1.25;font-weight:600;margin:0}
.lede{font-size:21px;line-height:1.55;color:var(--muted);margin:0}
.body{font-size:17px;line-height:1.62;margin:0}
.cap{font-size:13px;line-height:1.45;color:var(--muted);letter-spacing:.01em;margin:0}
.eyebrow{font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin:0}
.num{font-size:40px;line-height:1;font-weight:500;font-variant-numeric:tabular-nums;margin:0}
.muted{color:var(--muted)}

/* Mushaf word states — WordView, SurahReaderView.swift */
.w{border-radius:6px;padding:0 2px}
.w.said{background:var(--accent-soft);color:var(--accent)}
.w.unsure{color:var(--uncertain)}
.w.hidden{background:var(--veil);color:transparent}
.w.hidden.current{background:var(--veil-current)}
.ros{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;
  box-shadow:inset 0 0 0 .8px var(--rule-outer);color:var(--gold);font-size:13px;vertical-align:middle;margin:0 3px}
.loz{display:inline-block;width:7px;height:7px;background:var(--gold);opacity:.7;transform:rotate(45deg);vertical-align:middle}

/* Copy written twice in the artboards: the phone artboard condenses it. */
.short{display:none}

/* ---------- Shared chrome ---------- */
.wrap{max-width:1440px;margin:0 auto;padding-left:var(--gut);padding-right:var(--gut)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:24px;height:88px}
.brand{display:flex;align-items:center;gap:12px;color:var(--ink);border:0}
.brand:hover{color:var(--ink)}
.brand img{width:36px;height:36px;border-radius:8px;display:block}
.brand span{font-family:"EB Garamond",Georgia,serif;font-size:24px;font-weight:500;letter-spacing:.01em}
.nav{display:flex;align-items:center;gap:32px;font-size:15px}
.nav a{color:var(--muted);border:0}
.nav a:hover{color:var(--ink)}
.nav a[aria-current="page"]{color:var(--accent);font-weight:600}
.bar .cta{padding:11px 22px;font-size:15px}

/* ---------- Home ---------- */
.hero{display:flex;align-items:center;gap:clamp(48px,6.67vw,96px);padding-top:96px;padding-bottom:96px}
.hero-copy{display:flex;flex-direction:column;gap:24px;flex:1 1 auto;min-width:0}
.hero .h1{font-size:clamp(48px,4.45vw,64px)}
.hero .lede{max-width:520px}
.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding-top:8px}
.hero .cap{padding-top:4px}

.reader{flex:0 0 auto;width:400px;height:716px;border-radius:44px;background:var(--parchment);
  box-shadow:inset 0 0 0 1px var(--rule);padding:28px 20px;display:flex;flex-direction:column;gap:20px;overflow:hidden}
.cartouche{padding:16px;border-radius:16px;overflow:hidden}
.cartouche .ar{display:flex;flex-direction:column;align-items:center;gap:4px;position:relative}
.cartouche-title{display:flex;align-items:center;gap:12px;color:var(--gold);font-size:20px}
.cartouche-title span{color:var(--ink);font-size:30px}
.cartouche-sub{font-size:14px;color:var(--muted)}
.mushaf{font-size:28px;line-height:2.3;padding:0 6px;text-align:right}
.reader .spacer{flex:1 1 auto}
.mode{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mode .chip{gap:8px}

.intro{display:flex;flex-direction:column;align-items:center;gap:24px;padding-top:96px;text-align:center}
.intro .h2{max-width:820px}
.intro .lede{max-width:720px}
.states-wrap{padding-top:48px;padding-bottom:96px}
.states{padding:48px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px;overflow:hidden;background:var(--parchment)}
.state{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.state-word{font-size:30px}
.state-text{display:flex;flex-direction:column;gap:14px}
.state .body{color:var(--muted)}

.text{display:flex;align-items:flex-start;gap:clamp(48px,6.67vw,96px);padding-top:96px;padding-bottom:96px}
.text-copy{flex:1 1 0;display:flex;flex-direction:column;gap:24px;min-width:0}
.text-copy .body{max-width:520px}
.text-copy .quiet{font-style:italic;color:var(--muted)}
.stats{flex:0 0 auto;width:clamp(340px,33.4vw,480px);display:flex;flex-direction:column}
.stat{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:20px 0}
.stat .cap{text-align:right}
.stats .rule.first{display:none}

.beyond{display:flex;flex-direction:column;gap:48px;padding-top:96px;padding-bottom:96px}
.beyond-head{display:flex;flex-direction:column;gap:16px}
.beyond-head .h2{max-width:640px}
.features{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.feature{display:flex;flex-direction:column;gap:12px}
.feature svg{width:22px;height:22px}
.feature .cap{font-size:15px;line-height:1.55}

.band-wrap{padding-bottom:96px}
.band{background:var(--accent-soft);border-radius:16px;padding:64px;overflow:hidden;display:flex;gap:clamp(48px,6.67vw,96px);align-items:center}
.band-head{flex:1 1 0;display:flex;flex-direction:column;gap:20px}
.band-body{flex:1 1 0;display:flex;flex-direction:column;gap:20px;padding-top:8px}
.band-link{font-size:16px;font-weight:600;align-self:flex-start}

.foot{display:flex;flex-direction:column;gap:48px;padding-top:64px;padding-bottom:64px}
.foot-top{display:flex;justify-content:space-between;gap:48px;align-items:flex-start}
.foot-brand{display:flex;flex-direction:column;gap:14px;max-width:300px}
.foot-brand .brand img{width:32px;height:32px;border-radius:7px}
.foot-brand .brand span{font-size:22px;font-weight:400}
.foot-cols{display:flex;gap:72px}
.foot-col{display:flex;flex-direction:column;gap:12px}
.foot-col a{font-size:15px;border:0}
.foot-bottom{display:flex;justify-content:space-between;gap:48px;align-items:flex-end}
.foot-bottom .cap:first-child{max-width:720px}
.sm-only{display:none}

/* ---------- Documents: privacy, terms, support ---------- */
.doc-wrap{max-width:900px;margin:0 auto;padding-left:40px;padding-right:40px}
.doc-bar{height:80px;gap:24px}
.doc-bar .brand img{width:32px;height:32px;border-radius:7px}
.doc-bar .brand span{font-size:22px}
.doc-bar .nav{gap:28px}
.doc-main{padding-top:64px;padding-bottom:80px}
.doc{max-width:664px;margin:0 auto;display:flex;flex-direction:column;gap:20px}
.doc-head{display:flex;flex-direction:column;gap:12px}
.doc-head h1{font-size:40px;line-height:1.1;font-weight:500;margin:0}
.doc-head .lede{font-size:19px}
.doc h2{font-size:30px;line-height:1.2;font-weight:500;margin:28px 0 0}
.doc h3{font-size:21px;line-height:1.3;font-weight:600;margin:12px 0 0}
.doc p{font-size:17px;line-height:1.66;margin:0}
.doc p.cap{font-size:13px;line-height:1.45}
.doc p.eyebrow{font-size:12px}
.doc ul{margin:0;padding-inline-start:22px;display:flex;flex-direction:column;gap:10px}
.doc li{font-size:17px;line-height:1.6}
.doc strong{font-weight:600}
.summary{background:var(--accent-soft);border-radius:16px;padding:24px 28px;margin-top:4px}
.doc .summary p{font-size:19px;line-height:1.55;position:relative}
.q{font-size:19px;line-height:1.35;font-weight:600;margin:0}
.doc .q{font-size:19px;line-height:1.35}
.faq{display:flex;flex-direction:column;margin-top:4px}
.faq-item{display:flex;flex-direction:column;gap:8px;padding:20px 0}
.faq-item .body{color:var(--muted)}
.contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:8px}
.contact-grid .card{display:flex;flex-direction:column;gap:8px}
.doc .contact-grid .big{font-size:19px;font-weight:600;margin:0;overflow-wrap:anywhere}
.doc-foot{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px 24px;padding-top:32px;padding-bottom:32px}
.doc-foot nav{display:flex;flex-wrap:wrap;gap:12px 24px}
.doc-foot a{border:0}

/* ---------- Narrower desktops ---------- */
@media (max-width:1439px){ :root{--gut:clamp(40px,5vw,72px)} }
@media (max-width:1199px){ .features{grid-template-columns:repeat(2,minmax(0,1fr))} }

/* ---------- Phone and small tablet: the 390 artboard ---------- */
@media (max-width:1023px){
  :root{--gut:40px}
  .long{display:none}
  .short{display:inline}
  .home .nav{display:none}
  .bar{height:64px;gap:12px}
  .brand{gap:10px}
  .brand img{width:32px;height:32px;border-radius:7px}
  .brand span{font-size:21px}
  .bar .cta{padding:12px 20px;font-size:15px;min-height:44px}

  .home .wrap{max-width:760px}
  .hero{flex-direction:column;align-items:stretch;gap:32px;padding-top:40px;padding-bottom:40px}
  .hero-copy{gap:20px}
  .hero .h1{font-size:40px;line-height:1.08;letter-spacing:-.012em}
  .hero .lede{font-size:18px;max-width:none}
  .hero-actions{padding-top:0}
  .hero-actions .cta{justify-content:center;min-height:52px}
  .hero-actions .ghost{display:none}
  .hero .cap{padding-top:0}

  .reader{width:auto;height:auto;border-radius:20px;padding:20px 16px;gap:16px}
  .cartouche{padding:14px}
  .cartouche-title{gap:10px;font-size:17px}
  .cartouche-title span{font-size:25px}
  .cartouche-sub{font-size:13px}
  .mushaf{font-size:25px;line-height:2.25;padding:0 4px}
  .mushaf .more{display:none}
  .reader .spacer{display:none}
  .mode{gap:10px}
  .mode .chip{gap:7px;min-height:34px}
  .mode .chip svg{width:14px;height:14px}
  .mode .cap{font-size:12px}

  .intro{align-items:flex-start;text-align:left;gap:20px;padding-top:48px}
  .intro .h2, .text .h2, .beyond .h2, .band .h2{font-size:30px;line-height:1.15}
  .intro .lede{font-size:17px;line-height:1.62}
  .states-wrap{padding-top:28px;padding-bottom:48px}
  .states{display:flex;flex-direction:column;gap:16px;padding:0;background:none;overflow:visible}
  .states > .frame{display:none}
  .state{flex-direction:row;align-items:flex-start;gap:16px;background:var(--deep);border-radius:16px;padding:16px}
  .state-word{font-size:25px;flex:0 0 auto}
  .state-text{gap:4px}
  .state .h3{font-size:17px}
  .state .body{font-size:14px;line-height:1.45;letter-spacing:.01em}

  .text{flex-direction:column;align-items:stretch;gap:20px;padding-top:48px;padding-bottom:48px}
  .text-copy{gap:20px}
  .stats{width:auto;padding-top:8px}
  .stats .rule.first{display:block}
  .stat{padding:16px 0}
  .stat .num{font-size:30px}
  .stat .cap{max-width:180px}

  .beyond{gap:20px;padding-top:48px;padding-bottom:48px}
  .beyond-head{gap:20px}
  .features{gap:12px;padding-top:8px}
  .feature{padding:16px;gap:8px}
  .feature svg{width:20px;height:20px}
  .feature .h3{font-size:17px}
  .feature .cap{font-size:13px;line-height:1.5}

  .band-wrap{padding-bottom:48px}
  .band{flex-direction:column;align-items:stretch;gap:16px;padding:28px 24px}
  .band-head, .band-body{gap:16px;padding-top:0}
  .band-link{font-size:15px;min-height:44px;display:inline-flex;align-items:center;border-bottom:0;
    text-decoration:underline;text-decoration-color:var(--accent-soft);text-decoration-thickness:1px;text-underline-offset:5px}

  .foot{gap:24px;padding-top:40px;padding-bottom:40px}
  .foot-top{flex-direction:column;gap:24px}
  .foot-brand{gap:24px;max-width:none}
  .foot-brand .brand img{width:30px;height:30px}
  .foot-brand .brand span{font-size:21px}
  .foot-cols{display:flex;flex-wrap:wrap;gap:12px 24px}
  .foot-col{display:contents}
  .foot-col .eyebrow, .foot-col .app-link{display:none}
  .foot-col a{min-height:44px;display:inline-flex;align-items:center}
  .foot-bottom{flex-direction:column;align-items:flex-start;gap:24px}
  .sm-only{display:block}
}
@media (max-width:599px){
  :root{--gut:20px}
  .hero-actions .cta{flex:1 1 auto}
  .nav-home{display:none}
  .doc-wrap{padding-left:20px;padding-right:20px}
  .doc-bar{gap:16px}
  .doc-bar .nav{gap:20px}
  .doc-main{padding-top:40px;padding-bottom:56px}
  .doc-head h1{font-size:36px}
  .doc h2{font-size:26px;margin-top:20px}
  .contact-grid{grid-template-columns:minmax(0,1fr)}
  .doc-foot a{min-height:44px;display:inline-flex;align-items:center}
  .doc-foot{padding-top:16px;padding-bottom:24px}
}
