/* Noor website. "Mist & Graphite", the app's own palette (src/theme/tokens.ts): black, #808080 and white with a
   slight cool bias. One spacing scale (4 · 8 · 12 · 16 · 24 · 40 · 64 · 104) and a golden-ratio type scale. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --mist: #f3f5f7;
  --mist-2: #e9edf1;
  --ink: #16181c;
  --on-ink: #ffffff;
  --text: #16181c;
  --soft: #474c55;
  --muted: #5f656d;
  --quiet: #8a9099;
  --line: rgba(22, 24, 28, 0.09);
  --line-strong: rgba(22, 24, 28, 0.16);
  --guide: rgba(22, 24, 28, 0.12);
  --card: #ffffff;
  --radius: 28px;
  --radius-s: 16px;
  --wrap: 1120px;
  --sans: 'Geist', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bangla: 'Hind Siliguri', 'Geist', system-ui, sans-serif;
  --arabic: 'Amiri', 'Traditional Arabic', serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121418;
    --mist: #1b1e23;
    --mist-2: #23272d;
    --ink: #f1f2f4;
    --on-ink: #16181c;
    --text: #f1f2f4;
    --soft: #c3c7cd;
    --muted: #a1a7af;
    --quiet: #7d838c;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.18);
    --guide: rgba(255, 255, 255, 0.1);
    --card: #1b1e23;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang='bn'] body { font-family: var(--bangla); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--ink); color: var(--on-ink); padding: 8px 12px; border-radius: 10px; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.3px; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a { text-decoration: none; color: var(--soft); font-size: 15px; padding: 10px 12px; border-radius: 999px; }
.nav > a:hover { color: var(--text); background: var(--mist); }
.btn-ink { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--on-ink) !important; text-decoration: none; font-size: 15px; font-weight: 500; }
.btn-ink:hover { opacity: 0.88; background: var(--ink) !important; }
.btn-ink svg { width: 16px; height: 16px; }

/* Language menu: one button, tap to open, pick a language. */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 500 14px/1 var(--sans); cursor: pointer;
}
html[lang='bn'] .lang-btn { font-family: var(--bangla); }
.lang-btn:hover { background: var(--mist); }
.lang-btn svg { width: 16px; height: 16px; flex: none; }
.lang-btn .chev { width: 12px; height: 12px; transition: transform 0.2s; opacity: 0.7; }
.lang-btn[aria-expanded='true'] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 196px; margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(22, 24, 28, 0.35);
}
.lang-menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px;
  border: 0; border-radius: 12px; background: transparent; color: var(--text); font: 500 15px/1.2 var(--sans); text-align: left; cursor: pointer;
}
.lang-menu button[lang='bn'] { font-family: var(--bangla); }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--mist); outline: none; }
.lang-menu .tick { width: 16px; height: 16px; opacity: 0; }
.lang-menu button[aria-checked='true'] .tick { opacity: 1; }
.lang-menu small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; font-family: var(--sans); }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; letter-spacing: 0.4px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--mist); color: var(--soft); font-size: 13.5px; font-weight: 500; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -0.035em; }
h1 .quiet, h2 .quiet { color: var(--quiet); }
h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 21px; line-height: 1.3; }
html[lang='bn'] h1, html[lang='bn'] h2, html[lang='bn'] h3 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.62; color: var(--muted); max-width: 34em; }
.soft { color: var(--soft); }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.guides { position: relative; }
.guides::before, .guides::after { content: ''; position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--guide); }
.guides::before { left: 0; }
.guides::after { right: 0; }
.hero { padding: 72px 0 40px; }
.hero .inner { padding: 24px 40px 40px; display: grid; gap: 24px; justify-items: start; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px; border-radius: 14px;
  background: var(--ink); color: var(--on-ink); text-decoration: none; border: 1px solid var(--ink);
}
.store:hover { opacity: 0.9; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1; font-family: var(--sans); }
.store small { font-size: 10.5px; font-weight: 500; letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 4px; }
.store b { font-size: 19px; font-weight: 600; letter-spacing: -0.2px; }
.store.soon { background: transparent; color: var(--muted); border-color: var(--line-strong); cursor: default; }
.store.soon:hover { opacity: 1; }

/* Showcase panels: a soft dune landscape in the app's greys, a phone, a caption and a counter. */
.panel {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--tone, #3a4150);
  min-height: 560px; display: grid; place-items: center; padding: 64px 24px 72px; isolation: isolate;
}
.panel > .dunes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.panel .cap { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; justify-content: space-between; gap: 16px; color: rgba(255, 255, 255, 0.92); font-size: 13.5px; font-weight: 500; }
.panel .cap span:last-child { font-variant-numeric: tabular-nums; opacity: 0.8; }
.t-dusk { --tone: #4b4f5f; --d1: #6f7183; --d2: #585b6c; --d3: #434656; --d4: #34374a; }
.t-graphite { --tone: #2c3036; --d1: #4a5058; --d2: #3a3f46; --d3: #2d3137; --d4: #22252a; }
.t-mist { --tone: #6f7c88; --d1: #9aa5af; --d2: #85919c; --d3: #707c88; --d4: #5c6773; }
.t-sand { --tone: #6e6459; --d1: #a39684; --d2: #8a7d6d; --d3: #72675a; --d4: #5b5248; }
.t-night { --tone: #262a3a; --d1: #474b63; --d2: #383c52; --d3: #2c3043; --d4: #212435; }

.phone {
  position: relative; width: min(280px, 64vw); aspect-ratio: 9 / 19.5; border-radius: 44px; padding: 9px;
  background: linear-gradient(145deg, #3b3f46, #0f1114 42%, #2b2f35); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}
.phone::after { content: ''; position: absolute; top: 20px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: #0b0c0e; box-shadow: inset 0 0 0 2px #1b1d21; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 36px; background: #e4e8ec; }

/* ---------- Sections ---------- */
section { padding: 104px 0 0; }
.head { display: grid; gap: 16px; margin-bottom: 40px; max-width: 880px; }

/* Numbered features: the list stays beside the panels on wide screens. */
.features { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr); gap: 40px; align-items: start; }
.features .panels { display: grid; gap: 24px; }
.features .list { position: sticky; top: 112px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.features .list li { border-bottom: 1px solid var(--line); }
.features .list a { display: grid; grid-template-columns: 40px 1fr; gap: 4px 0; padding: 20px 0; text-decoration: none; color: var(--quiet); }
.features .list .n { font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 4px; }
.features .list .t { font-size: 19px; font-weight: 500; letter-spacing: -0.2px; }
.features .list .d { grid-column: 2; color: var(--muted); font-size: 15.5px; line-height: 1.6; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.35s ease, opacity 0.35s ease; }
.features .list li.on a { color: var(--text); }
.features .list li.on .d { max-height: 220px; opacity: 1; padding-top: 6px; }

/* Accuracy: three quiet illustrations instead of numbers. */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--mist); border-radius: var(--radius); padding: 24px 24px 28px; display: grid; gap: 12px; align-content: start; }
.tile .art { height: 148px; border-radius: 20px; background: var(--card); display: grid; place-items: center; margin-bottom: 8px; }
.tile .art svg { width: 168px; height: 112px; color: var(--ink); }
.tile p { color: var(--muted); font-size: 15.5px; }

/* The name. */
.verse { background: var(--mist); border-radius: var(--radius); padding: 64px 40px; text-align: center; display: grid; gap: 24px; justify-items: center; }
.arabic { font-family: var(--arabic); font-size: clamp(28px, 3.6vw, 40px); line-height: 1.9; direction: rtl; color: var(--text); }
.verse .tr { max-width: 36em; color: var(--soft); font-size: 18px; }
.verse .note { color: var(--muted); font-size: 15px; }

/* Promise. */
.promise { background: var(--ink); color: var(--on-ink); border-radius: var(--radius); padding: 64px 40px; display: grid; gap: 16px; }
.promise h2 { color: var(--on-ink); }
.promise h2 .quiet { color: color-mix(in srgb, var(--on-ink) 52%, transparent); }
.promise p { color: color-mix(in srgb, var(--on-ink) 72%, transparent); max-width: 40em; font-size: 18px; }
.promise .facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.promise .facts > span { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--on-ink) 22%, transparent); font-size: 14px; }
.promise .facts svg { width: 16px; height: 16px; }

/* Download card with the QR code. */
.get { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; background: var(--mist); border-radius: var(--radius); padding: 40px; }
.qr { width: 236px; background: #ffffff; border-radius: 24px; padding: 20px; display: grid; gap: 12px; justify-items: center; text-align: center; border: 1px solid var(--line); }
.qr svg { width: 196px; height: 196px; }
.qr p { color: #5f656d; font-size: 13px; line-height: 1.45; }

/* ---------- Footer ---------- */
footer { padding: 104px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; color: var(--muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
footer a { text-decoration: none; color: var(--muted); }
footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.copy a { color: var(--soft); }

/* ---------- Documents (privacy, terms, account deletion) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 0; }
.doc article { display: grid; gap: 16px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin: 8px 0 8px; }
.doc h2 { font-size: 23px; letter-spacing: -0.01em; margin-top: 24px; }
.doc p, .doc li { color: var(--soft); line-height: 1.7; }
.doc ul { padding-left: 22px; margin: 0; display: grid; gap: 10px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { text-underline-offset: 3px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--soft); }
.doc .fallback { background: var(--mist); border-radius: var(--radius-s); padding: 12px 16px; color: var(--soft); font-size: 15px; }
.doc .card, .doc .callout { background: var(--mist); border-radius: var(--radius-s); padding: 16px 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .features .list { display: none; }
  .trio { grid-template-columns: 1fr; }
  .get { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .get .stores { justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top .wrap { height: 64px; gap: 8px; }
  .nav > a.hide-sm, .btn-ink .label { display: none; }
  .btn-ink { width: 40px; padding: 0; justify-content: center; }
  .lang-btn .name { display: none; }
  .hero { padding-top: 40px; }
  .hero .inner { padding: 16px 16px 24px; }
  .guides::before, .guides::after { display: none; }
  section { padding-top: 72px; }
  .panel { min-height: 0; padding: 48px 16px 64px; border-radius: 24px; }
  .verse, .promise { padding: 48px 24px; border-radius: 24px; }
  .get { padding: 24px; border-radius: 24px; }
  .store { height: 50px; }
  footer { padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .features .list .d, .lang-btn .chev { transition: none; }
}
