@charset "utf-8";

/* ==========================================================================
   I'm Muslim — landing page
   Every value below is ported from src/theme/tokens.ts and src/theme/sky.ts.
   One stylesheet. No build step. No framework.
   ========================================================================== */

/* --------------------------------------------------------------- tokens */

:root {
  /* emerald — the brand's spine */
  --em-950: #021812;
  --em-900: #042a20;
  --em-800: #063527;
  --em-700: #07402f;
  --em-600: #0b5138;
  --em-500: #0e5c40;
  --em-400: #1c7a53;
  --em-300: #2f9a6b;
  --em-200: #8fc9ae;
  --em-100: #d7ebe1;
  --em-50: #e6f0ea;

  /* warm gold — accent only, never a background for body text */
  --gold-800: #6e5417;
  --gold-700: #8a6a1e;
  --gold-600: #9c7420;
  --gold-500: #c8922e;
  --gold-400: #e8be68;
  --gold-300: #f4dca2;
  --gold-200: #faf0dc;

  /* paper — the light ground */
  --paper-0: #ffffff;
  --paper-50: #fdfcfa;
  --paper-100: #faf8f4;
  --paper-200: #f4f1ea;
  --paper-300: #ede7db;
  --paper-400: #e2dcce;
  --paper-500: #d4ccba;

  /* ink — text and strokes on paper */
  --ink-900: #0b1512;
  --ink-800: #15241d;
  --ink-700: #2e3a34;
  --ink-600: #4a5a52;
  --ink-500: #5c6a62;
  --ink-400: #8c968f;
  --ink-300: #a3aba5;
  --ink-200: #c2c9c4;

  /* carbon — the dark ground */
  --carbon-950: #050a08;
  --carbon-900: #060d0b;
  --carbon-800: #0e1714;
  --carbon-700: #17241f;
  --carbon-600: #1e2e27;
  --carbon-500: #2a3b34;
  --carbon-400: #3c5047;

  /* spacing — 4px base scale */
  --s-xxs: 2px;
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-base: 16px;
  --s-lg: 20px;
  --s-xl: 24px;
  --s-xxl: 32px;
  --s-xxxl: 40px;
  --s-huge: 56px;

  /* radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-xxl: 28px;
  --r-sheet: 32px;
  --r-pill: 999px;

  /* type */
  --font-sans: 'Inter Tight', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-bn: 'Hind Siliguri', 'Nirmala UI', system-ui, sans-serif;
  --font-ar: 'Amiri', 'Traditional Arabic', serif;

  /* elevation — three levels only, tight and low opacity */
  --e-low: 0 2px 8px rgba(26, 18, 6, 0.05);
  --e-mid: 0 6px 18px rgba(26, 18, 6, 0.09);
  --e-high: 0 16px 36px rgba(26, 18, 6, 0.18);

  /* motion */
  --m-fast: 160ms;
  --m-base: 240ms;
  --m-slow: 380ms;
  --m-ambient: 1200ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* layout */
  --gutter: clamp(20px, 5vw, 48px);
  --measure: 1152px;
  --hairline: rgba(11, 21, 18, 0.1);

  /* surfaces — light by default */
  --bg: var(--paper-100);
  --bg-raised: var(--paper-0);
  --bg-sunken: var(--paper-200);
  --fg: var(--ink-900);
  --fg-muted: var(--ink-600);
  --fg-faint: var(--ink-500);
  --rule: var(--paper-400);
  --accent: var(--em-500);
  --accent-ink: var(--em-700);
  --focus: var(--em-500);

  /* living sky — fajr is the no-JavaScript default: dawn, the first light */
  --sky: linear-gradient(
    to bottom,
    #071326 0%,
    #13304b 30%,
    #2a5c66 58%,
    #5e8a74 82%,
    #c9884a 100%
  );
  --sky-glow: #e0a058;
  --sky-glow-o: 0.42;
  --sky-star-o: 0.3;
  --sky-front: #04110e;
  --sky-back: #0c2a28;
  --sky-on: #ffffff;
  --sky-on-muted: rgba(255, 255, 255, 0.76);
  --sky-accent: #f0c98e;
}

/* the seven other phases, swapped by app.js from the visitor's own clock */

[data-sky='lastThird'] {
  --sky: linear-gradient(to bottom, #01090a 0%, #02140f 40%, #041e17 74%, #06291f 100%);
  --sky-glow: #7fa8c9;
  --sky-glow-o: 0.1;
  --sky-star-o: 1;
  --sky-front: #000807;
  --sky-back: #031b14;
  --sky-on-muted: rgba(255, 255, 255, 0.72);
  --sky-accent: #bfd4e8;
}

[data-sky='sunrise'] {
  --sky: linear-gradient(
    to bottom,
    #0b3f4e 0%,
    #176273 28%,
    #2e8e86 56%,
    #7cbca4 82%,
    #e6c182 100%
  );
  --sky-glow: #f2ce8c;
  --sky-glow-o: 0.5;
  --sky-star-o: 0;
  --sky-front: #062018;
  --sky-back: #114038;
  --sky-on-muted: rgba(255, 255, 255, 0.8);
  --sky-accent: #ffe7b8;
}

[data-sky='forenoon'] {
  --sky: linear-gradient(to bottom, #06433e 0%, #0b6459 34%, #148c78 68%, #49b396 100%);
  --sky-glow: #d7f0e2;
  --sky-glow-o: 0.3;
  --sky-star-o: 0;
  --sky-front: #04231b;
  --sky-back: #0c4536;
  --sky-on-muted: rgba(255, 255, 255, 0.82);
  --sky-accent: #c8ebd8;
}

[data-sky='dhuhr'] {
  --sky: linear-gradient(to bottom, #074b45 0%, #0c7064 32%, #169c83 66%, #56c2a2 100%);
  --sky-glow: #ffffff;
  --sky-glow-o: 0.26;
  --sky-star-o: 0;
  --sky-front: #042820;
  --sky-back: #0d4d3c;
  --sky-on-muted: rgba(255, 255, 255, 0.84);
  --sky-accent: #fff3d4;
}

[data-sky='asr'] {
  --sky: linear-gradient(
    to bottom,
    #063228 0%,
    #0c4b36 26%,
    #15694a 52%,
    #2f8f5d 80%,
    #d9a94e 100%
  );
  --sky-glow: #e8be68;
  --sky-glow-o: 0.55;
  --sky-star-o: 0;
  --sky-front: #031b14;
  --sky-back: #0a3a2c;
  --sky-on-muted: rgba(255, 255, 255, 0.8);
  --sky-accent: #f7e0a8;
}

[data-sky='maghrib'] {
  --sky: linear-gradient(
    to bottom,
    #17121f 0%,
    #361a26 24%,
    #6b2e2a 50%,
    #a8512c 78%,
    #e09149 100%
  );
  --sky-glow: #f0a55d;
  --sky-glow-o: 0.6;
  --sky-star-o: 0.16;
  --sky-front: #0c0a10;
  --sky-back: #2a1620;
  --sky-on-muted: rgba(255, 255, 255, 0.78);
  --sky-accent: #ffd9a0;
}

[data-sky='isha'] {
  --sky: linear-gradient(
    to bottom,
    #021812 0%,
    #042a20 30%,
    #07402f 58%,
    #0e5c40 82%,
    #1c7a53 100%
  );
  --sky-glow: #e8be68;
  --sky-glow-o: 0.38;
  --sky-star-o: 0.78;
  --sky-front: #01120c;
  --sky-back: #063527;
  --sky-on-muted: rgba(255, 255, 255, 0.76);
  --sky-accent: #e8be68;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--carbon-900);
    --bg-raised: var(--carbon-800);
    --bg-sunken: var(--carbon-950);
    --fg: var(--paper-100);
    --fg-muted: #b3beb7;
    --fg-faint: #9aa79e;
    --rule: var(--carbon-600);
    --hairline: rgba(255, 255, 255, 0.11);
    --accent: var(--em-300);
    --accent-ink: var(--em-200);
    --focus: var(--gold-400);
    --e-low: 0 2px 8px rgba(0, 0, 0, 0.3);
    --e-mid: 0 6px 18px rgba(0, 0, 0, 0.38);
    --e-high: 0 16px 36px rgba(0, 0, 0, 0.5);
  }
}

/* ----------------------------------------------------------------- reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  letter-spacing: 0;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

html[lang='bn'] body {
  font-family: var(--font-bn);
  font-size: 15px;
  line-height: 25px; /* Bangla needs ~8% more leading than Latin */
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.sky :focus-visible,
.footer :focus-visible {
  outline-color: var(--gold-400);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--s-base);
  top: -64px;
  z-index: 10;
  padding: var(--s-md) var(--s-base);
  background: var(--paper-0);
  color: var(--ink-900);
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--m-fast) var(--ease);
}

.skip:focus {
  top: var(--s-base);
}

/* ------------------------------------------------------------- typography */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(31px, 5.1vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.4px;
}

html[lang='bn'] h1 {
  font-size: clamp(27px, 4.4vw, 44px);
  line-height: 1.3;
  letter-spacing: -0.4px;
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.14;
  letter-spacing: -0.7px;
}

html[lang='bn'] h2 {
  font-size: clamp(22px, 2.7vw, 30px);
  line-height: 1.34;
  letter-spacing: -0.2px;
}

h3 {
  font-size: 17px;
  line-height: 23px;
  letter-spacing: -0.1px;
}

html[lang='bn'] h3 {
  font-size: 16.5px;
  line-height: 24px;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.lede {
  font-size: clamp(16.5px, 1.45vw, 19px);
  line-height: 1.58;
  letter-spacing: -0.1px;
}

html[lang='bn'] .lede {
  line-height: 1.76;
  letter-spacing: 0;
}

.eyebrow {
  font-size: 10px;
  line-height: 13px;
  letter-spacing: 1.8px;
  font-weight: 600;
  text-transform: uppercase;
}

html[lang='bn'] .eyebrow {
  font-size: 11px;
  line-height: 15px;
  letter-spacing: 0.6px;
  text-transform: none;
}

.micro {
  font-size: 11px;
  line-height: 15px;
  letter-spacing: 0.2px;
  font-weight: 500;
}

html[lang='bn'] .micro {
  font-size: 11.5px;
  line-height: 17px;
  letter-spacing: 0;
}

.caption {
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.1px;
}

html[lang='bn'] .caption {
  font-size: 13.5px;
  line-height: 21px;
  letter-spacing: 0;
}

.ar {
  font-family: var(--font-ar);
  direction: rtl;
  unicode-bidi: isolate;
}

/* ----------------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(48px, 7vw, 88px);
}

.section--sunken {
  background: var(--bg-sunken);
}

.section-head {
  max-width: 34em;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head p {
  margin-top: var(--s-md);
  color: var(--fg-muted);
}

/* icons: 24px grid, one stroke weight */

.ico {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico--solid {
  fill: currentColor;
  stroke: none;
}

.ico--20 {
  width: 20px;
  height: 20px;
}

/* icons used inside the phone mock, where the <use> element carries its size */
.ui-ico use {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui-ico use:nth-of-type(1) {
  stroke: #0b5138;
}

.ui-ico use:nth-of-type(n + 2) {
  stroke: #8c968f;
}

/* ------------------------------------------------------------------- sky */

.sky {
  position: relative;
  isolation: isolate;
  color: var(--sky-on);
  background: var(--sky);
  transition: background var(--m-ambient) linear;
}

.sky-layers {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.sky-stars {
  position: absolute;
  inset: 0 0 32% 0;
  width: 100%;
  height: 68%;
  opacity: var(--sky-star-o);
  transition: opacity var(--m-ambient) linear;
}

.sky-glow {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 150%;
  max-width: 1800px;
  aspect-ratio: 3 / 1;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at 50% 100%,
    var(--sky-glow) 0%,
    rgba(0, 0, 0, 0) 68%
  );
  opacity: var(--sky-glow-o);
  transition:
    opacity var(--m-ambient) linear,
    background var(--m-ambient) linear;
}

/* Dusk on the lower band. It gives the skyline depth on the bright phases and
   keeps the text that sits over the horizon above 4.5:1 in all eight of them. */
.sky-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54%;
  background: linear-gradient(
    to bottom,
    rgba(1, 12, 9, 0) 0%,
    rgba(1, 12, 9, 0.3) 58%,
    rgba(1, 12, 9, 0.5) 100%
  );
}

.sky-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(130px, 19vw, 230px);
}

.sky-skyline .back {
  fill: var(--sky-back);
  transition: fill var(--m-ambient) linear;
}

.sky-skyline .front {
  fill: var(--sky-front);
  transition: fill var(--m-ambient) linear;
}

/* the scrim that guarantees text contrast in every one of the eight phases */
.sky::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    102deg,
    rgba(1, 12, 9, 0.8) 0%,
    rgba(1, 12, 9, 0.58) 36%,
    rgba(1, 12, 9, 0.12) 66%,
    rgba(1, 12, 9, 0) 82%
  );
}

@media (max-width: 899px) {
  .sky::after {
    background: linear-gradient(
      182deg,
      rgba(1, 12, 9, 0.72) 0%,
      rgba(1, 12, 9, 0.52) 46%,
      rgba(1, 12, 9, 0.2) 78%,
      rgba(1, 12, 9, 0) 100%
    );
  }
}

/* ---------------------------------------------------------------- header */

.masthead {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-base);
  padding-block: var(--s-lg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-md);
  color: var(--sky-on);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.brand svg {
  width: 30px;
  height: 30px;
}

.brand .mark-star {
  fill: var(--sky-accent);
  transition: fill var(--m-ambient) linear;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  min-height: 44px;
  padding: var(--s-sm) var(--s-base);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-pill);
  color: var(--sky-on);
  background: rgba(1, 12, 9, 0.24);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.lang:hover {
  border-color: rgba(255, 255, 255, 0.52);
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  padding-block: clamp(32px, 5vw, 64px) clamp(150px, 21vw, 260px);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    padding-block: clamp(40px, 4vw, 72px) clamp(170px, 20vw, 250px);
    min-height: 74vh;
  }
}

.hero-copy {
  max-width: 34rem;
}

.hero h1 {
  color: var(--sky-on);
}

.hero .lede {
  margin-top: var(--s-xl);
  color: var(--sky-on-muted);
  max-width: 30rem;
}

.hero-aside {
  margin-top: var(--s-xl);
  padding-top: var(--s-base);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--sky-on-muted);
  max-width: 30rem;
}

.hero-aside b {
  color: var(--sky-on);
  font-weight: 600;
}

/* store buttons: nothing here is a live link, and nothing pretends to be */

.getit {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-md);
  margin-top: var(--s-xxl);
}

.store {
  display: inline-flex;
  align-items: center;
  gap: var(--s-md);
  min-height: 56px;
  padding: var(--s-sm) var(--s-lg);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--r-md);
  background: rgba(1, 12, 9, 0.3);
  color: var(--sky-on);
}

.store svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-text .name {
  font-size: 15px;
  font-weight: 600;
}

.store-text .soon {
  color: var(--sky-accent);
  font-size: 11px;
  letter-spacing: 0.6px;
  font-weight: 500;
}

html[lang='bn'] .store-text .soon {
  letter-spacing: 0;
}

.notify {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  min-height: 56px;
  padding: var(--s-sm) var(--s-lg);
  border-radius: var(--r-md);
  background: var(--gold-400);
  color: var(--em-950);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--e-low);
}

.notify:hover {
  background: var(--gold-300);
}

.notify svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* the live phase read-out — empty, and hidden, until app.js fills it */

.phase {
  margin-top: var(--s-xxl);
  max-width: 32em;
  color: var(--sky-on-muted);
}

.phase b {
  color: var(--sky-accent);
  font-weight: 600;
}

/* ------------------------------------------------------------ the phone */

.device {
  position: relative;
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 318px;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.42));
}

.device svg {
  width: 100%;
  height: auto;
}

.device figcaption {
  margin-top: var(--s-base);
  color: var(--sky-on-muted);
  text-align: center;
  max-width: 28em;
  margin-inline: auto;
}

/* phone screen type — set here so the markup stays clean */
.scr-micro {
  font: 500 11px/1 var(--font-sans);
  letter-spacing: 0.2px;
}

.scr-eyebrow {
  font: 600 10px/1 var(--font-sans);
  letter-spacing: 1.7px;
}

.scr-body {
  font: 400 12px/1 var(--font-sans);
}

.scr-strong {
  font: 600 12.5px/1 var(--font-sans);
}

.scr-title {
  font: 600 17px/1 var(--font-sans);
  letter-spacing: -0.2px;
}

.scr-clock {
  font: 600 38px/1 var(--font-sans);
  letter-spacing: -1.6px;
}

.scr-tab {
  font: 500 8.5px/1 var(--font-sans);
  letter-spacing: 0.2px;
}

.scr-ar {
  font: 400 13px/1 var(--font-ar);
}

html[lang='bn'] .scr-micro,
html[lang='bn'] .scr-eyebrow,
html[lang='bn'] .scr-body,
html[lang='bn'] .scr-strong,
html[lang='bn'] .scr-title,
html[lang='bn'] .scr-clock,
html[lang='bn'] .scr-tab {
  font-family: var(--font-bn);
}

html[lang='bn'] .scr-eyebrow {
  letter-spacing: 0.5px;
}

html[lang='bn'] .scr-clock {
  font-size: 34px;
  letter-spacing: -0.8px;
}

html[lang='bn'] .scr-tab {
  font-size: 8px;
}

/* ------------------------------------------------------------- refusals */

.refusals {
  position: relative;
  z-index: 1;
  background: var(--em-950);
  color: var(--paper-100);
  padding-block: clamp(40px, 5vw, 64px);
}

.refusals h2 {
  color: var(--paper-50);
  max-width: 24em;
}

.refusals > .wrap > .lede {
  margin-top: var(--s-base);
  max-width: 32em;
  color: rgba(255, 255, 255, 0.74);
}

.refusals-list {
  list-style: none;
  margin: clamp(28px, 4vw, 40px) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 680px) {
  .refusals-list {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(32px, 5vw, 64px);
  }
}

.refusals-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-base);
  padding-block: var(--s-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.refusals-list .ico {
  color: var(--gold-400);
  margin-top: 1px;
}

.refusals-list h3 {
  color: var(--paper-50);
}

.refusals-list p {
  margin-top: var(--s-xs);
  color: rgba(255, 255, 255, 0.72);
}

/* ------------------------------------------------------------- features */

.group {
  margin-top: clamp(36px, 5vw, 56px);
}

.group:first-of-type {
  margin-top: 0;
}

.group-title {
  display: flex;
  align-items: center;
  gap: var(--s-base);
  margin-bottom: var(--s-sm);
  color: var(--accent-ink);
  font-size: 11px;
  line-height: 15px;
  letter-spacing: 1.8px;
  font-weight: 600;
  text-transform: uppercase;
}

html[lang='bn'] .group-title {
  font-size: 12.5px;
  letter-spacing: 0.4px;
  text-transform: none;
}

.group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

@media (min-width: 720px) {
  .feats {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(32px, 5vw, 64px);
  }
}

.feats li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-base);
  padding-block: var(--s-lg);
  border-bottom: 1px solid var(--hairline);
}

.feats .ico {
  color: var(--accent);
  margin-top: 1px;
}

.feats h4 {
  font-size: 17px;
  line-height: 23px;
  letter-spacing: -0.1px;
}

html[lang='bn'] .feats h4 {
  font-size: 16.5px;
  line-height: 24px;
  letter-spacing: 0;
}

.feats p {
  margin-top: var(--s-xs);
  color: var(--fg-muted);
}

.feats .auth {
  color: var(--fg-faint);
  margin-top: var(--s-sm);
}

/* ------------------------------------------------------------ qada block */

.qada {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

@media (min-width: 860px) {
  .qada {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  }
}

.qada-copy h2 {
  max-width: 22em;
}

.qada-copy p {
  margin-top: var(--s-lg);
  color: var(--fg-muted);
  max-width: 36em;
}

.ledger {
  padding: var(--s-xl);
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  box-shadow: var(--e-low);
}

.ledger-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-md);
  color: var(--fg-faint);
}

.ledger-rows {
  margin: var(--s-base) 0 0;
  display: grid;
  gap: 0;
}

.ledger-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-md);
  padding-block: var(--s-md);
  border-bottom: 1px solid var(--hairline);
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-row dt {
  color: var(--fg-muted);
}

.ledger-row dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 17px;
}

.ledger-row.is-total dd {
  font-size: 22px;
  letter-spacing: -0.3px;
  color: var(--accent-ink);
}

.meter {
  margin-top: var(--s-lg);
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--bg-sunken);
  border: 1px solid var(--hairline);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  width: 5.6%;
  background: var(--gold-500);
}

.ledger-note {
  margin-top: var(--s-md);
  color: var(--fg-faint);
}

/* ----------------------------------------------------------------- note */

.note {
  max-width: 36em;
}

.note h2 {
  margin-top: 0;
}

.note h2 + p,
.note p + p {
  margin-top: var(--s-base);
}

.note h2 + p {
  margin-top: var(--s-lg);
}

.note p {
  color: var(--fg-muted);
}

.note .bismillah {
  margin-bottom: var(--s-lg);
  font-size: 19px;
  color: var(--accent-ink);
}

.sign {
  margin-top: var(--s-xl);
  padding-top: var(--s-base);
  border-top: 1px solid var(--rule);
  color: var(--fg-faint);
}

/* ------------------------------------------------------------------ end */

.closing {
  background: var(--em-950);
  color: var(--paper-100);
  padding-block: clamp(48px, 6vw, 80px);
}

.closing h2 {
  color: var(--paper-50);
  max-width: 26em;
}

.closing p {
  margin-top: var(--s-base);
  color: rgba(255, 255, 255, 0.74);
  max-width: 34em;
}

.closing .getit {
  margin-top: clamp(28px, 4vw, 40px);
}

.closing .store {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.05);
  color: var(--paper-50);
}

.closing .store-text .soon {
  color: var(--gold-400);
}

/* --------------------------------------------------------------- footer */

.footer {
  background: var(--carbon-950);
  color: rgba(255, 255, 255, 0.72);
  padding-block: var(--s-xxl);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-lg) var(--s-xxl);
  justify-content: space-between;
  align-items: flex-start;
}

.footer a {
  color: var(--paper-200);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-base) var(--s-lg);
}

.footer-links a {
  display: inline-block;
  min-height: 24px;
  padding-block: var(--s-sm);
}

.footer-fine {
  margin-top: var(--s-xl);
  padding-top: var(--s-base);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.56);
  max-width: 52em;
}

.footer-fine p + p {
  margin-top: var(--s-sm);
}

/* ----------------------------------------------------------- prose pages */

.prose-head {
  background: var(--em-950);
  color: var(--paper-100);
}

.prose-head .masthead {
  --sky-on: var(--paper-50);
  --sky-accent: var(--gold-400);
}

.prose-head .masthead .brand {
  color: var(--paper-50);
}

.prose-head h1 {
  color: var(--paper-50);
  padding-block: var(--s-lg) var(--s-xxxl);
  max-width: 24em;
}

/* The measure is set on the children so the body text lines up with the h1
   above it, rather than being centred inside the page. */
.prose {
  padding-block: clamp(40px, 6vw, 72px);
}

.prose > * {
  max-width: 38em;
}

.prose h2 {
  margin-top: clamp(32px, 4vw, 48px);
  font-size: clamp(20px, 2.2vw, 25px);
  letter-spacing: -0.4px;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose p,
.prose ul {
  margin-top: var(--s-base);
  color: var(--fg-muted);
}

.prose ul {
  padding-left: var(--s-lg);
}

.prose li + li {
  margin-top: var(--s-sm);
}

.prose .updated {
  color: var(--fg-faint);
  margin-bottom: var(--s-xxl);
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

/* --------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* a few stars breathe; the rest are still. Off entirely when motion is reduced. */
@media (prefers-reduced-motion: no-preference) {
  .sky-stars .twinkle {
    animation: twinkle 5.5s var(--ease) infinite alternate;
  }

  .sky-stars .twinkle:nth-of-type(2n) {
    animation-duration: 7.5s;
    animation-delay: -2s;
  }

  .sky-stars .twinkle:nth-of-type(3n) {
    animation-duration: 9s;
    animation-delay: -4s;
  }

  @keyframes twinkle {
    from {
      opacity: 0.25;
    }
    to {
      opacity: 1;
    }
  }
}

/* ------------------------------------------------- forced colours

   Windows High Contrast, and any other forced-colour mode. The browser
   swaps our colours for the pair the reader chose - but it does not swap a
   background-image, so the sky gradient would survive underneath forced
   white text and take the headline with it. The decoration goes instead,
   and the words stay.

   Elevation is stripped in this mode too, so anything that was only a
   surface because it had a shadow needs an edge to stay one. */
@media (forced-colors: active) {
  .sky-layers,
  .sky::after {
    display: none;
  }

  .sky {
    background: Canvas;
    --sky-on: CanvasText;
    --sky-on-muted: CanvasText;
    --sky-accent: CanvasText;
  }

  .prose-head,
  .prose-head .brand,
  .prose-head h1 {
    background: Canvas;
    color: CanvasText;
  }

  .sky svg,
  .footer svg {
    fill: CanvasText;
  }

  .notify,
  .ledger,
  .device {
    border: 1px solid CanvasText;
  }

  :focus-visible,
  .sky :focus-visible,
  .footer :focus-visible {
    outline-color: Highlight;
  }
}

@media print {
  .sky-layers,
  .device {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
