/* =========================================================
   Asaan Misal — public portal
   Light / dark themes, Urdu (RTL) / English (LTR)
   ========================================================= */

:root {
  --navy-950: #060a24;
  --navy-900: #0b1342;
  --navy-800: #121c5c;
  --navy: #18236b;
  --navy-600: #26359a;
  --navy-400: #5b6bd6;
  --red: #d71f26;
  --red-700: #a9161c;
  --gold: #c99a3b;
  --gold-300: #ecca7c;
  --green: #12804f;
  --amber: #b26b00;

  --bg: #f5f7fc;
  --bg-alt: #eceff8;
  --surface: #ffffff;
  --surface-2: #f7f8fd;
  --text: #0d1330;
  --text-2: #2a3157;
  --muted: #5d6589;
  --border: rgba(16, 26, 82, 0.09);
  --border-strong: rgba(16, 26, 82, 0.16);
  --link: #26359a;
  --ring: rgba(38, 53, 154, 0.35);
  --shadow-sm: 0 1px 2px rgba(10, 18, 60, 0.05), 0 2px 8px rgba(10, 18, 60, 0.05);
  --shadow: 0 12px 32px -8px rgba(10, 18, 60, 0.14);
  --shadow-lg: 0 30px 70px -20px rgba(10, 18, 60, 0.35);
  --glass: rgba(255, 255, 255, 0.78);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1200px;
  --header-h: 74px;

  --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ur: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;

  --t-navy: #26359a;
  --t-green: #12804f;
  --t-gold: #b7791f;
  --t-investigation: #0f8a5f;
  --t-arrest: #d71f26;
  --t-court: #2643a8;
  --t-challan: #b7791f;
}

html[data-theme='dark'] {
  --bg: #060a1f;
  --bg-alt: #0a1030;
  --surface: #0e1538;
  --surface-2: #121a44;
  --text: #ebeefb;
  --text-2: #c9cfee;
  --muted: #949dc6;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --link: #a7b2ff;
  --ring: rgba(167, 178, 255, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.75);
  --glass: rgba(8, 13, 40, 0.72);

  --t-navy: #8e9bff;
  --t-green: #3ccf8e;
  --t-gold: #ecca7c;
  --t-investigation: #3ccf8e;
  --t-arrest: #ff6b70;
  --t-court: #7f98ff;
  --t-challan: #ecca7c;
}

.tone-navy { --tone: var(--t-navy); }
.tone-green { --tone: var(--t-green); }
.tone-gold { --tone: var(--t-gold); }
.tone-investigation { --tone: var(--t-investigation); }
.tone-arrest { --tone: var(--t-arrest); }
.tone-court { --tone: var(--t-court); }
.tone-challan { --tone: var(--t-challan); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s ease, color .3s ease;
}
html[lang='ur'] body { font-family: 'Plus Jakarta Sans', var(--font-ur); font-size: 16.5px; line-height: 2.15; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(201, 154, 59, 0.35); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }
[dir='rtl'] .flip { transform: scaleX(-1); }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: .5rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 1rem; }
.brand-font { font-family: var(--font-ur); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
}
html[lang='ur'] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .92rem; font-weight: 600; }
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
.h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
.h3 { font-size: 1.2rem; line-height: 1.35; font-weight: 700; }
html[lang='ur'] .h1 { line-height: 1.75; letter-spacing: 0; font-weight: 700; }
html[lang='ur'] .h2 { line-height: 1.8; letter-spacing: 0; font-weight: 700; }
html[lang='ur'] .h3 { line-height: 1.9; font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); }
.text-gradient {
  background: linear-gradient(100deg, #f3d48a 0%, #c99a3b 45%, #ff8a7a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: var(--btn-h); padding: 0 1.3rem;
  border-radius: 14px; border: 1px solid transparent;
  font-weight: 700; font-size: .98rem; line-height: 1; white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
html[lang='ur'] .btn { line-height: 2.2; font-weight: 600; padding-top: .1rem; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { --btn-h: 56px; padding: 0 1.7rem; font-size: 1.05rem; border-radius: 16px; }
.btn-sm { --btn-h: 40px; padding: 0 1rem; font-size: .9rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #3445c4 0%, #18236b 100%);
  box-shadow: 0 10px 24px -8px rgba(38, 53, 154, .6), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { box-shadow: 0 16px 32px -10px rgba(38, 53, 154, .7), inset 0 1px 0 rgba(255,255,255,.2); color: #fff; }
.btn-gold {
  color: #1b1405;
  background: linear-gradient(135deg, #f6dc98 0%, #d6a748 55%, #b98425 100%);
  box-shadow: 0 12px 28px -10px rgba(201, 154, 59, .75), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-gold:hover { color: #1b1405; box-shadow: 0 18px 36px -12px rgba(201, 154, 59, .85), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost {
  color: var(--text); background: var(--surface); border-color: var(--border-strong); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { color: var(--text); border-color: var(--link); }
.btn-glass {
  color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
}
.btn-glass:hover { color: #fff; background: rgba(255,255,255,.16); }
.btn-whatsapp {
  color: #fff; background: linear-gradient(135deg, #2bd56f, #0f9d6a);
  box-shadow: 0 12px 26px -10px rgba(18, 160, 100, .7);
}
.btn-whatsapp:hover { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--link); transform: translateY(-1px); }
.theme-icon-dark { display: none; }
html[data-theme='dark'] .theme-icon-dark { display: block; }
html[data-theme='dark'] .theme-icon-light { display: none; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.hdr.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 8px 24px -16px rgba(0,0,0,.25); }
.hdr-inner { height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--text); flex: none; }
.brand-logo {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
}
.brand-logo img {
  grid-area: 1 / 1; width: 100%; height: 100%;
  object-fit: contain; display: block;
  filter: drop-shadow(0 6px 14px rgba(11, 19, 66, .22));
}
.brand-logo .logo-dark { display: none; }
html[data-theme='dark'] .brand-logo .logo-light { display: none; }
html[data-theme='dark'] .brand-logo .logo-dark { display: block; }
.brand-logo .logo-solo { display: block; }
.brand-text { display: grid; line-height: 1.2; gap: .15rem; }
.brand-name { font-family: var(--font-ur); font-size: 1.2rem; font-weight: 700; line-height: 1.9; }
.brand-org { font-size: .74rem; color: var(--muted); font-weight: 600; }
html[lang='ur'] .brand-org { line-height: 1.8; }

.nav { display: flex; align-items: center; gap: .25rem; margin-inline: auto; }
.nav a {
  position: relative; padding: .45rem .8rem; border-radius: 10px;
  color: var(--text-2); font-weight: 600; font-size: .95rem;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); }
.nav a.active::after {
  content: ''; position: absolute; inset-inline: .8rem; bottom: .15rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--red));
}
.hdr-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.lang-btn {
  height: 42px; padding: 0 .9rem; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700; font-size: .9rem; transition: border-color .2s, transform .2s;
}
.lang-btn:hover { border-color: var(--link); color: var(--text); transform: translateY(-1px); }
.lang-btn .ur { font-family: var(--font-ur); font-weight: 600; line-height: 2; }
.nav-toggle { display: none; }
.mobile-only { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 600px at 85% -10%, #2a3aa8 0%, transparent 60%),
              radial-gradient(900px 500px at -10% 110%, #6b1020 0%, transparent 55%),
              linear-gradient(160deg, #0b1342 0%, #060a24 70%);
  color: #fff;
  padding: 5.5rem 0 6rem;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; opacity: .55; }
.orb-gold { width: 380px; height: 380px; background: #c99a3b; top: -120px; inset-inline-start: 30%; opacity: .25; }
.orb-red { width: 320px; height: 320px; background: #d71f26; bottom: -140px; inset-inline-end: 10%; opacity: .25; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .9rem .4rem .5rem; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  color: #f2dfae; font-size: .85rem; font-weight: 600;
  backdrop-filter: blur(6px);
}
html[lang='ur'] .badge { line-height: 2; padding-inline-end: 1rem; }
.badge-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #f6dc98, #c99a3b); color: #1b1405; }
.hero-title { margin: 1.3rem 0 1.1rem; font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.hero-title .line { display: block; }
.hero-sub { color: rgba(235, 238, 251, .78); max-width: 34rem; font-size: 1.15rem; }
.hero-cta { margin-top: 2rem; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.8rem; color: rgba(235,238,251,.75); font-size: .92rem; }
.trust li { display: inline-flex; align-items: center; gap: .45rem; }
.trust .icon { color: #ecca7c; }

/* App mockup */
.mock {
  position: relative;
  border-radius: 20px; overflow: hidden;
  background: #f5f7fc; color: #0d1330;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.12);
  transform: perspective(1600px) rotateY(-8deg) rotateX(4deg);
  transition: transform .6s ease;
  direction: rtl; font-family: var(--font-ur);
}
[dir='rtl'] .mock { transform: perspective(1600px) rotateY(8deg) rotateX(4deg); }
.mock:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.mock-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; background: linear-gradient(180deg, #1d2a80, #0f1850); color: #fff; direction: ltr; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); }
.mock-bar i:nth-child(1) { background: #ff5f57; } .mock-bar i:nth-child(2) { background: #febc2e; } .mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar span { margin-inline-start: auto; font-family: var(--font-ur); font-size: .82rem; line-height: 1.8; opacity: .9; }
.mock-body { padding: 1rem; display: grid; gap: .8rem; }
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; background: #fff; border-radius: 12px; padding: .5rem .8rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.mock-head strong { font-size: .9rem; line-height: 1.9; }
.mock-head small { color: #5d6589; font-size: .72rem; line-height: 1.8; display: block; }
.mock-pill { background: #e6e9f7; color: #26359a; border-radius: 999px; padding: 0 .6rem; font-size: .7rem; line-height: 1.9; white-space: nowrap; }
.mock-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.tile { border-radius: 12px; padding: .55rem .5rem; color: #fff; font-size: .74rem; line-height: 1.8; text-align: center; box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); }
.tile b { display: block; font-size: 1.05rem; font-family: var(--font-en); line-height: 1.3; }
.tile.t1 { background: linear-gradient(160deg, #18a374, #0b6b4b); }
.tile.t2 { background: linear-gradient(160deg, #ef3b42, #a9161c); }
.tile.t3 { background: linear-gradient(160deg, #3a5bd4, #1f3591); }
.tile.t4 { background: linear-gradient(160deg, #d4a04a, #9a6716); }
.mock-search { background: #fff; border: 1px solid #e1e5f0; border-radius: 10px; padding: .25rem .7rem; color: #8b93b4; font-size: .76rem; line-height: 1.9; }
.mock-rows { display: grid; gap: .4rem; }
.mock-row { display: flex; align-items: center; gap: .6rem; background: #fff; border-radius: 10px; padding: .4rem .7rem; font-size: .74rem; line-height: 1.8; }
.mock-row .bar { height: 7px; border-radius: 4px; background: #e1e5f0; flex: 1; }
.mock-row .bar.short { flex: .5; }
.mock-row .dot { width: 8px; height: 8px; border-radius: 50%; }
.mock-toast {
  position: absolute; inset-inline-start: 1rem; bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
  background: #0d1330; color: #fff; border-radius: 12px; padding: .35rem .8rem;
  font-size: .76rem; line-height: 1.9; box-shadow: 0 12px 24px -8px rgba(0,0,0,.5);
  animation: float 4s ease-in-out infinite;
}
.mock-toast .icon { color: #3ccf8e; width: 16px; height: 16px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Stats ---------- */
.stats-wrap { position: relative; z-index: 2; margin-top: -3rem; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 1.6rem 1.4rem; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--border); }
.stat-value { direction: ltr; unicode-bidi: isolate; font-family: var(--font-en); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--text); }
.stat-value span { background: linear-gradient(120deg, var(--gold), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); font-size: .92rem; margin-top: .3rem; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; margin: 0 auto 3.2rem; text-align: center; display: grid; gap: .9rem; justify-items: center; }
.section-head.start { margin-inline: 0; text-align: start; justify-items: start; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.card { color: inherit; display: block; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); }

.icon-tile {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 1.1rem;
  color: var(--tone, var(--t-navy));
  background: color-mix(in srgb, var(--tone, var(--t-navy)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone, var(--t-navy)) 22%, transparent);
}
.icon-tile .icon { width: 24px; height: 24px; }

/* Feature cards with glow */
.feature-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px 160px at var(--mx, 50%) 0%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.feature-card:hover::after { opacity: 1; }

/* Group cards */
.group-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.group-card .gc-top { display: block; height: 6px; background: linear-gradient(90deg, var(--tone), color-mix(in srgb, var(--tone) 40%, transparent)); }
.group-card .gc-body { padding: 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.group-card .gc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.group-card .icon-tile { margin: 0; }
.gc-count { font-family: var(--font-en); font-size: 2rem; font-weight: 800; color: var(--tone); line-height: 1; opacity: .9; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .65rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: .8rem; color: var(--text-2); white-space: nowrap;
}
html[lang='ur'] .chip { line-height: 2; font-size: .82rem; }
.gc-link { margin-top: auto; padding-top: 1rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--tone); font-weight: 700; font-size: .92rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 28px; inset-inline: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; padding: 0 .5rem; }
.step-num {
  width: 56px; height: 56px; margin: 0 auto 1.1rem; border-radius: 18px;
  display: grid; place-items: center; position: relative;
  font-family: var(--font-en); font-weight: 800; font-size: 1.2rem; color: #fff;
  background: linear-gradient(140deg, #3445c4, #18236b);
  box-shadow: 0 12px 24px -10px rgba(38, 53, 154, .7), 0 0 0 6px var(--bg);
}
.section-alt .step-num { box-shadow: 0 12px 24px -10px rgba(38, 53, 154, .7), 0 0 0 6px var(--bg-alt); }
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* Manual cards */
.manual-card { display: flex; flex-direction: column; gap: .4rem; }
.manual-card .icon-tile { margin-bottom: .8rem; }
.manual-card p { flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border-strong); color: var(--muted); font-size: .84rem; }
.meta span { display: inline-flex; align-items: center; gap: .35rem; }
.meta .icon { width: 15px; height: 15px; }
.manual-card .arrow { position: absolute; top: 1.6rem; inset-inline-end: 1.6rem; color: var(--muted); transition: transform .25s, color .25s; }
.manual-card:hover .arrow { color: var(--tone); transform: translateX(4px); }
[dir='rtl'] .manual-card:hover .arrow { transform: translateX(-4px) scaleX(-1); }
.card.manual-feature {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center;
  padding: 2rem; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #18236b, #0b1342); color: #fff; border: 0;
  box-shadow: var(--shadow-lg);
}
.manual-feature p { color: rgba(235,238,251,.75); }
.manual-feature .icon-tile { --tone: #ecca7c; margin: 0; width: 64px; height: 64px; border-radius: 18px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: .9rem; padding: 2rem; }
.plan-name { font-weight: 800; font-size: 1.15rem; }
.plan-price { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.plan-price strong { font-family: var(--font-en); font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.plan-price span { color: var(--muted); }
.plan-list { display: grid; gap: .55rem; margin: .5rem 0 1rem; flex: 1; }
.plan-list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--text-2); }
.plan-list .icon { color: var(--t-green); margin-top: .25em; width: 18px; height: 18px; }
html[lang='ur'] .plan-list .icon { margin-top: .55em; }
.plan-featured {
  border: 0; color: #fff;
  background: linear-gradient(160deg, #1d2a80 0%, #0b1342 100%);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(236, 202, 124, .5);
  transform: translateY(-10px);
}
.plan-featured:hover { transform: translateY(-14px); }
.plan-featured p, .plan-featured .plan-price span { color: rgba(235,238,251,.7); }
.plan-featured .plan-list li { color: rgba(235,238,251,.9); }
.plan-featured .plan-list .icon { color: #ecca7c; }
.plan-badge {
  position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #f6dc98, #c99a3b); color: #1b1405;
  font-size: .78rem; font-weight: 800; padding: .25rem .9rem; border-radius: 999px; white-space: nowrap;
}
[dir='rtl'] .plan-badge { transform: translateX(50%); }
html[lang='ur'] .plan-badge { line-height: 2; padding-block: 0; }

/* FAQ */
.faq-list { display: grid; gap: .8rem; max-width: 52rem; margin-inline: auto; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.faq[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); transition: transform .25s, background .25s;
}
.faq[open] summary .plus { transform: rotate(45deg); background: color-mix(in srgb, var(--gold) 18%, transparent); }
.faq-body { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); padding: 3.5rem;
  background: radial-gradient(600px 300px at 90% 0%, rgba(201,154,59,.35), transparent 60%),
              radial-gradient(500px 300px at 0% 100%, rgba(215,31,38,.3), transparent 60%),
              linear-gradient(140deg, #18236b, #060a24);
  color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5;
}
.cta-band p { color: rgba(235,238,251,.75); margin-top: .5rem; font-size: 1.1rem; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 4.5rem 0 4rem;
  background: radial-gradient(800px 400px at 85% -20%, color-mix(in srgb, var(--navy-400) 22%, transparent), transparent 60%),
              radial-gradient(600px 300px at 0% 120%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 60%),
              var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.page-hero-inner { display: grid; gap: 1rem; max-width: 50rem; }
.page-hero.center .page-hero-inner { margin-inline: auto; text-align: center; justify-items: center; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: var(--muted); font-size: .88rem; }
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .icon { width: 14px; height: 14px; opacity: .6; }

/* ---------- Features page ---------- */
.group-section { padding: 4.5rem 0; border-bottom: 1px solid var(--border); }
.group-section:nth-child(even) { background: var(--bg-alt); }
.group-intro { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
.group-intro-text { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: .9rem; }
.group-intro-text .icon-tile { width: 62px; height: 62px; border-radius: 18px; margin: 0; }
.group-intro-text .tag { color: var(--tone); font-weight: 700; font-size: .9rem; }
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.module-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; }
.module-card .mc-dot {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tone) 12%, transparent); color: var(--tone);
}
.module-card h3 { font-size: 1.02rem; margin-bottom: .1rem; }
.module-card .hint { font-size: .8rem; color: var(--tone); font-weight: 700; }
.module-card p { font-size: .92rem; margin-top: .25rem; }

.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 1rem 1.3rem; text-align: start; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th { background: var(--surface-2); font-size: .85rem; color: var(--muted); font-weight: 700; }
.table td:first-child { font-weight: 700; }
.table .bad { color: var(--muted); }
.table .good { color: var(--t-green); font-weight: 600; }
.table .good .icon, .table .bad .icon { display: inline-block; vertical-align: middle; width: 16px; height: 16px; margin-inline-end: .35rem; }

/* ---------- Download page ---------- */
.dl-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem; align-items: start; }
.dl-card {
  position: relative; overflow: hidden; padding: 2.4rem; border: 0; color: #fff;
  background: radial-gradient(500px 260px at 100% 0%, rgba(201,154,59,.3), transparent 60%),
              linear-gradient(150deg, #1d2a80, #070c2c);
  box-shadow: var(--shadow-lg);
}
.dl-card p { color: rgba(235,238,251,.72); }
.dl-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.dl-head .brand-logo { width: 64px; height: 64px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 1.8rem; }
.dl-meta .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; }
.dl-note { margin-top: 1rem; font-size: .88rem; display: flex; gap: .5rem; align-items: center; color: rgba(235,238,251,.7); }
.check-list { display: grid; gap: .65rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; }
.check-list .icon { color: var(--t-green); flex: none; margin-top: .25em; }
html[lang='ur'] .check-list .icon { margin-top: .6em; }
.check-grid { grid-template-columns: repeat(2, 1fr); }
.req-table td:first-child { width: 38%; color: var(--muted); font-weight: 600; }

/* Timeline */
.timeline { display: grid; gap: 0; position: relative; }
.tl-item { display: grid; grid-template-columns: 52px 1fr; gap: 1.2rem; position: relative; padding-bottom: 1.8rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; top: 52px; bottom: 0; inset-inline-start: 25px; width: 2px;
  background: linear-gradient(180deg, var(--border-strong), transparent);
}
.tl-item:last-child::before { display: none; }
.tl-num {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-family: var(--font-en); font-weight: 800; font-size: 1.1rem;
  color: var(--tone, var(--t-navy)); background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--tone, var(--t-navy)) 45%, transparent);
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--tone, var(--t-navy)) 80%, transparent);
}
.tl-body { padding-top: .6rem; }
html[lang='ur'] .tl-body { padding-top: .2rem; }
.tl-body h3 { margin-bottom: .35rem; }
.tl-body p { color: var(--text-2); }
.tl-tip {
  margin-top: .8rem; display: flex; gap: .6rem; align-items: flex-start;
  padding: .7rem .9rem; border-radius: 12px; font-size: .92rem;
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  color: var(--text-2);
}
.tl-tip .icon { color: var(--gold); margin-top: .2em; flex: none; }
html[lang='ur'] .tl-tip .icon { margin-top: .55em; }

/* ---------- Manuals ---------- */
.search-box {
  position: relative; width: min(100%, 560px); margin-top: .6rem;
}
.search-box .icon { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 1.1rem; color: var(--muted); }
.search-box input {
  width: 100%; height: 60px; padding-inline: 3.2rem 1.2rem; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  font-size: 1.02rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus { border-color: var(--link); box-shadow: 0 0 0 4px var(--ring), var(--shadow); }
.search-box kbd {
  position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 1rem;
  font-family: var(--font-en); font-size: .75rem; color: var(--muted);
  border: 1px solid var(--border-strong); border-radius: 6px; padding: .1rem .45rem; background: var(--surface-2);
}
.no-results { display: none; text-align: center; padding: 3rem 1rem; color: var(--muted); }
.no-results.show { display: block; }

.manual-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 3rem; align-items: start; }
.manual-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.25rem; max-height: calc(100vh - var(--header-h) - 3rem); overflow: auto; padding-bottom: 1rem; }
.aside-title { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
html[lang='ur'] .aside-title { letter-spacing: 0; font-size: .9rem; }
.toc { display: grid; gap: .1rem; border-inline-start: 2px solid var(--border); }
.toc a {
  display: block; padding: .35rem .9rem; margin-inline-start: -2px;
  border-inline-start: 2px solid transparent; color: var(--muted); font-size: .92rem; font-weight: 600;
  transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--tone, var(--link)); border-inline-start-color: var(--tone, var(--link)); }
.other-manuals { display: grid; gap: .3rem; }
.other-manuals a { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 10px; color: var(--text-2); font-size: .9rem; font-weight: 600; }
.other-manuals a:hover { background: var(--surface); color: var(--text); }
.other-manuals a.current { background: var(--surface); color: var(--tone); box-shadow: var(--shadow-sm); }
.other-manuals .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); flex: none; }

.manual-head { display: flex; gap: 1.4rem; align-items: flex-start; }
.manual-head .icon-tile { width: 72px; height: 72px; border-radius: 22px; margin: 0; flex: none; }
.manual-head .icon-tile .icon { width: 32px; height: 32px; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.chip-row .chip { background: var(--surface); }
.chip-row .chip .icon { width: 14px; height: 14px; color: var(--tone); }

.m-section { padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.m-section:first-child { padding-top: 0; }
.m-section:last-child { border-bottom: 0; }
.m-section > h2 { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.3rem; font-size: 1.45rem; font-weight: 800; }
html[lang='ur'] .m-section > h2 { font-weight: 700; line-height: 1.9; }
.m-section > h2 .num {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none;
  font-family: var(--font-en); font-size: .85rem; font-weight: 800;
  background: color-mix(in srgb, var(--tone) 14%, transparent); color: var(--tone);
}
.overview-text { font-size: 1.12rem; color: var(--text-2); }
.prereq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.callouts { display: grid; gap: 1rem; }
.callout { display: flex; gap: 1rem; padding: 1.2rem 1.3rem; border-radius: 16px; border: 1px solid; }
.callout .icon { flex: none; margin-top: .2em; }
html[lang='ur'] .callout .icon { margin-top: .55em; }
.callout-tip { background: color-mix(in srgb, var(--t-green) 8%, transparent); border-color: color-mix(in srgb, var(--t-green) 26%, transparent); }
.callout-tip .icon { color: var(--t-green); }
.callout-warn { background: color-mix(in srgb, #f59e0b 9%, transparent); border-color: color-mix(in srgb, #f59e0b 32%, transparent); }
.callout-warn .icon { color: #d97706; }
html[data-theme='dark'] .callout-warn .icon { color: #fbbf24; }
.callout strong { display: block; margin-bottom: .15rem; }
.callout ul { display: grid; gap: .35rem; }
.callout li { color: var(--text-2); }

.ref-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.ref-card { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.ref-card .mc-dot { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 12%, transparent); color: var(--tone); }
.ref-card strong { display: block; }
.ref-card .hint { font-size: .78rem; color: var(--tone); font-weight: 700; }
.ref-card p { font-size: .9rem; color: var(--muted); margin-top: .15rem; }

.help-box {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.6rem; border-radius: var(--radius); margin-top: 2.5rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--t-green) 12%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--t-green) 25%, transparent);
}
.help-box p { color: var(--muted); max-width: 34rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.pager a { display: grid; gap: .2rem; padding: 1.2rem 1.4rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .2s, transform .2s; }
.pager a:hover { border-color: var(--tone, var(--link)); transform: translateY(-2px); }
.pager small { color: var(--muted); display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; }
.pager strong { font-size: 1.05rem; }
.pager .next { text-align: end; justify-items: end; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; gap: 1.1rem; align-items: flex-start; }
.contact-card .icon-tile { margin: 0; flex: none; }
.contact-card .value { font-family: var(--font-en); font-weight: 800; font-size: 1.1rem; direction: ltr; unicode-bidi: isolate; color: var(--text); }
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .9rem; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border-strong); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
html[lang='ur'] .field input, html[lang='ur'] .field select, html[lang='ur'] .field textarea { line-height: 2; padding-block: .45rem; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--link); box-shadow: 0 0 0 4px var(--ring); background: var(--surface); }

/* ---------- Privacy ---------- */
.policy-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; align-items: start; }
.policy-section { padding: 1.8rem 0; border-bottom: 1px solid var(--border); }
.policy-section:first-child { padding-top: 0; }
.policy-section h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; display: flex; gap: .7rem; align-items: center; }
html[lang='ur'] .policy-section h2 { font-weight: 700; line-height: 1.9; }
.policy-section p { color: var(--text-2); font-size: 1.04rem; }

/* ---------- Footer ---------- */
.ftr { background: var(--navy-950); color: rgba(235, 238, 251, .7); padding: 4.5rem 0 2rem; margin-top: 0; }
html[data-theme='dark'] .ftr { background: #03061a; border-top: 1px solid var(--border); }
.ftr a { color: rgba(235, 238, 251, .7); }
.ftr a:hover { color: #fff; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.ftr .brand { color: #fff; }
.ftr .brand-org { color: rgba(235,238,251,.55); }
.ftr-about { margin-top: 1rem; max-width: 22rem; font-size: .95rem; }
.ftr h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.ftr ul { display: grid; gap: .55rem; font-size: .93rem; }
.ftr-social { display: flex; gap: .5rem; margin-top: 1.3rem; }
.ftr-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.ftr-social a:hover { background: rgba(255,255,255,.12); }
.ftr-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .86rem; }

/* ---------- Reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .reveal[data-delay='1'] { transition-delay: .08s; }
html.js .reveal[data-delay='2'] { transition-delay: .16s; }
html.js .reveal[data-delay='3'] { transition-delay: .24s; }
html.js .reveal[data-delay='4'] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .mock, .mock-toast { animation: none; transform: none !important; }
  .btn:hover, .card-hover:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: .45rem .55rem; font-size: .9rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .mobile-only { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    padding: 1rem 1.25rem 1.5rem; background: var(--surface);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .nav a { padding: .8rem 1rem; font-size: 1rem; }
  .nav a.active { background: var(--surface-2); }
  .nav a.active::after { display: none; }
  body.nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .hdr-cta { display: none; }
  .hdr-actions { margin-inline-start: auto; }
  .hero { padding: 3.5rem 0 5rem; }
  .hero-grid, .group-intro, .dl-grid, .contact-grid, .manual-layout, .policy-layout { grid-template-columns: 1fr; }
  .group-intro-text, .manual-aside { position: static; max-height: none; }
  .manual-aside .toc-block { display: none; }
  .mock { transform: none !important; max-width: 560px; margin-inline: auto; }
  .grid-3, .plans { grid-template-columns: 1fr 1fr; }
  .plan-featured { transform: none; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .steps::before { display: none; }
  .cta-band { grid-template-columns: 1fr; padding: 2.5rem; }
  .card.manual-feature { grid-template-columns: auto 1fr; }
  .manual-feature .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  .container { width: min(var(--container), 100% - 1.5rem); }
  .section { padding: 4rem 0; }
  .brand-org { display: none; }
  .lang-btn span:not(.ur) { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .grid-2, .grid-3, .grid-4, .plans, .module-grid, .ref-grid, .check-grid, .form-row, .pager { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr; }
  .manual-head { flex-direction: column; }
  .table th, .table td { padding: .8rem; font-size: .9rem; }
  .mock-tiles { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 2rem 1.5rem; }
  .card.manual-feature { grid-template-columns: 1fr; text-align: start; }
}

/* ---------- Print (manuals) ---------- */
@media print {
  .hdr, .ftr, .manual-aside, .help-box, .pager, .no-print, .page-hero::before { display: none !important; }
  body { background: #fff; color: #000; }
  .page-hero { padding: 1rem 0; border: 0; background: none; }
  .manual-layout { grid-template-columns: 1fr; }
  .card, .prereq, .ref-card, .callout { box-shadow: none; }
  html.js .reveal { opacity: 1; transform: none; }
}
