/* ==========================================================================
   Muminer Business Mindset: main stylesheet
   Bold editorial, light reading surface by default, dark mode by toggle.
   Brand tokens live in :root. Swap hex values here if the identity file differs.
   ========================================================================== */

@font-face { font-family: "Hind Siliguri"; src: url("/assets/fonts/hind-siliguri-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hind Siliguri"; src: url("/assets/fonts/hind-siliguri-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hind Siliguri"; src: url("/assets/fonts/hind-siliguri-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Hind Siliguri"; src: url("/assets/fonts/hind-siliguri-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "MBM Arabic"; src: url("/assets/fonts/amiri-arabic.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }

/* Hind Siliguri has a documented malformed glyph for Bengali digit ১ (U+09E7) in its
   regular/medium/semibold/bold weights. Rather than swap the whole font (everything
   else in Hind Siliguri renders correctly), main.js detects contiguous Bengali-numeral
   runs that contain ১ (e.g. "১০", "১২") and reroutes just that run to Noto Sans Bengali,
   so a run like ৳১০ doesn't mix two different digit styles mid-number. See bn-digit-fix. */
@font-face { font-family: "Noto Sans Bengali"; src: url("/assets/fonts/noto-sans-bengali-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0980-09FF; }
@font-face { font-family: "Noto Sans Bengali"; src: url("/assets/fonts/noto-sans-bengali-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0980-09FF; }
.bn-digit-fix { font-family: "Noto Sans Bengali", "Hind Siliguri", sans-serif; }

:root {
  /* Brand palette */
  --cobalt: #1D3BB3;
  --cobalt-deep: #142A86;
  --plum: #4A1C55;
  --gold: #D9A12B;
  --gold-hover: #E8B13E;
  --gold-ink: #1A1306;
  --green: #1E5B3E;

  /* Surfaces (light) */
  --paper: #F3F4F9;
  --surface: #FFFFFF;
  --surface-2: #E8EAF3;
  --ink: #16142E;
  --ink-2: #4C4A68;
  --ink-3: #6E6C88;
  --line: #D6D9E7;
  --word: var(--plum);
  --link: var(--cobalt);
  --on-cobalt: #F3F4F9;
  --on-cobalt-2: rgba(243, 244, 249, .74);
  --no: #8C2F4B;
  --shadow: 0 1px 0 rgba(22, 20, 46, .04), 0 18px 40px -24px rgba(29, 59, 179, .35);

  /* Type */
  --font: "Hind Siliguri", "Noto Sans Bengali", "Kalpurush", "Nirmala UI", system-ui, sans-serif;
  --font-ar: "MBM Arabic", "Amiri", "Noto Naskh Arabic", "Traditional Arabic", serif;
  --fs-body: 1.125rem;
  --lh-body: 1.8;
  --fs-small: .9375rem;
  --fs-h3: clamp(1.3rem, 1.1rem + .8vw, 1.6rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem);
  --fs-h1: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem);
  --fs-hero: clamp(2.7rem, 1.5rem + 5vw, 5.6rem);
  --lh-tight: 1.22;

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  color-scheme: light;
}

:root[data-lang="en"] {
  --fs-body: 1.0625rem;
  --lh-body: 1.65;
  --lh-tight: 1.08;
}

:root[data-theme="dark"] {
  --cobalt: #2747C9;
  --cobalt-deep: #1B338F;
  --plum: #5B2569;
  --paper: #0E0D1F;
  --surface: #17162C;
  --surface-2: #1F1D38;
  --ink: #ECEBF6;
  --ink-2: #B0AECA;
  --ink-3: #8C8AA8;
  --line: #2D2B4A;
  --word: #B993CB;
  --link: #9DB1FF;
  --no: #E58AA6;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: var(--lh-tight); font-weight: 700; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
::selection { background: var(--gold); color: var(--gold-ink); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: .6rem 1rem; border-radius: 10px; font-weight: 600; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + .75rem); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(720px + var(--gutter) * 2); }
.wrap--mid { max-width: calc(880px + var(--gutter) * 2); }

.h1 { font-size: var(--fs-h1); letter-spacing: -.01em; }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
:root[data-lang="en"] .h1, :root[data-lang="en"] .h2, :root[data-lang="en"] .hero__title { letter-spacing: -.025em; }
.lede { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); color: var(--ink-2); max-width: 60ch; }
.meta, .fine { color: var(--ink-3); font-size: var(--fs-small); }
.hint { color: var(--ink-2); font-size: var(--fs-small); }
.hint--center { text-align: center; max-width: 54ch; margin-inline: auto; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; color: var(--ink); }
.text-link:hover { color: var(--link); }
.empty { color: var(--ink-3); }
.sep { margin-inline: .5em; color: var(--ink-3); }
.kicker { font-weight: 600; color: var(--cobalt); margin-bottom: .25rem; }
:root[data-theme="dark"] .kicker { color: var(--link); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.35em; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; line-height: 1.3; text-decoration: none; text-align: center;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--gold-ink); }
.btn--gold:hover { background: var(--gold-hover); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--quiet { background: transparent; color: inherit; text-decoration: underline; text-underline-offset: .25em; padding-inline: .5em; }
.btn--sm { min-height: 40px; padding: .45em 1em; font-size: .9375rem; border-radius: 12px; }
.btn--lg { min-height: 56px; padding: .8em 1.6em; font-size: 1.0625rem; }
.btn__aside { font-weight: 400; opacity: .75; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
/* Blur lives on a pseudo-element so the fixed mobile menu isn't trapped inside the header */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
body.nav-open .site-header::before { background: var(--paper); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.logo .mark { width: 38px; height: 38px; color: var(--cobalt); }
:root[data-theme="dark"] .logo .mark { color: var(--ink); }
.logo__word { display: flex; flex-direction: column; line-height: 1.05; }
.logo__top { font-weight: 700; font-size: 1.2rem; }
.logo__bottom { font-weight: 500; font-size: .8rem; color: var(--ink-2); }
:root[data-lang="en"] .logo__top { letter-spacing: -.01em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.nav__list { list-style: none; display: flex; gap: .25rem; }
.nav__link { display: block; padding: .45rem .7rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; }
.nav__link:hover { background: var(--surface-2); }
.nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

.header-tools { display: flex; align-items: center; gap: .35rem; }
.lang-switch { font-weight: 600; font-size: .9375rem; color: var(--ink); text-decoration: none; padding: .45rem .7rem; border-radius: 10px; border: 1px solid var(--line); }
.lang-switch:hover { border-color: var(--ink); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-toggle { display: none; }
.burger { display: grid; gap: 6px; width: 22px; }
.burger span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease); }
.menu-toggle[aria-expanded="true"] .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1020px) {
  .menu-toggle { display: inline-grid; }
  .header-tools { margin-left: auto; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
    background: var(--paper); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { font-size: 1.6rem; font-weight: 600; padding: .7rem 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link:hover { background: none; }
  .nav__link[aria-current="page"] { box-shadow: none; color: var(--cobalt); }
  .nav__cta { min-height: 56px; font-size: 1.1rem; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .logo__bottom { font-size: .72rem; }
  .logo .mark { width: 34px; height: 34px; }
  .lang-switch { padding: .4rem .55rem; font-size: .875rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 6rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__title { font-size: var(--fs-hero); line-height: var(--lh-tight); margin-bottom: .45em; }
.hero__title .line { display: block; overflow: hidden; padding-block: .08em .3em; margin-block: -.08em -.3em; }
.hero__title .line__in { display: inline-block; animation: rise 1s var(--ease) both; animation-delay: calc(var(--i) * .14s + .05s); }
.hero__title .line + .line .line__in { color: var(--cobalt); }
:root[data-theme="dark"] .hero__title .line + .line .line__in { color: var(--link); }
.hero__lede { font-size: clamp(1.15rem, 1rem + .55vw, 1.4rem); color: var(--ink-2); max-width: 46ch; animation: fade .9s var(--ease) .45s both; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; animation: fade .9s var(--ease) .6s both; }
.hero__release { margin-top: 1.25rem; font-size: var(--fs-small); color: var(--ink-2); animation: fade .9s var(--ease) .7s both; }
.hero__release-k { display: inline-block; background: var(--surface-2); padding: .1em .6em; border-radius: 8px; font-weight: 600; margin-right: .4em; color: var(--ink); }

.hero__panel {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-xl); overflow: hidden;
  background: var(--cobalt); color: var(--on-cobalt);
  display: grid; place-items: center; isolation: isolate;
}
.hero__panel::before { /* faint plum glow in one corner, not a gradient wash */
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -25%; bottom: -25%;
  background: var(--plum); border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1;
}
.hero__panel-cap { position: absolute; left: 1.5rem; bottom: 1.25rem; margin: 0; font-weight: 600; font-size: var(--fs-small); color: var(--on-cobalt); animation: fade .9s var(--ease) 1.6s both; }

.ornament { width: 82%; color: rgba(243, 244, 249, .55); }
.ornament .orn-lines { stroke-width: 1.4; }
.ornament .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; }
.ornament .d1 { animation-delay: .2s; }
.ornament .d2 { animation-delay: .45s; }
.ornament .d3 { animation-delay: .75s; }
.ornament .d4 { animation-delay: 1s; stroke: rgba(243, 244, 249, .28); }
.ornament .orn-core { fill: var(--gold); transform-box: fill-box; transform-origin: center; animation: core .8s var(--ease) 1.35s both; }
.hero__panel .ornament { animation: turn 240s linear 2.6s infinite; }

@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes core { from { opacity: 0; transform: rotate(45deg) scale(.2); } to { opacity: 1; transform: rotate(45deg) scale(1); } }
@keyframes turn { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { aspect-ratio: 16 / 11; order: -1; }
  .ornament { width: 54%; }
}

/* ---------- Why / What / When ---------- */
.www { padding-bottom: 0; }
.www .wrap:last-child .www__row:last-child { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.www__row {
  display: grid; grid-template-columns: minmax(150px, 280px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line);
}
.www > .wrap:first-child .www__row { border-top: 0; }
.www__word {
  font-size: clamp(3.4rem, 2rem + 6vw, 7.5rem); font-weight: 700; line-height: 1; color: var(--word);
  position: sticky; top: calc(var(--header-h) + 2rem); align-self: start;
}
.www__body { max-width: 68ch; }
.www__body > p { color: var(--ink-2); }
.www__punch { color: var(--ink) !important; font-weight: 600; font-size: 1.2em; }
@media (max-width: 760px) {
  .www__row { grid-template-columns: 1fr; gap: .25rem; }
  .www__word { position: static; font-size: 3.2rem; }
}

.offer { list-style: none; margin: 2rem 0; border-top: 1px solid var(--line); }
.offer__link { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: .25rem 2rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.offer__title { font-weight: 700; font-size: 1.15em; }
.offer__body { color: var(--ink-2); }
.offer__link:hover .offer__title { color: var(--link); }
@media (max-width: 640px) { .offer__link { grid-template-columns: 1fr; } }

.promise { border-left: 4px solid var(--gold); padding: .25rem 0 .25rem 1.25rem; }
.promise__label { font-weight: 700; margin-bottom: .25rem; }
.promise__text { font-size: 1.15em; margin: 0; }

.timeline { list-style: none; position: relative; margin-top: 1.5rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: .9em; bottom: 2.6em; width: 2px; background: var(--line); }
.timeline__item { position: relative; display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: .25rem 2rem; padding: 0 0 1.5rem 2.25rem; }
.timeline__item::before { content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 16px; border-radius: 4px; transform: rotate(45deg); border: 2px solid var(--cobalt); background: var(--paper); }
.timeline__item--done::before { background: var(--cobalt); }
.timeline__item--next::before { background: var(--gold); border-color: var(--gold); }
.timeline__when { font-weight: 700; }
.timeline__item--next .timeline__when { color: var(--ink); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--gold) 45%, transparent) 62%); justify-self: start; }
.timeline__what { color: var(--ink-2); }
@media (max-width: 640px) { .timeline__item { grid-template-columns: 1fr; } }

/* ---------- Bands (cobalt color blocks) ---------- */
.band { padding-block: clamp(3rem, 8vw, 6rem); }
.band--cobalt {
  background-color: var(--cobalt); color: var(--on-cobalt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23F3F4F9' stroke-opacity='.07' stroke-width='1.2'%3E%3Crect x='35' y='35' width='50' height='50'/%3E%3Crect x='35' y='35' width='50' height='50' transform='rotate(45 60 60)'/%3E%3Cpath d='M0 0L35 35M120 0L85 35M0 120L35 85M120 120L85 85'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}
.band--cobalt .h2, .band--cobalt h2 { color: var(--on-cobalt); }
.band--cobalt p, .band--cobalt dd { color: var(--on-cobalt-2); }
.band__inner--split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.band__inner--split > div { max-width: 46rem; }

.ayah { margin: 0; text-align: center; }
.ayah blockquote { margin: 0; }
.ayah__ar { font-family: var(--font-ar); font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem); line-height: 1.9; color: var(--gold); margin-bottom: .4em; }
.ayah__tr { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); max-width: 44ch; margin-inline: auto; }
.ayah__ref { font-size: var(--fs-small); opacity: .8; }
.band--cobalt .ayah__tr { color: var(--on-cobalt); }
.band--cobalt .ayah__ar { color: var(--gold); }
.band--cobalt .ayah__ref { color: var(--on-cobalt-2); }
.wrap--mid > .ayah, .notes-block .ayah, .founder + div .ayah, .split .ayah { margin-block: 2rem; padding: 2rem 1.5rem; border-radius: var(--radius-lg); background: var(--surface); }
:root:not([data-theme="dark"]) .wrap--mid > .ayah .ayah__ar, :root:not([data-theme="dark"]) .split .ayah .ayah__ar, :root:not([data-theme="dark"]) .notes-block .ayah .ayah__ar { color: var(--cobalt); }

/* ---------- Home: next / tools / latest / closer ---------- */
.next, .tools-strip, .latest, .closer { padding-block: clamp(2rem, 4.5vw, 3.5rem); }
.next__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.teaser { border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); }
.teaser--plum { background: var(--plum); color: #F4EEF6; }
.teaser--plum p { color: rgba(244, 238, 246, .8); }
.teaser--outline { border: 1.5px solid var(--line); background: var(--surface); }
.teaser__status { font-weight: 600; font-size: var(--fs-small); display: inline-block; padding: .1em .7em; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #F4EEF6 !important; }
.teaser--outline .teaser__status { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green) !important; }
:root[data-theme="dark"] .teaser--outline .teaser__status { color: #8FD3AE !important; }
.teaser__title { font-size: var(--fs-h3); margin-top: .6rem; }
.teaser__no { display: block; font-size: .7em; font-weight: 500; opacity: .8; }
.teaser__meta { font-size: var(--fs-small); margin: 0; font-weight: 600; }
@media (max-width: 760px) { .next__grid { grid-template-columns: 1fr; } }

.tools-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.tools-strip__head p { color: var(--ink-2); }
.tool-rows { list-style: none; border-top: 1px solid var(--line); }
.tool-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t time" "b b"; gap: .25rem 1rem; padding: 1.25rem .25rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: padding .25s var(--ease); }
.tool-row__title { grid-area: t; font-weight: 700; font-size: 1.25rem; }
.tool-row__body { grid-area: b; color: var(--ink-2); }
.tool-row__time { grid-area: time; font-size: var(--fs-small); color: var(--ink-3); }
.tool-row:hover { padding-left: .9rem; }
.tool-row:hover .tool-row__title { color: var(--link); }
@media (max-width: 860px) { .tools-strip { grid-template-columns: 1fr; } }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; }
.post-list { list-style: none; border-top: 1px solid var(--line); margin-top: 1rem; }
.post-list__item a { display: grid; gap: .2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.post-list__item time, .post-list__meta { font-size: var(--fs-small); color: var(--ink-3); }
.post-list__title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); font-weight: 700; line-height: 1.35; }
.post-list__desc { color: var(--ink-2); }
.post-list__item a:hover .post-list__title { color: var(--link); }

.closer__block { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; background: var(--cobalt); color: var(--on-cobalt); border-radius: var(--radius-xl); padding: clamp(2rem, 5vw, 3.5rem); }
.closer__text { max-width: 40rem; }
.closer__text .h2 { color: var(--on-cobalt); }
.closer__text p { color: var(--on-cobalt-2); margin: 0; }

/* ---------- Generic page head ---------- */
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head .h1 { max-width: 20ch; }
.page-head--wide .h1 { max-width: 24ch; }
.page-head__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; font-size: var(--fs-small); color: var(--ink-3); margin-bottom: 1.25rem; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--link); text-decoration: underline; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.split--narrow { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
@media (max-width: 820px) { .split, .split--narrow { grid-template-columns: 1fr; } }
.big-p { font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); line-height: 1.6; }

/* ---------- Books ---------- */
.shelf { display: grid; gap: 1.25rem; padding-bottom: clamp(3rem, 7vw, 5rem); }
.shelf__item { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.shelf__text p:not(.status) { color: var(--ink-2); }
.shelf__text .meta { margin-bottom: 1rem; }
.shelf__no { color: var(--ink-3); font-weight: 500; }
.shelf__cover { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); }
.spine { aspect-ratio: 2 / 3; border-radius: 10px; padding: .9rem; display: flex; flex-direction: column; justify-content: space-between; color: #F3F4F9; box-shadow: var(--shadow); }
.spine__no { font-size: .8rem; font-weight: 600; opacity: .85; }
.spine__name { font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.spine--1 { background: var(--cobalt); }
.spine--2 { background: var(--plum); }
.spine--3 { background: var(--green); }
.spine--pb { background: var(--gold); color: var(--gold-ink); }
.status { display: inline-block; font-size: .875rem; font-weight: 600; padding: .1em .75em; border-radius: 999px; margin-bottom: .6rem; }
.status--free { background: var(--gold); color: var(--gold-ink); }
.status--writing { background: color-mix(in srgb, var(--plum) 16%, transparent); color: var(--plum); }
.status--planned, .status--soon { background: var(--surface-2); color: var(--ink-2); }
:root[data-theme="dark"] .status--writing { color: var(--word); }
@media (max-width: 600px) { .shelf__item { grid-template-columns: 96px minmax(0, 1fr); align-items: start; } .spine__name { font-size: .85rem; } .spine { padding: .55rem; } }

/* ---------- Volume 1 ---------- */
.vol-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(2rem, 5vw, 4rem); }
.vol-hero .h1 { font-size: var(--fs-hero); margin-bottom: .3em; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; border-block: 1px solid var(--line); padding-block: 1.1rem; }
.facts dt { font-size: var(--fs-small); color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 700; font-size: 1.25rem; }
.vol-hero__cta .fine { margin-top: .75rem; }
.release-note { font-weight: 600; margin-bottom: .9rem; }
.cover {
  aspect-ratio: 2 / 3; max-width: 380px; margin-inline: auto; border-radius: 8px 16px 16px 8px; padding: 2rem 1.75rem;
  display: flex; flex-direction: column; background: var(--cobalt); color: #F3F4F9;
  box-shadow: inset 10px 0 0 rgba(0, 0, 0, .14), 0 30px 60px -30px rgba(29, 59, 179, .65), 0 2px 0 rgba(0, 0, 0, .05);
  transform: rotate(-2.5deg); transition: transform .5s var(--ease);
}
.cover:hover { transform: rotate(0); }
.cover-photo {
  display: block; aspect-ratio: 2 / 3; max-width: 380px; width: 100%; margin-inline: auto;
  border-radius: 8px 16px 16px 8px; object-fit: cover;
  box-shadow: 0 30px 60px -30px rgba(29, 59, 179, .65), 0 2px 0 rgba(0, 0, 0, .05);
  transform: rotate(-2.5deg); transition: transform .5s var(--ease);
}
.cover-photo:hover { transform: rotate(0); }
.cover__series { font-size: .9rem; font-weight: 600; opacity: .85; }
.cover__title { margin-top: auto; font-size: clamp(2.6rem, 2rem + 2.5vw, 3.7rem); font-weight: 700; line-height: 1.1; }
.cover__line { margin-top: .75rem; color: var(--gold); font-weight: 600; }
.cover__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(243, 244, 249, .25); font-size: .9rem; font-weight: 600; }
.cover .mark { width: 34px; height: 34px; color: #F3F4F9; }
@media (max-width: 860px) {
  .vol-hero { grid-template-columns: 1fr; }
  .vol-hero__cover { order: -1; }
  .cover { max-width: 240px; padding: 1.4rem 1.2rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.steps { list-style: none; counter-reset: s; display: grid; gap: .9rem; margin-top: 1.25rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .9rem; align-items: start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--gold); color: var(--gold-ink); font-weight: 700; }
:root[data-lang="bn"] .steps li::before { content: counter(s, bengali); }
.topics { list-style: none; display: grid; gap: .75rem; margin-top: 1.25rem; }
.topics li { position: relative; padding-left: 1.6rem; }
.topics li::before { content: ""; position: absolute; left: .15rem; top: .7em; width: .55rem; height: .55rem; background: var(--cobalt); transform: rotate(45deg); border-radius: 2px; }
.parts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.parts li { border-top: 2px solid rgba(243, 244, 249, .3); padding-top: 1rem; }
.parts__name { display: block; font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); font-weight: 700; color: var(--gold); }
.parts__body { color: var(--on-cobalt-2); }
@media (max-width: 760px) { .parts { grid-template-columns: 1fr; } }

.faq { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.split .faq { padding-block: 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; font-size: 1.1rem; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item p { color: var(--ink-2); padding-bottom: 1rem; margin: 0; }

/* ---------- Tools hub ---------- */
.tool-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.tool-card a { display: flex; flex-direction: column; height: 100%; gap: .6rem; padding: 1.75rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .25s var(--ease); }
.tool-card a:hover { border-color: var(--cobalt); transform: translateY(-3px); }
.tool-card__glyph { width: 52px; height: 52px; color: var(--cobalt); margin-bottom: .5rem; }
:root[data-theme="dark"] .tool-card__glyph { color: var(--link); }
.tool-card__title { font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
.tool-card__body { color: var(--ink-2); flex: 1; }
.tool-card__foot { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-small); color: var(--ink-3); padding-top: 1rem; border-top: 1px solid var(--line); }
.tool-card__open { font-weight: 700; color: var(--ink); background: var(--gold); color: var(--gold-ink); padding: .2em .9em; border-radius: 10px; }
.more-tools { margin-top: 2.5rem; padding: 1.75rem; border-radius: var(--radius-lg); border: 1.5px dashed var(--line); }
.more-tools p { margin: 0; color: var(--ink-2); }
.disclaimer { margin-top: 2rem; padding: 1rem 1.25rem; border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--ink-2); font-size: var(--fs-small); }
@media (max-width: 900px) { .tool-cards { grid-template-columns: 1fr; } }

/* ---------- Tool layout + forms ---------- */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; padding-bottom: 2rem; }
.tool-layout--wide { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); }
@media (max-width: 920px) { .tool-layout, .tool-layout--wide { grid-template-columns: 1fr; } }

.calc { display: grid; gap: 1.25rem; }
.calc__group { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(1.25rem, 3vw, 2rem); min-width: 0; display: grid; gap: 1.1rem; }
.calc__legend { float: left; width: 100%; display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: 1.25rem; padding: 0; margin-bottom: .1rem; }
.calc__legend + * { clear: both; }
.calc__step { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9px; background: var(--cobalt); color: var(--on-cobalt); font-size: 1rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-weight: 500; font-size: .98rem; color: var(--ink); line-height: 1.45; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .65rem .95rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font-size: 1.05rem;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 55%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--no); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.unit-tag { font-size: .85em; color: var(--ink-3); font-weight: 500; }

.seg { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.seg__label { width: 100%; font-weight: 500; font-size: .98rem; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label > span { display: inline-block; padding: .55rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 500; cursor: pointer; }
.seg input:checked + span { background: var(--cobalt); border-color: var(--cobalt); color: var(--on-cobalt); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.result { position: sticky; top: calc(var(--header-h) + 1.25rem); }
@media (max-width: 920px) { .result { position: static; } }
.result__card { background: var(--cobalt); color: var(--on-cobalt); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); }
.result__title { font-size: 1.3rem; color: var(--on-cobalt); }
.result__rows { margin: 0 0 1rem; display: grid; }
.result__rows div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgba(243, 244, 249, .18); }
.result__rows dt { color: var(--on-cobalt-2); }
.result__rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.result__strong dt, .result__strong dd { color: var(--on-cobalt); font-weight: 700; }
.result__due { display: grid; gap: .1rem; margin: 1rem 0; padding: 1rem 1.1rem; border-radius: 14px; background: rgba(0, 0, 0, .16); }
.result__due span { color: var(--on-cobalt-2); font-size: var(--fs-small); }
.result__due strong { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); color: var(--gold); line-height: 1.2; font-variant-numeric: tabular-nums; }
.result__verdict { color: var(--on-cobalt); font-weight: 500; }
.result__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.result .btn--ghost { border-color: var(--on-cobalt); color: var(--on-cobalt); }
.result .btn--ghost:hover { background: var(--on-cobalt); color: var(--cobalt); }
.result .btn--quiet { color: var(--on-cobalt); }
.result__sub { font-size: 1.05rem; color: var(--on-cobalt); margin-top: 1.25rem; }

.notes-block { padding-block: 1rem 2rem; }
.notes { list-style: none; display: grid; gap: .7rem; max-width: 72ch; }
.notes li { position: relative; padding-left: 1.5rem; color: var(--ink-2); }
.notes li::before { content: ""; position: absolute; left: .1rem; top: .72em; width: .5rem; height: .5rem; background: var(--gold); transform: rotate(45deg); }

/* Niyyah quiz */
.progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.result__card .progress { background: rgba(243, 244, 249, .18); }
.progress__bar { display: block; height: 100%; width: 0; background: var(--gold); border-radius: inherit; transition: width .35s var(--ease); }
.progress__text { font-size: var(--fs-small); color: var(--ink-3); margin: .5rem 0 1.5rem; }
.result__card .progress__text { color: var(--on-cobalt-2); }
.quiz { position: relative; }
.quiz > .progress { position: sticky; top: calc(var(--header-h) + .5rem); z-index: 2; }
.quiz__list { list-style: none; display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.quiz__q fieldset { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 1.25rem 1.4rem 1.4rem; min-width: 0; transition: border-color .2s; }
.quiz__q fieldset.is-answered { border-color: color-mix(in srgb, var(--cobalt) 45%, var(--line)); }
.quiz__q legend { float: left; width: 100%; display: flex; gap: .8rem; font-weight: 600; font-size: 1.12rem; line-height: 1.55; margin-bottom: 1rem; padding: 0; }
.quiz__q legend + * { clear: both; }
.quiz__n { flex-shrink: 0; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 8px; background: var(--surface-2); font-size: .95rem; }
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.scale__opt { position: relative; }
.scale__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.scale__opt span { display: grid; place-items: center; text-align: center; min-height: 56px; height: 100%; padding: .5rem .4rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font-size: .9rem; line-height: 1.3; cursor: pointer; transition: background-color .15s, border-color .15s; }
.scale__opt span:hover { border-color: var(--cobalt); }
.scale__opt input:checked + span { background: var(--cobalt); border-color: var(--cobalt); color: var(--on-cobalt); font-weight: 600; }
.scale__opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 600px) { .scale { grid-template-columns: 1fr; } .scale__opt span { min-height: 46px; justify-items: start; text-align: left; padding-inline: 1rem; } }
.form-error { color: var(--no); font-weight: 600; }

.niyyah-result { margin-top: 2.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); }
.niyyah-result:focus { outline: none; }
.score { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; align-items: center; margin-bottom: 2rem; }
.score__num { display: grid; place-items: center; width: clamp(110px, 20vw, 150px); aspect-ratio: 1; border-radius: 28px; background: var(--cobalt); color: var(--gold); font-size: clamp(2.4rem, 1.8rem + 2.5vw, 3.4rem); font-weight: 700; transform: rotate(0); }
.score__band { font-size: var(--fs-h3); font-weight: 700; margin-bottom: .3rem; }
@media (max-width: 560px) { .score { grid-template-columns: 1fr; } }
.areas { list-style: none; display: grid; gap: 1rem; margin: 1rem 0 2rem; }
.area__top { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: .35rem; }
.area__bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.area__bar span { display: block; height: 100%; border-radius: inherit; background: var(--cobalt); transition: width .8s var(--ease); }
.area--weak .area__bar span { background: var(--gold); }
.weak { padding: 1.25rem 1.4rem; border-radius: var(--radius); background: color-mix(in srgb, var(--gold) 18%, var(--surface)); margin-bottom: 1.5rem; }
.weak__label { margin-bottom: .4rem; }
.weak p:last-child { margin: 0; }

/* Shariah checklist */
.check { display: grid; gap: 1.5rem; }
.check__sec { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(1.25rem, 3vw, 1.75rem); }
.check__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; margin-bottom: .5rem; }
.check__head .h3 { margin: 0; }
.check__ref { font-size: .85rem; color: var(--ink-3); margin: 0; }
.check__item { margin: 0; padding: 1rem 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.check__item legend { float: left; width: 100%; padding: 0; margin-bottom: .75rem; font-weight: 500; line-height: 1.55; }
.check__item legend + * { clear: both; }
.tri { display: flex; flex-wrap: wrap; gap: .5rem; }
.tri__opt { position: relative; }
.tri__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tri__opt span { display: inline-block; padding: .45rem 1.05rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 500; cursor: pointer; }
.tri__opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.tri__opt--yes input:checked + span { background: var(--green); border-color: var(--green); color: #EEF7F1; }
.tri__opt--no input:checked + span { background: var(--plum); border-color: var(--plum); color: #F6EEF8; }
.tri__opt--unsure input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.tally__n { display: grid; text-align: center; padding: .6rem .3rem; border-radius: 12px; background: rgba(0, 0, 0, .16); font-size: .85rem; color: var(--on-cobalt-2); }
.tally__n strong { font-size: 1.6rem; color: var(--on-cobalt); line-height: 1.2; }
.tally__n--unsure strong { color: var(--gold); }
.flag-list { list-style: none; display: grid; gap: .5rem; margin-bottom: 1rem; }
.flag-list li { padding: .6rem .8rem; border-radius: 10px; background: rgba(0, 0, 0, .16); font-size: .95rem; line-height: 1.5; }
.flag-list--no li { border-left: 3px solid #F2B8C9; }
.flag-list--unsure li { border-left: 3px solid var(--gold); }

/* Email capture */
.updates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.25rem, 4vw, 3rem); margin-block: clamp(2rem, 5vw, 3.5rem); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-xl); background: var(--surface-2); }
.updates__title { font-size: var(--fs-h3); }
.updates__text p { color: var(--ink-2); margin: 0; }
.updates__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; align-items: end; }
.updates__form .btn { grid-column: 1 / -1; justify-self: start; }
.updates__status { grid-column: 1 / -1; margin: 0; font-weight: 600; min-height: 1.5em; }
.updates__status.is-ok { color: var(--green); }
:root[data-theme="dark"] .updates__status.is-ok { color: #8FD3AE; }
.updates__status.is-err { color: var(--no); }
.updates__fine { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: var(--ink-3); }
@media (max-width: 760px) { .updates, .updates__form { grid-template-columns: 1fr; } }

/* ---------- Support / pricing ---------- */
.tiers { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.tier { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.tier--featured { background: var(--cobalt); color: var(--on-cobalt); border-color: var(--cobalt); }
.tier__head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.tier__name { font-size: 1.35rem; margin: 0; }
.tier__badge { font-size: .8rem; font-weight: 600; padding: .15em .7em; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.tier__price { margin: 1.1rem 0 .1rem; display: flex; align-items: baseline; gap: .25rem; }
.tier__price strong { font-size: clamp(2.2rem, 1.8rem + 1.4vw, 2.9rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tier__price span { color: var(--ink-3); }
.tier--featured .tier__price strong { color: var(--gold); }
.tier--featured .tier__price span, .tier--featured .tier__note, .tier--featured .tier__body { color: var(--on-cobalt-2); }
.tier__note { font-size: var(--fs-small); color: var(--ink-3); }
.tier__body { color: var(--ink-2); }
.tier__features { list-style: none; display: grid; align-content: start; gap: .55rem; margin: .5rem 0 1.75rem; flex: 1; }
.tier__features li { position: relative; padding-left: 1.5rem; line-height: 1.5; }
.tier__features li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: .5rem; height: .5rem; transform: rotate(45deg); background: var(--cobalt); }
.tier--featured .tier__features li::before { background: var(--gold); }
.tier__cta { width: 100%; }
.tier--featured .btn--ghost { border-color: var(--on-cobalt); color: var(--on-cobalt); }
@media (max-width: 960px) { .tiers { grid-template-columns: 1fr; max-width: 560px; } }
.where { list-style: none; display: grid; gap: .75rem; margin-top: 1rem; }
.where li { padding: .9rem 1.1rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }

/* ---------- Community / about ---------- */
.rules { padding-block: clamp(2.5rem, 6vw, 4rem); }
.rules__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); margin: 1.5rem 0 0; }
.rules__item { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.rules__item dt { font-weight: 700; font-size: 1.15rem; margin-bottom: .25rem; }
.rules__item dd { margin: 0; color: var(--ink-2); }
@media (max-width: 700px) { .rules__list { grid-template-columns: 1fr; } }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem 2rem; margin: 1.5rem 0 0; }
.values__item { border-top: 2px solid rgba(243, 244, 249, .3); padding-top: 1rem; }
.values__item dt { font-weight: 700; font-size: 1.2rem; color: var(--gold); margin-bottom: .3rem; }
.values__item dd { margin: 0; }
.founder__name { font-size: 1.4rem; font-weight: 700; margin-bottom: .4rem; }
.founder p { color: var(--ink-2); }

/* ---------- Posts / prose ---------- */
.post__head { padding-top: clamp(2rem, 5vw, 3.5rem); }
.post__title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
.post__dek { font-size: 1.25rem; color: var(--ink-2); }
.post__meta { color: var(--ink-3); font-size: var(--fs-small); padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.post__cover { margin-block: 2rem; }
.post__cover img { width: 100%; border-radius: var(--radius-lg); }
.prose { padding-block: 1.5rem 2rem; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-top: 2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-inline: 0; padding: .4rem 0 .4rem 1.25rem; border-left: 4px solid var(--gold); color: var(--ink); font-weight: 500; }
.prose blockquote p { margin: 0; }
.prose img { border-radius: var(--radius); margin-block: 1.5em; }
.prose a { color: var(--link); }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2.5em; }
.prose code { font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 6px; }
.prose [lang="ar"], .prose .ar { font-family: var(--font-ar); font-size: 1.5em; line-height: 1.9; direction: rtl; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .5rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
.post__foot { padding-bottom: clamp(3rem, 6vw, 5rem); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-block: 1.5rem; border-block: 1px solid var(--line); }
.share__label { font-weight: 600; margin-right: .5rem; }
.share__btn { font-size: .9375rem; font-weight: 500; padding: .4rem .9rem; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; }
.share__btn:hover { border-color: var(--ink); }
.post__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-block: 2rem; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); }
.post__cta p { margin: 0; font-weight: 600; }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pager__link { display: grid; gap: .2rem; padding: 1rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.4; }
.pager__link span { font-size: .85rem; font-weight: 500; color: var(--ink-3); }
.pager__link--next { grid-column: 2; text-align: right; }
.pager__link:hover { border-color: var(--cobalt); }
.other-lang { margin-top: 2rem; padding-bottom: 3rem; }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(3rem, 10vw, 7rem); max-width: 860px; }
.notfound__mark { width: 72px; color: var(--cobalt); margin-bottom: 1.5rem; }
.notfound__links { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line); background: var(--surface); padding-top: clamp(2.5rem, 6vw, 4rem); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.site-footer__about { color: var(--ink-2); margin-top: 1rem; max-width: 42ch; font-size: .98rem; }
.site-footer__promise { font-weight: 600; font-size: .98rem; }
.site-footer__head { font-size: 1rem; margin-bottom: .75rem; }
.site-footer__col ul { list-style: none; display: grid; gap: .45rem; }
.site-footer__col a { color: var(--ink-2); text-decoration: none; font-size: .98rem; }
.site-footer__col a:hover { color: var(--link); text-decoration: underline; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 2.5rem; padding-block: 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-3); }
.site-footer__base p { margin: 0; }
.site-footer__base a { color: var(--ink-2); }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }

/* ---------- Motion + print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__panel .ornament { animation: none !important; }
}

@media print {
  .site-header, .site-footer, .updates, .result__actions, .skip, .hero__panel, .crumbs { display: none !important; }
  body { background: #fff; color: #000; }
  .tool-layout { display: block; }
  .result__card { background: #fff !important; color: #000 !important; border: 1px solid #000; margin-top: 1rem; }
  .result__card * { color: #000 !important; }
  .calc__group { border-color: #999; break-inside: avoid; }
}
