/* Islamic Apps Store — Iznik glaze theme.  See DESIGN.md for the plan. */

@font-face {
  font-family: "Anek Bangla";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 125%;
  src: url(../fonts/anek-bangla-bengali-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: "Anek Bangla";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 125%;
  src: url(../fonts/anek-bangla-latin-ext-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Anek Bangla";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 125%;
  src: url(../fonts/anek-bangla-latin-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/amiri-arabic-400-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/amiri-arabic-700-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

:root {
  --bg: #f5f7fc;
  --surface: #ffffff;
  --surface-2: #eef2fa;
  --line: #dce3f0;
  --ink: #14213f;
  --ink-2: #47536f;
  --ink-3: #6b7592;
  --cobalt: #1d3f8f;
  --cobalt-ink: #1d3f8f;
  --cobalt-btn: #1d3f8f;
  --cobalt-btn-hover: #17337a;
  --turq: #0e8487;
  --turq-soft: #dff2f1;
  --gold: #b8891f;
  --coral: #c2493d;
  --grout: #c3cde2;
  --glaze: #fbfcff;
  --focus: #2c6be0;
  --hero-wash: #e8eefb;
  --radius-card: 16px;
  --radius-sheet: 24px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1430;
    --surface: #111d3f;
    --surface-2: #17264f;
    --line: #233462;
    --ink: #e9eef9;
    --ink-2: #b6c1db;
    --ink-3: #8c99ba;
    --cobalt-ink: #9db7ff;
    --cobalt-btn: #3a63d0;
    --cobalt-btn-hover: #4a72dd;
    --turq: #4cc6c3;
    --turq-soft: #12343f;
    --gold: #e0b64c;
    --coral: #ee7d70;
    --grout: #1b2b57;
    --glaze: #18275a;
    --focus: #8fb2ff;
    --hero-wash: #101c42;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1430;
  --surface: #111d3f;
  --surface-2: #17264f;
  --line: #233462;
  --ink: #e9eef9;
  --ink-2: #b6c1db;
  --ink-3: #8c99ba;
  --cobalt-ink: #9db7ff;
  --cobalt-btn: #3a63d0;
  --cobalt-btn-hover: #4a72dd;
  --turq: #4cc6c3;
  --turq-soft: #12343f;
  --gold: #e0b64c;
  --coral: #ee7d70;
  --grout: #1b2b57;
  --glaze: #18275a;
  --focus: #8fb2ff;
  --hero-wash: #101c42;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Anek Bangla", "Noto Sans Bengali", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.ar {
  font-family: "Amiri", "Noto Naskh Arabic", serif;
  direction: rtl;
}
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--cobalt-btn);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 100;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ── header ───────────────────────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.top.scrolled {
  border-bottom-color: var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
}
.brand-name {
  font-weight: 700;
  font-stretch: 112%;
  font-size: 19px;
  line-height: 1.05;
  color: var(--cobalt-ink);
  white-space: nowrap;
}
.brand-name small {
  display: block;
  font-weight: 500;
  font-stretch: 100%;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.nav {
  display: flex;
  gap: 4px;
}
.nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 500;
}
.nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tbtn {
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
}
.tbtn:hover {
  border-color: var(--cobalt-ink);
  color: var(--ink);
}
.tbtn svg {
  width: 18px;
  height: 18px;
}
.tbtn kbd {
  font: inherit;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 6px;
  color: var(--ink-3);
}
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--surface);
}
.lang-toggle button {
  border: 0;
  background: none;
  border-radius: 999px;
  padding: 4px 11px;
  cursor: pointer;
  color: var(--ink-3);
  font-weight: 600;
  font-size: 14px;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--cobalt-btn);
  color: #fff;
}

/* ── hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(28px, 6vw, 72px) 0 clamp(36px, 6vw, 80px);
  background: linear-gradient(180deg, var(--hero-wash), var(--bg) 85%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.bismillah {
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--turq);
  margin: 0 0 6px;
  text-align: left;
  direction: rtl;
  display: inline-block;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.06;
  font-weight: 760;
  font-stretch: 118%;
  letter-spacing: -0.012em;
  color: var(--cobalt-ink);
  text-wrap: balance;
}
.hero .lede {
  margin: 18px 0 26px;
  font-size: clamp(17px, 1.6vw, 19.5px);
  color: var(--ink-2);
  max-width: 34em;
}
.search {
  position: relative;
  max-width: 640px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 0 10px 0 18px;
  height: 64px;
  transition: border-color 0.15s;
}
.search-box:focus-within {
  border-color: var(--cobalt-ink);
}
.search-box svg {
  width: 22px;
  height: 22px;
  color: var(--ink-3);
  flex: none;
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 18.5px;
  height: 100%;
}
.search-box input::placeholder {
  color: var(--ink-3);
}
.search-box .clear {
  border: 0;
  background: var(--surface-2);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: var(--ink-2);
}
.results {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 6px;
  box-shadow: 0 24px 48px -24px rgba(20, 33, 63, 0.35);
  max-height: min(70vh, 460px);
  overflow: auto;
}
.results a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
}
.results a[aria-selected="true"],
.results a:hover {
  background: var(--surface-2);
}
.results img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}
.results .r-name {
  font-weight: 600;
  line-height: 1.3;
}
.results .r-sub {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.3;
}
.results .r-meta {
  font-size: 13.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.results .r-all {
  display: block;
  text-align: left;
  padding: 10px 12px;
  color: var(--cobalt-ink);
  font-weight: 600;
}
.results .r-none {
  padding: 14px 12px;
  color: var(--ink-2);
}
.suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
}
.suggest span {
  color: var(--ink-3);
  font-size: 15px;
  margin-right: 2px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 15px;
  cursor: pointer;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
}
.chip:hover {
  border-color: var(--turq);
  color: var(--turq);
}
.facts {
  margin: 26px 0 0;
  color: var(--ink-2);
  font-size: 16px;
  max-width: 36em;
}
.facts b {
  color: var(--ink);
  font-weight: 650;
}

/* the mihrab arch tile wall */
.arch {
  position: relative;
  justify-self: end;
  width: min(100%, 470px);
  aspect-ratio: 470 / 560;
  padding: 16px;
  border-radius: 50% 50% 22px 22px / 30% 30% 22px 22px;
  background: linear-gradient(160deg, #2a56c0, #12306f 55%, #0b6e72);
  box-shadow: 0 40px 70px -40px rgba(18, 48, 111, 0.65);
}
.arch::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  border: 2px solid rgba(255, 220, 140, 0.55);
  pointer-events: none;
}
.wall {
  position: relative;
  height: 100%;
  border-radius: 50% 50% 12px 12px / 29% 29% 12px 12px;
  overflow: hidden;
  background: var(--grout);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  align-content: end;
}
.tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--glaze);
  padding: 9%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), inset 0 -3px 0 rgba(20, 33, 63, 0.08);
  transition: transform 0.18s ease;
}
.tile img {
  width: 100%;
  height: 100%;
  border-radius: 22%;
  object-fit: cover;
}
.tile:hover,
.tile:focus-visible {
  transform: translateY(-3px);
  z-index: 2;
}
.tile.star {
  background: radial-gradient(circle at 50% 40%, #234aa8, #142f6e);
  display: grid;
  place-items: center;
  padding: 14%;
}
.tile.star svg {
  width: 100%;
  height: 100%;
}
.sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 46%, rgba(255, 255, 255, 0) 60%);
  transform: translateX(-120%);
}
.loaded .sheen {
  animation: sheen 1.8s 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes sheen {
  to {
    transform: translateX(120%);
  }
}

/* ── sections ─────────────────────────────────────────────────────── */
.section {
  padding: clamp(44px, 7vw, 84px) 0 0;
}
.section h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.12;
  font-weight: 700;
  font-stretch: 114%;
  color: var(--ink);
  letter-spacing: -0.006em;
}
.section .intro {
  margin: 8px 0 0;
  color: var(--ink-2);
  max-width: 40em;
}
.sec-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.sec-head .more {
  color: var(--cobalt-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.sec-head .more:hover {
  text-decoration: underline;
}

/* topics: a catalogue index */
.topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.topic {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  text-align: left;
  width: 100%;
}
.topic:hover .t-name {
  color: var(--turq);
}
.t-name {
  font-weight: 600;
  font-size: 18.5px;
  font-stretch: 104%;
}
.t-name small {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-3);
  font-stretch: 100%;
}
.t-icons {
  display: flex;
}
.t-icons img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 2px solid var(--bg);
  margin-left: -8px;
}
.t-count {
  min-width: 46px;
  text-align: right;
  font-weight: 650;
  color: var(--cobalt-ink);
  font-size: 18px;
}

/* rail */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 172px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 18px;
  scrollbar-width: thin;
}
.rail a {
  scroll-snap-align: start;
  text-decoration: none;
  display: block;
}
.rail img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 26%;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.rail .rn {
  margin-top: 10px;
  font-weight: 600;
  line-height: 1.3;
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rail .rm {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 2px;
}
.rank {
  color: var(--gold);
  font-weight: 700;
}

/* catalogue toolbar */
.toolbar {
  position: sticky;
  top: 68px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.seg {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 3px;
}
.seg button {
  border: 0;
  background: none;
  padding: 6px 13px;
  border-radius: 9px;
  cursor: pointer;
  color: var(--ink-2);
  font-weight: 550;
  font-size: 15px;
}
.seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 33, 63, 0.12);
}
.select {
  position: relative;
}
.select select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  height: 40px;
  padding: 0 34px 0 12px;
  font-size: 15px;
  cursor: pointer;
  color: var(--ink);
}
.select::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  pointer-events: none;
}
.mine {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink-2);
}
.mine svg {
  width: 17px;
  height: 17px;
}
.mine[aria-pressed="true"] {
  border-color: var(--coral);
  color: var(--coral);
}
.count {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 15px;
}
.active-q {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--turq-soft);
  color: var(--turq);
  border-radius: 999px;
  padding: 4px 6px 4px 12px;
  font-size: 15px;
  font-weight: 600;
}
.active-q button {
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
}

/* cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 12px;
}
.card {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 14px 14px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  text-decoration: none;
  transition: border-color 0.15s;
}
.card:hover {
  border-color: color-mix(in srgb, var(--cobalt-ink) 55%, var(--line));
}
.card img {
  width: 68px;
  height: 68px;
  border-radius: 17px;
  background: var(--surface-2);
}
.c-name {
  font-weight: 620;
  font-size: 17px;
  line-height: 1.3;
  padding-right: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.c-cat {
  color: var(--turq);
  font-size: 14.5px;
  font-weight: 550;
  margin-top: 3px;
  line-height: 1.3;
}
.c-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-3);
  font-stretch: 94%;
}
.c-meta .st {
  color: var(--gold);
  font-weight: 650;
}
.c-meta .lg {
  color: var(--cobalt-ink);
  font-weight: 600;
}
.heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-3);
}
.heart:hover {
  background: var(--surface-2);
}
.heart svg {
  width: 19px;
  height: 19px;
}
.heart[aria-pressed="true"] {
  color: var(--coral);
}
.heart[aria-pressed="true"] svg path {
  fill: currentColor;
}
.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  padding: 34px 22px;
  text-align: left;
  color: var(--ink-2);
}
.empty b {
  display: block;
  color: var(--ink);
  font-size: 19px;
  margin-bottom: 4px;
}
.empty button {
  margin-top: 12px;
}

/* reviews */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 14px;
}
.quote {
  margin: 0;
  padding: 20px 20px 16px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quote blockquote {
  margin: 0;
  font-size: 16.5px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.more-row {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}
.more-row .btn[hidden] {
  display: none;
}
main:has(> .ios:last-child) + .foot {
  margin-top: 0;
}
main > .ios:last-child {
  border-bottom: 0;
  background: var(--surface);
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-size: 14.5px;
  color: var(--ink-3);
}
.quote figcaption img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.quote figcaption b {
  color: var(--ink-2);
  font-weight: 600;
}
.stars5 {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 15px;
}

/* iPhone note */
.ios {
  margin-top: clamp(44px, 7vw, 84px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.ios .wrap {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 18px;
  align-items: center;
}
.ios img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}
.ios h3 {
  margin: 0;
  font-size: 21px;
  font-stretch: 108%;
  font-weight: 680;
}
.ios p {
  margin: 2px 0 0;
  color: var(--ink-2);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--cobalt-btn);
  color: #fff;
  font-weight: 650;
  font-size: 16.5px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--cobalt-btn-hover);
}
.btn svg {
  width: 20px;
  height: 20px;
}
.btn.ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover {
  border-color: var(--cobalt-ink);
}
.btn.small {
  height: 40px;
  font-size: 15px;
  padding: 0 14px;
}

/* footer */
.foot {
  margin-top: clamp(48px, 8vw, 96px);
  background: #0f1d44;
  color: #c9d3ec;
  padding: 48px 0 28px;
}
.foot .wrap {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}
.foot h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.foot a {
  color: #c9d3ec;
  text-decoration: none;
}
.foot a:hover {
  color: #fff;
  text-decoration: underline;
}
.foot .brand-name {
  color: #fff;
}
.foot .brand-name small {
  color: #9fb0d8;
}
.foot .about {
  margin: 12px 0 0;
  max-width: 30em;
  font-size: 15.5px;
}
.foot .verse {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  justify-content: space-between;
  font-size: 14.5px;
  color: #9fb0d8;
}
.foot .verse .ar {
  font-size: 22px;
  color: #e8cf8c;
}

/* ── app sheet ────────────────────────────────────────────────────── */
dialog.sheet {
  border: 0;
  padding: 0;
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: min(560px, 100vw);
  max-width: 100vw;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sheet) 0 0 var(--radius-sheet);
  box-shadow: -30px 0 60px -30px rgba(10, 20, 50, 0.45);
  overflow: hidden;
}
dialog.sheet::backdrop {
  background: rgba(9, 18, 44, 0.45);
  backdrop-filter: blur(2px);
}
dialog.sheet[open] {
  animation: slidein 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes slidein {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}
.sh {
  height: 100%;
  overflow-y: auto;
  padding: 18px 22px 40px;
  overscroll-behavior: contain;
}
.sh-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.sh-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.sh-close svg {
  width: 18px;
  height: 18px;
}
.sh-head {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  margin: 6px 0 16px;
}
.sh-head img {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  border: 1px solid var(--line);
}
.sh-head h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  font-stretch: 106%;
  font-weight: 700;
}
.sh-head .sub {
  color: var(--ink-3);
  font-size: 15px;
  margin-top: 4px;
}
.sh-head .cat {
  color: var(--turq);
  font-weight: 600;
  font-size: 15px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 16px;
}
.stats div {
  padding: 10px 8px;
  text-align: center;
}
.stats div + div {
  border-left: 1px solid var(--line);
}
.stats b {
  display: block;
  font-size: 18px;
  font-weight: 700;
}
.stats span {
  font-size: 13.5px;
  color: var(--ink-3);
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.actions .btn:first-child {
  flex: 1 1 220px;
}
.qr {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  background: var(--surface-2);
  border-radius: 16px;
}
.qr .code {
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  width: 112px;
  height: 112px;
}
.qr .code svg {
  width: 100%;
  height: 100%;
}
.qr p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}
.qr b {
  display: block;
  color: var(--ink);
  font-size: 16.5px;
}
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 150px;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 0 10px;
  scroll-snap-type: x mandatory;
}
.shots img {
  width: 150px;
  height: 266px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  scroll-snap-align: start;
}
.sh h3 {
  font-size: 18px;
  margin: 18px 0 8px;
  font-weight: 680;
  font-stretch: 106%;
}
.desc {
  white-space: pre-line;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.desc.clamped {
  max-height: 12.5em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.linkbtn {
  border: 0;
  background: none;
  color: var(--cobalt-ink);
  font-weight: 650;
  cursor: pointer;
  padding: 6px 0;
}
.facts-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  margin: 0;
  font-size: 15.5px;
}
.facts-list dt {
  color: var(--ink-3);
}
.facts-list dd {
  margin: 0;
}
.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.related a {
  text-decoration: none;
  font-size: 14.5px;
  line-height: 1.3;
}
.related img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 24%;
  border: 1px solid var(--line);
  margin-bottom: 6px;
}
.sk {
  background: var(--surface-2);
  border-radius: 10px;
  height: 14px;
  margin: 8px 0;
}
.sh-cat {
  color: var(--turq);
  font-weight: 600;
  font-size: 15px;
}
.heart-btn[aria-pressed="true"] {
  color: var(--coral);
  border-color: color-mix(in srgb, var(--coral) 45%, var(--line));
}
.heart-btn[aria-pressed="true"] svg path {
  fill: currentColor;
}
.cw {
  position: relative;
  display: grid;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 99;
  font-size: 15px;
}
#toast[hidden] {
  display: none;
}

/* ── static pages (app, support, privacy) ─────────────────────────── */
.page-hero {
  padding: clamp(26px, 5vw, 56px) 0 26px;
  background: linear-gradient(180deg, var(--hero-wash), var(--bg));
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.1;
  font-weight: 740;
  font-stretch: 118%;
  color: var(--cobalt-ink);
}
.page-hero p {
  margin: 10px 0 0;
  color: var(--ink-2);
  max-width: 40em;
}
.crumbs {
  font-size: 14.5px;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.crumbs a {
  color: var(--ink-3);
}
.app-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.app-page .sh-head {
  grid-template-columns: 120px 1fr;
}
.app-page .sh-head img {
  width: 120px;
  height: 120px;
  border-radius: 28px;
}
.app-page .sh-head h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  margin: 0;
  font-stretch: 110%;
}
.aside {
  position: sticky;
  top: 88px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: var(--surface);
}
.prose > * {
  max-width: 46em;
}
.page-hero + .section {
  padding-top: clamp(24px, 4vw, 40px);
}
.prose > h2:first-child,
.prose > div > h2:first-child {
  margin-top: 0.4em;
}
.prose h2 {
  font-size: 1.45rem;
  margin: 2em 0 0.4em;
  font-stretch: 110%;
  line-height: 1.25;
}
.prose h3 {
  font-size: 1.15rem;
  margin: 1.4em 0 0.3em;
}
.prose p,
.prose li {
  color: var(--ink-2);
}
.prose a {
  color: var(--cobalt-ink);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 620;
  padding: 12px 0;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--ink-3);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  margin: 0 0 14px;
  color: var(--ink-2);
}
.contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  max-width: 900px;
}
.contact a:first-child {
  grid-column: span 2;
}
@media (max-width: 760px) {
  .contact {
    grid-template-columns: 1fr;
  }
  .contact a:first-child {
    grid-column: auto;
  }
}
.contact a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  background: var(--surface);
}
.contact a:hover {
  border-color: var(--cobalt-ink);
}
.contact .ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--turq-soft);
  color: var(--turq);
}
.contact .ic svg {
  width: 21px;
  height: 21px;
}
.contact b {
  display: block;
  line-height: 1.25;
}
.contact span {
  font-size: 14.5px;
  color: var(--ink-3);
}
.policy-for {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}
.policy-for img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}
[data-lang="bn"] .only-en,
[data-lang="en"] .only-bn {
  display: none;
}

/* ── responsive ───────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .arch {
    justify-self: center;
    width: min(100%, 420px);
  }
  .app-page {
    grid-template-columns: 1fr;
  }
  .aside {
    position: static;
  }
  .foot .wrap {
    grid-template-columns: 1fr 1fr;
  }
  .foot .wrap > :first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .nav {
    display: none;
  }
  .tbtn .lbl,
  .tbtn kbd {
    display: none;
  }
  .topics {
    grid-template-columns: 1fr;
  }
  .toolbar {
    top: 68px;
    gap: 8px;
  }
  .count {
    width: 100%;
    margin: 0;
    order: 9;
  }
  .ios .wrap {
    grid-template-columns: 60px 1fr;
  }
  .ios img {
    width: 60px;
    height: 60px;
  }
  .ios .btn {
    grid-column: 1 / -1;
  }
  dialog.sheet {
    margin: auto 0 0;
    width: 100vw;
    height: 92dvh;
    border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  }
  dialog.sheet[open] {
    animation: slideup 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .qr {
    display: none;
  }
  .actions .btn {
    flex: 1 1 0;
  }
  .actions .btn:first-child {
    flex: 1 1 100%;
  }
}
@keyframes slideup {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}
@media (max-width: 420px) {
  .top .wrap {
    gap: 10px;
  }
  .brand {
    min-width: 0;
    gap: 8px;
  }
  .brand .brand-mark {
    width: 34px;
    height: 34px;
    flex: none;
  }
  .brand-name {
    font-size: 16.5px;
    font-stretch: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tools {
    gap: 5px;
  }
  .tbtn {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
  }
  body:not([data-page]) .tbtn[data-action="search"] {
    display: none;
  }
  .brand-name small {
    display: none;
  }
  .search-box {
    height: 58px;
  }
  .card {
    grid-template-columns: 58px 1fr;
  }
  .card img {
    width: 58px;
    height: 58px;
    border-radius: 15px;
  }
  .related {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .top,
  .foot,
  .toolbar {
    display: none;
  }
}
