/* ==========================================================================
   HelpingPixels — design system
   Warm paper ground, deep navy ink, electric-blue interaction, gold highlight.
   Light + dark themes (follows the system, switchable in the header).
   ========================================================================== */

:root {
  --bg: #F5F3EE;
  --bg-2: #EEEBE2;
  --surface: #FFFFFF;
  --surface-2: #FAF9F5;
  --field: #FFFFFF;
  --ink: #0B1226;
  --ink-2: #465068;
  --ink-3: #79829A;
  --line: #E2DED3;
  --line-2: #ECE9E0;
  --brand: #2E4BEA;
  --brand-2: #2038C2;
  --brand-soft: #E9EDFF;
  --brand-ink: #FFFFFF;
  --gold: #E9A820;
  --gold-2: #C98A0B;
  --gold-soft: #FFF3D6;
  --navy: #0A1030;
  --navy-2: #111C48;
  --danger: #B42318;
  --track: #DAD6CA;
  --glass: rgba(255, 255, 255, .78);
  --shadow-sm: 0 1px 2px rgba(11, 18, 38, .06), 0 2px 8px rgba(11, 18, 38, .04);
  --shadow: 0 1px 2px rgba(11, 18, 38, .05), 0 18px 44px -22px rgba(11, 18, 38, .28);
  --shadow-lg: 0 2px 4px rgba(11, 18, 38, .05), 0 36px 72px -30px rgba(11, 18, 38, .42);
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 34px;
  --f-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --f-urdu: "Noto Nastaliq Urdu", "Noto Naskh Arabic", "Jameel Noori Nastaleeq", "Segoe UI", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070B16;
    --bg-2: #0B1120;
    --surface: #0F1526;
    --surface-2: #131B30;
    --field: #0A101F;
    --ink: #EEF1F8;
    --ink-2: #A3ADC4;
    --ink-3: #6F7A94;
    --line: #202A45;
    --line-2: #182039;
    --brand: #8097FF;
    --brand-2: #A3B3FF;
    --brand-soft: #1A2550;
    --brand-ink: #0A0F20;
    --gold: #F2B544;
    --gold-2: #F7C766;
    --gold-soft: #33280F;
    --danger: #FF8A80;
    --track: #212B47;
    --glass: rgba(11, 16, 32, .78);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 44px -22px rgba(0, 0, 0, .75);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 36px 72px -30px rgba(0, 0, 0, .85);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070B16;
  --bg-2: #0B1120;
  --surface: #0F1526;
  --surface-2: #131B30;
  --field: #0A101F;
  --ink: #EEF1F8;
  --ink-2: #A3ADC4;
  --ink-3: #6F7A94;
  --line: #202A45;
  --line-2: #182039;
  --brand: #8097FF;
  --brand-2: #A3B3FF;
  --brand-soft: #1A2550;
  --brand-ink: #0A0F20;
  --gold: #F2B544;
  --gold-2: #F7C766;
  --gold-soft: #33280F;
  --danger: #FF8A80;
  --track: #212B47;
  --glass: rgba(11, 16, 32, .78);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 44px -22px rgba(0, 0, 0, .75);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 36px 72px -30px rgba(0, 0, 0, .85);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--f-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden]:not([hidden="until-found" i]) { display: none !important; }
img, svg, canvas { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 560; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
::selection { background: var(--gold); color: #0B1226; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
main { display: block; }

/* ---------- small shared pieces ---------- */
.kicker { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; background: var(--brand-soft); color: var(--ink); padding: 5px 11px; border-radius: 999px; }
.muted { color: var(--ink-2); }
.ico { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
button, .btn {
  font: 600 .95rem/1 var(--f-body);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  background: var(--brand); color: var(--brand-ink); cursor: pointer; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, border-color .18s, color .18s;
}
button:hover, .btn:hover { background: var(--brand-2); color: var(--brand-ink); transform: translateY(-1px); box-shadow: 0 10px 22px -10px var(--brand); }
button:active, .btn:active { transform: translateY(0); }
button.sec, .btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
button.sec:hover, .btn-ghost:hover { background: var(--surface); border-color: var(--ink-3); color: var(--ink); box-shadow: none; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.02rem; border-radius: 14px; }
.btn-gold { background: var(--gold); color: #1A1305; }
.btn-gold:hover { background: #F5BB3C; color: #1A1305; box-shadow: 0 14px 30px -12px rgba(233, 168, 32, .75); }
.btn-outline-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); color: #fff; box-shadow: none; }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.link-btn { background: none; border: 0; min-height: 0; padding: 8px 4px; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; font-size: .875rem; }
.link-btn:hover { background: none; color: var(--brand-2); transform: none; box-shadow: none; }

/* ---------- form fields ---------- */
select, input[type=text], input[type=color], textarea, .inp {
  font: 500 1rem var(--f-body); color: var(--ink); background: var(--field);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0;
}
.inp { height: 50px; width: 100%; padding: 0 12px; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.inp::placeholder { color: var(--ink-3); }
.inp[aria-invalid="true"] { border-color: var(--danger); }
label { font-size: .875rem; color: var(--ink-2); }

/* ---------- header ---------- */
.site-header {
  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 var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 650; font-size: 1.32rem; letter-spacing: -.02em; line-height: 1; }
.logo:hover { color: var(--ink); }
.logo svg { width: 32px; height: 32px; flex: none; }
.logo .px { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  position: relative; text-decoration: none; color: var(--ink-2); font-size: .92rem; font-weight: 520;
  padding: 9px 13px; border-radius: 10px; transition: color .18s, background-color .18s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold); }
.icon-btn { width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 12px; background: transparent; border: 1px solid var(--line); color: var(--ink); }
.icon-btn:hover { background: var(--surface); border-color: var(--ink-3); color: var(--ink); box-shadow: none; transform: none; }
.icon-btn .ico { width: 20px; height: 20px; }
.ico-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico-sun { display: block; }
  :root:not([data-theme="light"]) .ico-moon { display: none; }
}
:root[data-theme="dark"] .ico-sun { display: block; }
:root[data-theme="dark"] .ico-moon { display: none; }
.nav-toggle { display: none; }
@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .nav-inner { gap: 10px; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; font-size: 1rem; }
  .nav-links a[aria-current="page"]::after { left: 12px; right: auto; width: 24px; bottom: 7px; }
  .theme-slot { margin-left: auto; }
}
@media (min-width: 1061px) { .theme-slot { margin-left: 6px; } }

/* ---------- home hero ---------- */
.hero-wrap { padding-top: 22px; }
.hero-home {
  position: relative; isolation: isolate; overflow: hidden; color: #EAF0FF;
  border-radius: var(--r-xl); padding: clamp(36px, 6vw, 84px);
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(78, 108, 255, .55), transparent 60%),
    radial-gradient(600px 400px at 0% 110%, rgba(233, 168, 32, .22), transparent 65%),
    linear-gradient(160deg, #0A1030 0%, #0E1840 55%, #0B1233 100%);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center;
}
.hero-home::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 72%);
}
@media (max-width: 920px) { .hero-home { grid-template-columns: minmax(0, 1fr); } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #CBD6FF; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(233, 168, 32, .22); }
.hero-home h1 { font-size: clamp(2.5rem, 6.2vw, 4.9rem); line-height: 1.02; letter-spacing: -.035em; color: #fff; margin-top: 22px; font-weight: 520; }
.hero-home h1 em { font-style: italic; font-weight: 450; color: var(--gold); }
.hero-home .lede { margin-top: 22px; max-width: 52ch; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: #B9C5EA; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; padding: 0; list-style: none; color: #AEBBE3; font-size: .9rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .ico { color: var(--gold); width: 18px; height: 18px; }

.pixel-wrap { position: relative; justify-self: end; width: 100%; max-width: 470px; }
.pixel-wrap svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.pixel-wrap .c1 { fill: #4A67FF; } .pixel-wrap .c2 { fill: #7089FF; } .pixel-wrap .c3 { fill: #9DB0FF; opacity: .55; }
.pixel-wrap .c4 { fill: #fff; opacity: .1; } .pixel-wrap .c5 { fill: #2A3DB5; } .pixel-wrap .gold { fill: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .pixel-wrap .tw { animation: tw 4.5s ease-in-out infinite; }
  .float-chip { animation: bob 6s ease-in-out infinite; }
  .float-chip.b { animation-delay: -3s; }
}
@keyframes tw { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 11px 15px; border-radius: 14px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: .86rem; font-weight: 560; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .6);
}
.float-chip .ico { color: var(--gold); width: 18px; height: 18px; }
.float-chip.a { left: -4%; top: 12%; }
.float-chip.b { right: -2%; bottom: 10%; }
@media (max-width: 920px) { .pixel-wrap { justify-self: center; max-width: 380px; } }
@media (max-width: 520px) { .float-chip.a { left: 0; } .float-chip.b { right: 0; } .float-chip { font-size: .78rem; padding: 9px 12px; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.stat { padding: 26px 28px; border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--f-display); font-weight: 560; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.03em; line-height: 1; }
.stat b i { font-style: normal; color: var(--gold-2); }
.stat span { display: block; margin-top: 8px; color: var(--ink-2); font-size: .9rem; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; gap: 14px; max-width: 62ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); letter-spacing: -.03em; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.section-head .kicker { color: var(--gold-2); }

.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } }
.tool-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 100%;
  padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.tool-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px 220px at 100% 0%, var(--brand-soft), transparent 70%);
}
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand); color: var(--ink); }
.tool-card:hover::after { opacity: 1; }
.tool-card > * { position: relative; z-index: 1; }
.tc-top { display: flex; align-items: center; justify-content: space-between; }
.tc-ic {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #4A67FF, #1F34B8); box-shadow: 0 12px 22px -10px rgba(46, 75, 234, .75), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.tc-ic .ico { width: 26px; height: 26px; stroke-width: 1.6; }
.tool-card:nth-child(2) .tc-ic { background: linear-gradient(145deg, #F2B544, #C98A0B); box-shadow: 0 12px 22px -10px rgba(201, 138, 11, .75), inset 0 1px 0 rgba(255, 255, 255, .4); color: #1A1305; }
.tool-card:nth-child(4) .tc-ic { background: linear-gradient(145deg, #1B2A6B, #0A1030); }
.tc-no { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; color: var(--ink-3); }
.tool-card h3 { font-size: 1.4rem; letter-spacing: -.02em; }
.tool-card p { color: var(--ink-2); font-size: .98rem; }
.tc-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: .92rem; color: var(--brand); }
.tc-go .ico { transition: transform .25s var(--ease); }
.tool-card:hover .tc-go .ico { transform: translateX(5px); }
.tool-card.soon { background: transparent; border-style: dashed; box-shadow: none; }
.tool-card.soon:hover { transform: none; box-shadow: none; border-color: var(--gold); }
.tool-card.soon .tc-ic { background: var(--gold-soft); color: var(--gold-2); box-shadow: none; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { padding: 34px 34px 34px 0; display: grid; gap: 14px; align-content: start; }
.feature + .feature { padding-left: 34px; border-left: 1px solid var(--line); }
@media (max-width: 860px) { .feature, .feature + .feature { padding: 28px 0; border-left: 0; } .feature + .feature { border-top: 1px solid var(--line); } }
.feature .ico { width: 30px; height: 30px; color: var(--brand); stroke-width: 1.5; }
.feature h3 { font-size: 1.35rem; }
.feature p { color: var(--ink-2); }

/* mission */
.mission {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(32px, 6vw, 72px);
  background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #DCE4FF; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 36px; align-items: center; box-shadow: var(--shadow-lg);
}
.mission::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 168, 32, .35), transparent 68%); }
@media (max-width: 860px) { .mission { grid-template-columns: minmax(0, 1fr); } }
.mission h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.9rem); letter-spacing: -.03em; }
.mission h2 em { font-style: italic; font-weight: 450; color: var(--gold); }
.mission p { margin-top: 18px; color: #B9C5EA; max-width: 56ch; }
.mission .kicker { color: var(--gold); margin-bottom: 16px; display: block; }
.mission-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-lg); padding: 26px; display: grid; gap: 18px; backdrop-filter: blur(10px); }
.mission-card div { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.mission-card .ico { color: var(--gold); width: 24px; height: 24px; margin-top: 2px; }
.mission-card strong { color: #fff; display: block; font-weight: 620; }
.mission-card span { color: #A8B6E0; font-size: .92rem; }

/* CTA band */
.cta-band { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 34px clamp(24px, 4vw, 44px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.cta-band h3 { font-size: 1.55rem; }
.cta-band p { color: var(--ink-2); margin-top: 6px; }

/* ---------- inner page head ---------- */
.page-head { position: relative; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0; opacity: .55; pointer-events: none;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: linear-gradient(90deg, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}
.page-head .container { position: relative; padding-block: clamp(34px, 6vw, 64px); display: grid; gap: 18px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.page-head h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); letter-spacing: -.035em; max-width: 20ch; font-weight: 540; }
.page-head .lede { max-width: 62ch; color: var(--ink-2); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badges .chip { background: var(--surface); border: 1px solid var(--line); }
.badges .chip .ico { width: 14px; height: 14px; color: var(--gold-2); }
.ur-tag { font-family: var(--f-urdu); font-size: 1.1rem; color: var(--ink-2); }

.page-body { padding-block: clamp(28px, 5vw, 56px) clamp(48px, 7vw, 88px); }

/* ---------- panels & shared tool UI ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); min-width: 0; }

.drop {
  display: grid; justify-items: center; gap: 6px; text-align: center; cursor: pointer; padding: clamp(32px, 6vw, 56px) 24px;
  border: 2px dashed var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink-2);
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.drop:hover { border-color: var(--brand); background: var(--surface-2); }
.drop.over { border-color: var(--brand); background: var(--brand-soft); transform: scale(1.005); }
.drop .drop-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 8px; }
.drop .drop-ic .ico { width: 28px; height: 28px; }
.drop strong { color: var(--ink); font-size: 1.1rem; font-weight: 640; }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.status { color: var(--ink-2); font-size: .94rem; min-height: 1.5em; }
.note { display: block; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: var(--r); padding: 14px 18px; font-size: .94rem; margin: 16px 0; color: var(--ink); }
.checker { background-image: linear-gradient(45deg, #d8d8d8 25%, transparent 25%), linear-gradient(-45deg, #d8d8d8 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #d8d8d8 75%), linear-gradient(-45deg, transparent 75%, #d8d8d8 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; background-color: #fff; }
.preview { border: 1px solid var(--line); border-radius: var(--r); min-height: 220px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--surface); }
.preview img, .preview canvas { max-width: 100%; max-height: 560px; display: block; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 18px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; font-size: .78rem; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.item .th { height: 130px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 10px; }
.item img { max-width: 100%; max-height: 130px; }
.item .nm { word-break: break-all; margin: 8px 0 6px; color: var(--ink-2); }
.item button { min-height: 32px; padding: 0 12px; font-size: .78rem; margin: 2px 4px 0 0; border-radius: 9px; }
.ad-slot { margin: 32px 0; min-height: 90px; text-align: center; }
.ad-slot.empty { display: none; }
#oh, #eh { margin-top: 28px; font-size: 1.3rem; }
#others div, #ext div { padding: 5px 0; }

.prose.info, .prose.card { max-width: none; }
.prose { max-width: 70ch; color: var(--ink-2); }
.prose.info { margin-top: 36px; padding: clamp(22px, 4vw, 34px); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.prose h2 { font-size: 1.5rem; margin-bottom: 10px; color: var(--ink); }
.prose code { font-family: var(--f-mono); font-size: .86em; background: var(--bg-2); padding: 2px 7px; border-radius: 6px; }

/* ---------- document pages (about, privacy, terms, contact) ---------- */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 820px; }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 5vw, 56px); box-shadow: var(--shadow-sm); }
.doc h2 { font-size: 1.6rem; margin: 38px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc p { color: var(--ink-2); margin-top: 12px; }
.doc strong { color: var(--ink); }
.doc ul { margin: 12px 0 0; padding-left: 1.2em; color: var(--ink-2); display: grid; gap: 8px; }
.doc li::marker { color: var(--gold-2); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
@media (max-width: 760px) { .values { grid-template-columns: minmax(0, 1fr); } }
.value { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); display: grid; gap: 8px; }
.value .ico { width: 26px; height: 26px; color: var(--brand); }
.value h3 { font-size: 1.15rem; }
.value p { margin: 0; font-size: .94rem; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 820px; }
@media (max-width: 680px) { .contact-cards { grid-template-columns: minmax(0, 1fr); } }
.contact-card { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; gap: 10px; align-content: start; }
.contact-card .ico { width: 28px; height: 28px; color: var(--brand); }
.contact-card h3 { font-size: 1.3rem; }
.contact-card p { color: var(--ink-2); font-size: .96rem; }
.contact-card a.btn { justify-self: start; margin-top: 6px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 24px; background: linear-gradient(170deg, #080D26, #0B1233); color: #AEBBE3; padding-top: 64px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
.site-footer .logo { color: #fff; }
.site-footer .logo .px { color: #8CA0FF; }
.foot-brand p { margin-top: 18px; max-width: 38ch; font-size: .95rem; }
.site-footer h4 { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #AEBBE3; text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--gold); }
.foot-bottom { margin-top: 52px; padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .86rem; color: #8E9BC6; }
.foot-bottom .heart { color: var(--gold); }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
}
