/* Quran by AlQuranClasses(TM) — app shell (phone + web). Tokens match the design canvas. */
@font-face { font-family: "Amiri Quran"; font-weight: 400; font-display: swap; src: url(../fonts/amiri-quran-arabic-v1.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Fraunces"; font-weight: 500 600; font-display: swap; src: url(../fonts/fraunces-latin-v1.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2122; }
@font-face { font-family: "Inter"; font-weight: 400 600; font-display: swap; src: url(../fonts/inter-latin-v1.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
:root {
  color-scheme: light;
  --em: #0f4f3e; --em-2: #1f5d4c; --em-d: #0b3a2e; --paper: #f6f3ea; --cream: #fbf8f0; --ink: #15201c;
  --muted: #5c6862; --line: #e4dfd1; --gold: #b8913f; --gold-t: #7a5a22; --card: #ffffff; --danger: #a3302a;
  --r: 18px; --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.45; }
body { min-height: 100vh; }
h1:focus { outline: none; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.hide { display: none !important; }
.wrap { max-width: 480px; margin: 0 auto; padding: calc(18px + var(--safe-t)) 20px calc(28px + var(--safe-b)); min-height: 100vh; display: flex; flex-direction: column; }
@media (min-width: 900px) { .wrap { padding-top: 48px; } }

.bar { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 8px; }
.bar .back { background: none; border: 0; color: var(--em); font-size: 16px; padding: 8px 4px; min-height: 44px; cursor: pointer; }
.bar .title { font-weight: 600; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark { width: 40px; height: 40px; border-radius: 12px; background: var(--em); color: #f3e7c6; display: grid; place-items: center; font-family: "Amiri Quran", Georgia, serif; font-size: 22px; }
.brand .name { font-family: Fraunces, Georgia, serif; font-size: 18px; line-height: 1.1; }
.brand .name small { display: block; font-family: Inter, sans-serif; font-size: 12px; color: var(--muted); }

.hero { margin: 7vh 0 22px; }
.hero h1 { font-size: 34px; line-height: 1.12; }
.hero p { color: var(--muted); font-size: 17px; margin: 12px 0 0; }
.lede { color: var(--muted); margin: 6px 0 18px; }
h1.page { font-size: 28px; margin-top: 6px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border-radius: 14px; border: 1px solid var(--em); background: var(--em); color: #fff; font: 600 16px Inter, system-ui, sans-serif; cursor: pointer; padding: 0 18px; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--em); }
.btn.light { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn:disabled { opacity: .55; cursor: default; }
.btn:focus-visible, input:focus, .choice:focus-visible, .link:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.stack { display: grid; gap: 10px; }
.mt { margin-top: auto; padding-top: 18px; }
.link { background: none; border: 0; color: var(--em); text-decoration: underline; font: inherit; cursor: pointer; padding: 10px 0; min-height: 44px; }
.center { text-align: center; }
.small { font-size: 13.5px; color: var(--muted); }

label.f { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input.f { width: 100%; min-height: 52px; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 0 14px; font: 16px Inter, system-ui, sans-serif; color: var(--ink); }
input.code { letter-spacing: 10px; font-size: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.err { color: var(--danger); font-size: 14.5px; min-height: 22px; margin-top: 10px; }
.okmsg { color: var(--em); font-size: 14.5px; min-height: 22px; margin-top: 10px; }

.choices { display: grid; gap: 12px; }
.choice { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px; min-height: 76px; cursor: pointer; font: inherit; color: inherit; }
.choice[aria-pressed="true"] { border-color: var(--em); box-shadow: 0 0 0 1px var(--em) inset; background: var(--cream); }
.choice .ico { width: 46px; height: 46px; border-radius: 14px; background: #eaf1ec; display: grid; place-items: center; font-size: 22px; flex: none; }
.choice b { display: block; font-size: 16.5px; }
.choice span { color: var(--muted); font-size: 14px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card + .card { margin-top: 12px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row .grow { flex: 1; min-width: 0; }
.row .grow b { display: block; }
.row .grow span { color: var(--muted); font-size: 14px; }
.av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; }
.pill { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: #eef3f0; color: var(--em); font-weight: 600; }
.pill.gold { background: #f6efd9; color: var(--gold-t); }
.iconbtn { background: none; border: 1px solid var(--line); border-radius: 12px; min-height: 40px; min-width: 40px; padding: 0 12px; color: var(--em); font: 600 14px Inter, sans-serif; cursor: pointer; }

.banner { background: var(--em); color: #fff; border-radius: var(--r); padding: 16px; margin: 14px 0; }
.banner b { font-family: Fraunces, Georgia, serif; font-size: 18px; font-weight: 600; }
.banner p { margin: 6px 0 12px; color: #d9e9e2; font-size: 14.5px; }
.banner .btn { background: #f3e7c6; color: var(--em-d); border-color: #f3e7c6; min-height: 46px; }

.today h1 { font-size: 26px; }
.switcher { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; }
.switcher button { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 14px 5px 5px; min-height: 44px; font: 600 14px Inter, sans-serif; color: var(--ink); cursor: pointer; white-space: nowrap; }
.switcher button[aria-pressed="true"] { border-color: var(--em); background: var(--cream); }
.switcher .av { width: 32px; height: 32px; font-size: 13px; }
.soon { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 18px; color: var(--muted); text-align: center; margin-top: 12px; }
.tabbar { position: sticky; bottom: 0; margin-top: auto !important; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--line); margin: 18px -20px calc(-28px - var(--safe-b)); padding: 6px 8px calc(6px + var(--safe-b)); }
.tabbar button { background: none; border: 0; font: 600 12.5px Inter, sans-serif; color: var(--muted); min-height: 50px; cursor: pointer; display: grid; place-items: center; gap: 2px; }
.tabbar button[aria-current="page"] { color: var(--em); }
.tabbar .ti { font-size: 20px; line-height: 1; }
