/* fonts:start */
/* Self-hosted fonts (SIL Open Font License): Alexandria, IBM Plex Sans Arabic */
@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/assets/fonts/alexandria-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/assets/fonts/alexandria-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/plex-arabic-400-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/plex-arabic-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/plex-arabic-500-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/plex-arabic-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/plex-arabic-600-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/plex-arabic-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/plex-arabic-700-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/plex-arabic-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* fonts:end */
:root {
  --navy: #10151D;
  --navy-2: #161D28;
  --navy-3: #1F2836;
  --line: #2A3546;
  --gold: #D4AF5A;
  --gold-2: #E6C77E;
  --gold-soft: rgba(212, 175, 90, .12);
  --ink: #F5F1E8;
  --muted: #A9B0BC;
  --red: #E06C5A;
  --green: #5FBF8A;
  --wa: #25D366;
  --r: 18px;
  --wrap: 1120px;
  --font-head: "Alexandria", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: radial-gradient(640px 340px at 72% 90px, rgba(212, 175, 90, .12), transparent 70%) no-repeat, radial-gradient(520px 300px at 8% 420px, rgba(70, 100, 150, .12), transparent 70%) no-repeat, var(--navy); color: var(--ink); font: 400 16px/1.8 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.4; margin: 0 0 .5em; letter-spacing: 0; }
h2 { font-size: clamp(24px, 4.6vw, 36px); font-weight: 700; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--gold); }
img { max-width: 100%; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
html.deep #app:not([data-ready]) { visibility: hidden; }

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

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--gold); color: var(--navy); font: 700 16px/1 var(--font-head); cursor: pointer; text-decoration: none;
  transition: transform .18s, box-shadow .18s, background .18s; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-2px); background: var(--gold-2); box-shadow: 0 10px 28px rgba(212, 175, 90, .28); }
.btn:active { transform: translateY(0); }
.btn.lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn.ghost:hover { background: var(--gold-soft); }
.btn.wa { background: var(--wa); color: var(--navy); } /* navy on WhatsApp green: 9.2:1 (white was 2:1) */
.btn.wa:hover { background: #2fe072; box-shadow: 0 10px 28px rgba(37, 211, 102, .3); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(16, 21, 29, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(42, 53, 70, .7); }
.topbar-in { max-width: var(--wrap); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { display: block; height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .15s; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current]:not(.btn) { box-shadow: 0 2px 0 var(--gold); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--navy-2); cursor: pointer; padding: 0; place-content: center; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .brand img { height: 40px; }
  .menu-btn { display: grid; }
  .nav { position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px;
    background: var(--navy); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 14px 4px; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav a[aria-current]:not(.btn) { color: var(--gold); box-shadow: none; }
  .nav-cta { margin-top: 14px; min-height: 52px; font-size: 16px; }
}

/* ---------- Layout ---------- */
main { display: block; max-width: var(--wrap); margin: 0 auto; padding: 0 16px 96px; }
main:focus { outline: none; }
section { padding: 44px 0; }
@media (min-width: 760px) { section { padding: 72px 0; } }
.sec-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.sec-head .muted { font-size: 17px; }
.kicker { display: inline-block; color: var(--gold); font: 600 14px var(--font-head); margin-bottom: 10px; }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 40px; align-items: center; padding: 48px 0 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(212, 175, 90, .35); background: var(--gold-soft);
  border-radius: 999px; color: var(--gold-2); font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 90, .2); }
.hero h1 { font-size: clamp(28px, 7.4vw, 50px); font-weight: 800; line-height: 1.45; margin-bottom: 18px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: clamp(17px, 2.6vw, 20px); color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero .cta-row .btn { flex: 1 1 220px; }
.assure { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; }
.assure li { display: inline-flex; align-items: center; gap: 6px; }
.assure .ico { width: 16px; height: 16px; color: var(--green); stroke-width: 2.6; }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.15fr .85fr; gap: 56px; padding: 80px 0 64px; }
  .hero .cta-row .btn { flex: 0 0 auto; }
}

/* Sample report card */
.mock { position: relative; margin: 0; padding: 22px; border-radius: 22px; background: linear-gradient(160deg, var(--navy-3), var(--navy-2) 60%);
  border: 1px solid var(--line); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .04); max-width: 440px; width: 100%; justify-self: center; }
.mock-tag { position: absolute; top: -12px; inset-inline-start: 20px; background: var(--navy); border: 1px solid var(--line); color: var(--muted);
  font-size: 12px; padding: 2px 12px; border-radius: 999px; }
.mock-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.mock-head b { font-family: var(--font-head); font-size: 16px; display: block; }
.mock-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.mock-ring { --v: 0; flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--navy-2) 78%, transparent 79%), conic-gradient(var(--red) calc(var(--v) * 1%), var(--navy) 0); }
.mock-ring span { font: 800 28px/1 var(--font-head); }
.mock-ring small { color: var(--muted); font-size: 11px; }
.mock-axes { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.mock-axes li { display: grid; grid-template-columns: 92px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; }
.mock-axes span { color: var(--muted); }
.mock-axes b { font-weight: 600; text-align: end; font-size: 12px; color: var(--muted); }
.mock-axes i { display: block; height: 7px; border-radius: 99px; background: var(--navy); position: relative; overflow: hidden; }
.mock-axes i::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); background: var(--c); border-radius: inherit;
  animation: grow 1.2s cubic-bezier(.2, .7, .2, 1) both .3s; }
@keyframes grow { from { width: 0; } }
.mock-issue { font-size: 14px; line-height: 1.6; padding: 12px 14px; border-radius: 12px; background: var(--navy); border-inline-start: 3px solid var(--red); margin-top: 8px; }
.mock-issue .sev { display: block; font-size: 11px; color: var(--red); font-weight: 700; margin-bottom: 2px; }
.mock-issue.blur { filter: blur(3.5px); opacity: .7; user-select: none; }

/* ---------- Proof ---------- */
.proof { padding: 20px 0 48px; }
.proof-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.proof-item { background: var(--navy-2); padding: 24px 20px; text-align: center; }
.proof-item b { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font: 800 clamp(26px, 6vw, 34px)/1.3 var(--font-head); color: var(--gold); }
.proof-item b .from { color: var(--muted); font-size: .62em; font-weight: 700; }
.proof-item b .arrow { width: 22px; height: 22px; color: var(--muted); }
.proof-item > span { display: block; color: var(--muted); font-size: 15px; margin-top: 6px; }
.proof-note { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0 0; opacity: .8; }
@media (min-width: 760px) { .proof-grid { grid-template-columns: .8fr 1.1fr 1.1fr; } }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.card { position: relative; background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px 24px; display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(212, 175, 90, .5); transform: translateY(-3px); }
.card.featured { border-color: rgba(212, 175, 90, .55); background: linear-gradient(170deg, rgba(212, 175, 90, .08), var(--navy-2) 45%); }
.card .badge { position: absolute; top: 18px; inset-inline-end: 18px; background: var(--gold); color: var(--navy); font: 700 12px var(--font-head); padding: 5px 10px; border-radius: 999px; }
.card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); }
.card .meta { list-style: none; padding: 0; margin: 0 0 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.card .meta li { font-size: 13px; padding: 3px 12px; border-radius: 999px; background: var(--navy-3); color: var(--ink); }
.card .btn { margin-top: auto; }

/* ---------- Pains ---------- */
.pain-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; counter-reset: p; }
.pain-list li { counter-increment: p; padding: 22px; border-radius: var(--r); background: var(--navy-2); border: 1px solid var(--line); border-top: 3px solid var(--red); }
.pain-list b { display: block; font: 700 18px var(--font-head); margin-bottom: 4px; }
.pain-list b::before { content: "0" counter(p); display: block; color: var(--red); font-size: 13px; margin-bottom: 6px; opacity: .9; }
.pain-list span { color: var(--muted); }

/* ---------- About ---------- */
.about { display: grid; gap: 28px; align-items: center; }
.about-photo { justify-self: center; position: relative; width: min(300px, 78vw); }
.about-photo::before { content: ""; position: absolute; inset: 10% 6% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(212, 175, 90, .22), transparent); filter: blur(20px); z-index: -1; }
.about-photo img { display: block; width: 100%; height: auto; }
.about-copy h2 { margin-bottom: 14px; }
.about-copy p { font-size: 17px; }
.roles { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.roles li { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--navy-2); border: 1px solid var(--line); }
.roles li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
@media (min-width: 860px) { .about { grid-template-columns: 340px 1fr; gap: 56px; } .about-photo { width: 320px; } }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; padding: 24px; background: var(--navy-2); border-radius: var(--r); border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy); font: 800 17px var(--font-head); margin-bottom: 14px; }
.steps b { display: block; font: 700 18px var(--font-head); margin-bottom: 4px; }
.steps span { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
details { background: var(--navy-2); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; transition: border-color .2s; }
details[open] { border-color: rgba(212, 175, 90, .45); }
summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-3); color: var(--gold); font-size: 20px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; margin: 24px 0 0; padding: 48px 22px; border-radius: 26px; border: 1px solid rgba(212, 175, 90, .5);
  background: radial-gradient(500px 220px at 50% 0%, rgba(212, 175, 90, .16), transparent 70%), var(--navy-2); }
.final-cta p { color: var(--muted); font-size: 18px; }
.final-cta .cta-row { justify-content: center; }
.final-cta .cta-row .btn { flex: 1 1 230px; max-width: 300px; }

/* ---------- Tool pages ---------- */
.tool { max-width: 640px; margin: 48px auto 0; background: var(--navy-2); border: 1px solid var(--line); border-radius: 22px; padding: 28px 22px; }
.tool h1 { font-size: clamp(24px, 5vw, 32px); }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
input, select { display: block; width: 100%; margin-top: 6px; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--navy); color: var(--ink); font: 16px var(--font-body); transition: border-color .15s; }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); line-height: 1.6; }
.check input { width: 20px; min-height: 20px; margin-top: 3px; flex: none; accent-color: var(--gold); }
.error { color: var(--red); margin: 8px 0 0; font-size: 14px; }
.error:empty { display: none; }

dialog.sheet { width: min(560px, calc(100% - 20px)); max-height: calc(100dvh - 20px); overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); border-radius: 22px; background: var(--navy-2); color: var(--ink); padding: 22px 20px 18px; }
dialog.sheet[open] { animation: sheet-in .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
dialog::backdrop { background: rgba(5, 8, 12, .72); backdrop-filter: blur(3px); }
dialog .close { position: absolute; top: 10px; inset-inline-end: 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--navy-3); border: 0; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
dialog .close:hover { color: var(--ink); }
dialog h2 { font-size: 22px; margin-bottom: 6px; }
dialog .muted { font-size: 15px; }
.v-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 18px; padding-inline-end: 48px; }
.v-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-bottom: 10px; border-bottom: 3px solid var(--navy-3); transition: color .2s, border-color .2s; }
.v-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-3); font: 700 12px var(--font-head); flex: none; }
.v-steps li.on { color: var(--ink); border-color: var(--gold); }
.v-steps li.on span { background: var(--gold); color: var(--navy); }
.field { margin-bottom: 12px; }
.field label { margin-bottom: 0; }
.field .hint { color: var(--muted); opacity: .75; font-size: 12px; }
.f-err { display: block; color: var(--red); font-size: 13px; min-height: 0; margin-top: 4px; }
.f-err:empty { display: none; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red); }
#turnstile:empty { display: none; }
.reassure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.reassure .ico { width: 15px; height: 15px; color: var(--green); }
.link { background: none; border: 0; padding: 4px 2px; color: var(--gold); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.link[disabled] { color: var(--muted); text-decoration: none; cursor: default; }
.resend { text-align: center; color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.otp { letter-spacing: .55em; text-align: center; font: 700 26px var(--font-head); min-height: 60px; padding-inline-start: .55em; }

.session-bar { max-width: var(--wrap); margin: 12px auto 0; padding: 8px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted); }
.session-bar > span { display: inline-flex; align-items: center; gap: 6px; }
.session-bar .ico { width: 16px; height: 16px; color: var(--green); }
.session-bar b { color: var(--ink); font-weight: 600; }
.session-bar[hidden] { display: none; }

.progress { margin: 64px auto; max-width: 520px; text-align: center; }
.bar { height: 8px; background: var(--navy-3); border-radius: 99px; overflow: hidden; margin: 18px 0; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .6s ease; }
.progress-step { color: var(--gold); font-weight: 600; min-height: 1.8em; }

/* ---------- Report ---------- */
.report { max-width: 760px; margin: 40px auto 0; }
.score-ring { --v: 0; width: 160px; height: 160px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: conic-gradient(var(--c, var(--gold)) calc(var(--v) * 1%), var(--navy-3) 0); }
.score-ring:not(.svg) > span { width: 128px; height: 128px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; font: 800 40px var(--font-head); }
.axes { display: grid; gap: 12px; margin: 24px 0; }
.axis { background: var(--navy-2); border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); }
.axis header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.issue { border-inline-start: 4px solid var(--gold); background: var(--navy-2); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.issue.high { border-color: var(--red); }
.issue.low { border-color: var(--muted); }
.issue small { display: block; color: var(--muted); }
.gap-big { text-align: center; }
.gap-big b { display: block; font: 800 clamp(30px, 7vw, 48px) var(--font-head); color: var(--gold); }
.cta-box { margin-top: 28px; text-align: center; background: linear-gradient(135deg, var(--navy-3), var(--navy-2)); border: 1px solid var(--gold); border-radius: 20px; padding: 28px; }
.cta-box .cta-row { justify-content: center; }
.print-head { display: none; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--gold); padding-bottom: 10px; margin-bottom: 16px; }

/* ---------- WhatsApp float + footer ---------- */
.wa-float { position: fixed; bottom: max(18px, env(safe-area-inset-bottom)); left: 18px; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: var(--navy);
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0, 0, 0, .4); z-index: 25; transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); animation: pulse 2.6s infinite 2s; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }

.footer { border-top: 1px solid var(--line); background: #0C1017; }
.footer-in { max-width: var(--wrap); margin: 0 auto; padding: 40px 16px 24px; display: grid; gap: 24px; }
.footer-brand img { display: block; width: 190px; height: auto; margin-bottom: 10px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 320px; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: var(--gold); }
.footer-wa { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 18px var(--font-head); justify-self: start; }
.footer-wa .ico { width: 24px; height: 24px; color: var(--wa); }
.copy { text-align: center; color: var(--muted); font-size: 13px; margin: 0; padding: 16px; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .footer-in { grid-template-columns: 1.3fr 1fr auto; align-items: center; } }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #111; }
  .topbar, .nav, .wa-float, .footer, .no-print, dialog { display: none !important; }
  .report { margin: 0; max-width: none; }
  .axis, .issue, .cta-box { background: #fff; border-color: #ccc; color: #111; }
  .score-ring:not(.svg) > span { background: #fff; color: #111; }
  .print-head { display: flex !important; }
  @page { size: A4; margin: 14mm; }
}

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; padding: 32px 24px; }
.legal h2 { font-size: 20px; margin-top: 1.6em; color: var(--gold); }
.legal p, .legal li { color: var(--ink); opacity: .92; }
.legal ul { padding-inline-start: 1.2em; margin: .4em 0 1em; }
.legal li { margin: .35em 0; line-height: 1.8; }

/* ---------- Tool pages (hero + form grid) ---------- */
.tool-hero { padding: 40px 0 8px; text-align: center; max-width: 720px; margin: 0 auto; }
.tool-hero h1 { font-size: clamp(28px, 7vw, 44px); font-weight: 800; text-wrap: balance; }
.tool-hero h1 em { font-style: normal; color: var(--gold); }
.tool-hero .lead { color: var(--muted); font-size: clamp(16px, 2.4vw, 19px); margin: 0 auto; }
.tool-grid { display: grid; gap: 20px; padding: 28px 0 0; }
.tool-grid .tool { margin: 0; max-width: none; }
@media (min-width: 900px) { .tool-grid { grid-template-columns: 1.1fr .9fr; align-items: start; gap: 28px; } }
.tool.narrow { max-width: 560px; margin: 48px auto 0; text-align: center; }
.hint-line { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; opacity: .85; }
.suffix { position: relative; }
.suffix input { padding-inline-end: 64px; }
.suffix span { position: absolute; inset-inline-end: 1px; top: 7px; bottom: 1px; display: grid; place-items: center; padding: 0 16px; color: var(--muted);
  border-inline-start: 1px solid var(--line); font-size: 14px; }
.tool input[data-num] { font: 600 20px var(--font-head); letter-spacing: .02em; text-align: right; }
.tool input[data-num]::placeholder { font: 400 15px var(--font-body); }
.assure.center { justify-content: center; margin-top: 16px; }

.gap-preview { padding: 26px 22px; border-radius: 22px; border: 1px dashed var(--line); }
.gap-preview h2 { font-size: 20px; }
.know { list-style: none; padding: 0; margin: 0 0 20px; counter-reset: k; display: grid; gap: 12px; }
.know li { counter-increment: k; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.know li::before { content: counter(k); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font: 700 14px var(--font-head); }
.know b { font-family: var(--font-head); }
.know span { color: var(--muted); font-size: 14px; }
.mini-result { position: relative; margin: 0; padding: 22px 18px 18px; border-radius: 16px; background: var(--navy-2); border: 1px solid var(--line); text-align: center; }
.mini-result figcaption { position: absolute; top: -11px; inset-inline-start: 16px; background: var(--navy); border: 1px solid var(--line); color: var(--muted); font-size: 12px; padding: 1px 10px; border-radius: 999px; }
.mini-result p { margin: 0; color: var(--muted); font-size: 14px; }
.mini-result b { display: block; font: 800 30px var(--font-head); color: var(--red); margin: 4px 0 0; }
.mini-result b.blurred { filter: blur(6px); user-select: none; }
.mini-result span { color: var(--muted); font-size: 13px; }

/* ---------- Report: shared head ---------- */
.report-head { text-align: center; margin-bottom: 8px; }
.report-head h1 { font-size: clamp(24px, 6vw, 34px); margin-bottom: 4px; }
.report-head .muted { font-size: 14px; }
.cta-box h2 { text-wrap: balance; }
.cta-box .next { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.cta-box .next a { font-weight: 600; }

/* ---------- Report: gap ---------- */
.gap-hero { text-align: center; margin: 24px 0 8px; padding: 28px 18px; border-radius: 22px; background: var(--navy-2); border: 1px solid var(--line); }
.gap-hero.below { border-color: rgba(224, 108, 90, .45); background: radial-gradient(420px 160px at 50% 0, rgba(224, 108, 90, .12), transparent 70%), var(--navy-2); }
.gap-hero.within { border-color: rgba(212, 175, 90, .45); background: radial-gradient(420px 160px at 50% 0, rgba(212, 175, 90, .12), transparent 70%), var(--navy-2); }
.gap-hero.above { border-color: rgba(95, 191, 138, .45); background: radial-gradient(420px 160px at 50% 0, rgba(95, 191, 138, .12), transparent 70%), var(--navy-2); }
.gap-lead { font-size: clamp(16px, 3.6vw, 19px); margin: 0 0 6px; }
.gap-lead b { color: var(--ink); }
.gap-num { display: block; font: 800 clamp(34px, 10vw, 58px)/1.2 var(--font-head); }
.gap-num.loss { color: var(--red); }
.gap-num.warn { color: var(--gold); }
.gap-num.good { color: var(--green); }
.gap-unit { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.gap-year { margin: 14px 0 0; color: var(--muted); }
.gap-year b { color: var(--ink); }

.gap-viz { margin: 18px 0 0; padding: 30px 18px 18px; border-radius: 18px; background: var(--navy-2); border: 1px solid var(--line); }
.track { position: relative; height: 14px; border-radius: 99px; background: var(--navy); margin: 0 6px 22px; }
.track .range { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: repeating-linear-gradient(-45deg, rgba(212, 175, 90, .55) 0 6px, rgba(212, 175, 90, .3) 6px 12px); }
.track .marker { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; transform: translate(50%, -50%); border: 3px solid var(--navy-2); box-shadow: 0 0 0 2px currentColor; background: currentColor; }
.track .marker.below { color: var(--red); }
.track .marker.within { color: var(--gold); }
.track .marker.above { color: var(--green); }
.track .marker i { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--ink); }
.gap-legend { margin: 0; display: grid; gap: 8px; }
.gap-legend div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--navy); font-size: 14px; }
.gap-legend dt { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.gap-legend dd { margin: 0; font-weight: 600; }
.sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.sw.actual { border-radius: 50%; }
.sw.actual.below { background: var(--red); }
.sw.actual.within { background: var(--gold); }
.sw.actual.above { background: var(--green); }
.sw.range { background: rgba(212, 175, 90, .55); }
.sw.donors { background: var(--muted); }
.disclaimer { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0 0; }
@media print {
  .gap-hero, .gap-viz, .gap-legend div { background: #fff !important; border-color: #ccc; color: #111; }
  .gap-unit, .gap-year, .gap-legend dt, .disclaimer { color: #444; }
}

/* ---------- Report: scored (case / store) ---------- */
.small { font-size: 14px; }
.score-hero { display: grid; gap: 20px; align-items: center; margin: 24px 0 8px; padding: 24px 18px; border-radius: 22px; background: var(--navy-2); border: 1px solid var(--line); }
.score-main { text-align: center; }
.score-ring > span { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.score-ring span small { display: block; font: 500 13px var(--font-body); color: var(--muted); margin-top: 6px; }
.score-summary { font-size: 17px; margin: 0; text-wrap: balance; }
.page-shot { margin: 0 auto; width: min(220px, 60vw); }
.page-shot img { display: block; width: 100%; height: auto; border-radius: 18px; border: 6px solid var(--navy-3); box-shadow: var(--shadow); }
.page-shot figcaption { text-align: center; color: var(--muted); font-size: 12px; margin-top: 8px; }
@media (min-width: 720px) {
  .score-hero.with-shot { grid-template-columns: 240px 1fr; padding: 28px; }
  .score-hero.with-shot .page-shot { width: 220px; }
}
.issues-title { margin-top: 28px; }
.issues { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.issues .issue { margin: 0; padding: 16px 18px; border-radius: 14px; }
.issues .issue b { display: block; font: 700 17px/1.6 var(--font-head); margin: 4px 0 6px; }
.issues .sev { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); }
.issues .issue.high .sev { background: rgba(224, 108, 90, .14); color: var(--red); }
.issues .issue.low .sev { background: var(--navy-3); color: var(--muted); }
.issues .ev, .issues .imp { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.issues .ev span, .issues .imp span { color: var(--ink); font-weight: 600; }
@media print {
  .score-hero, .issues .issue { background: #fff !important; border-color: #ccc; color: #111; }
  .issues .ev, .issues .imp, .score-ring span small { color: #444; }
}

/* ---------- Store: upload mode ---------- */
.switch-mode { text-align: center; color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.upload-note { background: var(--gold-soft); border: 1px solid rgba(212, 175, 90, .35); color: var(--ink); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.shot-guide { margin: 0 0 14px; padding-inline-start: 20px; color: var(--muted); font-size: 14px; }
.dropzone { display: grid; place-items: center; gap: 4px; text-align: center; padding: 22px 16px; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--navy); cursor: pointer; transition: border-color .15s; margin-bottom: 12px; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--gold); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone .ico { width: 28px; height: 28px; color: var(--gold); }
.dropzone b { font-family: var(--font-head); color: var(--ink); font-size: 16px; }
.dropzone span { color: var(--muted); font-size: 13px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.shot { position: relative; margin: 0; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--navy); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-x { position: absolute; top: 4px; inset-inline-end: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(16, 21, 29, .85); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.shot-count { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.pages-read { margin: 14px 0 0; color: var(--muted); font-size: 14px; background: var(--navy-2); border: 1px solid var(--line); border-radius: 12px; }
p.pages-read { padding: 12px 16px; }
.pages-read summary { padding: 12px 16px; font-size: 14px; font-weight: 500; }
.pages-read ul { margin: 0; padding: 0 36px 12px 16px; }
.pages-read li { margin: 4px 0; }
.pages-read a { color: var(--muted); word-break: break-all; }
@media print { .pages-read { background: #fff !important; } }
.shot-count.busy { color: var(--gold); }

/* ---------- Report: share + shared view ---------- */
.share-row { display: flex; justify-content: center; margin-top: 12px; }
.btn.share { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.share:hover { background: var(--navy-3); }
.report-meta a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.report-meta a:hover { color: var(--gold); }
/* On phones the floating button sat on top of scores and notes; the report has its own WhatsApp button */
@media (max-width: 720px) { .on-report .wa-float { display: none; } }
.shared-banner { margin: 20px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--navy-2); border: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }
.toast { position: fixed; bottom: 92px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--navy); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; z-index: 40; box-shadow: var(--shadow); }
.progress .proof-line { margin-top: 28px; padding: 14px 16px; border-radius: 14px; background: var(--navy-2); border: 1px solid var(--line); color: var(--muted); font-size: 15px; transition: opacity .4s; }
.progress .proof-line b { color: var(--gold); }

/* ---------- Print / PDF (A4) — final rules, override the earlier print blocks ---------- */
.print-only, .print-foot { display: none; }
@media print {
  @page { size: A4; margin: 12mm 12mm 16mm; }
  html, body { background: #fff !important; color: #1a1a1a !important; font-size: 11.5pt; }
  * { box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; }
  .topbar, .session-bar, .wa-float, .footer, .no-print, dialog, .skip, .share-row, .toast, .cta-row { display: none !important; }
  main { padding: 0 !important; max-width: none; }
  .report { margin: 0; max-width: none; }
  a { color: inherit !important; text-decoration: none; }
  h1, h2, h3, b, .issues .issue b, .gap-lead b, .gap-year b, .score-summary { color: #10151D !important; }
  .muted, .report-head .muted, .disclaimer, .gap-unit, .gap-year, .issues .ev, .issues .imp, .pages-read, .pages-read a { color: #444 !important; }
  .kicker { color: #8A6A1E !important; }

  .print-head { display: flex !important; justify-content: space-between; align-items: center; gap: 12mm; border: 0; padding: 0 0 4mm; margin: 0 0 4mm; border-bottom: 1.5pt solid #D4AF5A; }
  .print-head img { height: 22mm; width: auto; border-radius: 3mm; }
  .print-head div { display: grid; text-align: start; font-size: 10pt; color: #444; }
  .print-head div b { font: 700 13pt var(--font-head); }
  .print-foot { display: block !important; position: fixed; bottom: 0; left: 0; right: 0; text-align: center; font-size: 8.5pt; color: #666; border-top: 0.5pt solid #ddd; padding-top: 2mm; }
  .report-head { margin-bottom: 2mm; }
  .report-head h1 { font-size: 20pt; }

  /* Keep coloured scores, bars and tags in the PDF (browsers drop backgrounds by default) */
  .score-ring, .bar, .bar i, .track, .track .range, .track .marker, .sw, .issues .sev, .issue, .mock-ring {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .score-ring { width: 34mm; height: 34mm; }
  .score-ring > span { width: 27mm; height: 27mm; background: #fff !important; color: #10151D !important; font-size: 24pt; }
  .score-ring span small { color: #666 !important; }
  .bar { background: #ECECEC !important; }
  .track { background: #ECECEC !important; }
  .track .marker { border-color: #fff; }
  .track .marker i { color: #10151D; }

  .score-hero, .gap-hero, .gap-viz, .axis, .issues .issue, .gap-legend div, .pages-read, .cta-box {
    background: #fff !important; border: 0.75pt solid #D9D9D9 !important; color: #1a1a1a;
  }
  .score-hero { padding: 5mm; margin: 4mm 0; }
  .score-hero.with-shot { grid-template-columns: 42mm 1fr; }
  .page-shot { width: 42mm !important; }
  .page-shot img { border: 0.75pt solid #D9D9D9; border-radius: 3mm; }
  .axes { gap: 2.5mm; margin: 4mm 0; }
  .axis { padding: 3mm 4mm; }
  .issues { gap: 3mm; }
  .issues .issue { padding: 3.5mm 4mm; border-inline-start-width: 2.5pt !important; }
  .issues .issue.high { border-inline-start-color: #E06C5A !important; }
  .issues .issue.medium { border-inline-start-color: #D4AF5A !important; }
  .axis, .issues .issue, .gap-legend div, .score-hero, .gap-hero, .gap-viz, .cta-box { break-inside: avoid; }
  h2 { break-after: avoid; }
  .gap-num.loss { color: #C4513F !important; }
  .gap-num.warn { color: #8A6A1E !important; }
  .gap-num.good { color: #2E8B57 !important; }
  .pages-read summary { list-style: none; }
  .pages-read summary::-webkit-details-marker { display: none; }

  .cta-box { border: 1.5pt solid #D4AF5A !important; padding: 6mm; margin-top: 6mm; }
  .cta-box .next { display: none; }
  .print-only { display: block !important; }
  .print-contact { font-size: 12pt; color: #10151D; margin: 3mm 0 0; }
  .print-contact span { font-size: 9.5pt; color: #444; }
}

/* SVG score ring (replaces the conic-gradient ring in reports) */
.score-ring.svg { position: relative; background: none; width: 160px; height: 160px; }
.score-ring.svg svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg) scaleY(-1); }
.ring-track { fill: none; stroke: var(--navy-3); stroke-width: 3.2; }
.ring-val { fill: none; stroke-width: 3.2; stroke-linecap: round; transition: stroke-dasharray 1s ease; }
.score-ring.svg > span { position: relative; width: auto; height: auto; background: none; font: 800 40px var(--font-head); }
@media print {
  .score-ring.svg { width: 34mm; height: 34mm; }
  .score-ring.svg > span { background: none !important; width: auto; height: auto; font-size: 24pt; }
  .ring-track { stroke: #E6E6E6; }
  .ring-val, .ring-track { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* Chrome won't fragment grids across pages: lay these out as blocks so page 1 isn't left empty */
  .axes, .issues, .gap-legend { display: block !important; }
  .axes .axis, .issues .issue, .gap-legend div { margin-bottom: 2.5mm; }
  .issues .ev span, .issues .imp span { color: #10151D !important; }
  .issues .issue.low .sev { background: #EEE !important; color: #444 !important; }
  .shared-banner { background: #fff !important; border: 0.75pt solid #D9D9D9; color: #444 !important; }
  .pages-read summary::after { display: none !important; }
}
@media print {
  /* Calculator report fits on one A4 page */
  .gap-hero { padding: 5mm 4mm; margin: 3mm 0; }
  .gap-num { font-size: 30pt; }
  .gap-viz { padding: 6mm 4mm 3mm; margin-top: 3mm; }
  .gap-legend div { padding: 2mm 3mm; margin-bottom: 1.5mm; }
  .report-head h1 { font-size: 18pt; }
  .print-head img { height: 18mm; }
  .cta-box { padding: 5mm; margin-top: 4mm; }
  .cta-box h2 { font-size: 16pt; }
}
.spam-hint { color: var(--muted); font-size: 13px; margin: -6px 0 12px; }

/* ---------- Certificates ---------- */
/* Intro video (vertical, captions burned in) */
.intro-video { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 24px 0 56px; }
.vid-copy h2 { font: 800 clamp(26px, 4.4vw, 38px)/1.35 var(--font-head); margin: 0 0 14px; }
.vid-copy .muted { font-size: 17px; line-height: 1.9; margin: 0 0 24px; }
.vid-frame { position: relative; margin: 0; justify-self: center; width: min(100%, 360px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; border: 1px solid rgba(212, 175, 90, .45); background: #0B0F15; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.vid-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vid-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid-frame.playing .vid-poster { display: none; }
.vid-play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; border: 0; cursor: pointer; color: var(--navy); background: linear-gradient(180deg, rgba(16, 21, 29, 0) 45%, rgba(16, 21, 29, .55)); font: 700 15px var(--font-head); }
.vid-play svg { width: 74px; height: 74px; padding: 20px 18px 20px 22px; border-radius: 50%; background: var(--gold); fill: var(--navy); box-shadow: 0 0 0 10px rgba(212, 175, 90, .25); transition: transform .2s; }
.vid-play:hover svg, .vid-play:focus-visible svg { transform: scale(1.07); }
.vid-play span { color: var(--offwhite, #F5F1E8); background: rgba(16, 21, 29, .7); padding: 6px 14px; border-radius: 999px; }
.vid-frame.playing .vid-play { display: none; }
@media (max-width: 900px) {
  .intro-video { grid-template-columns: 1fr; gap: 28px; text-align: center; padding-bottom: 44px; }
  .intro-video .cta-row { justify-content: center; }
  .vid-frame { width: min(76%, 280px); order: -1; }
}
@media print { .intro-video { display: none !important; } }

.certs { padding-top: 24px; }
.cert-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cert { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cert-open { display: block; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--navy-2); cursor: zoom-in; transition: border-color .2s, transform .2s; }
.cert-open:hover { border-color: rgba(212, 175, 90, .6); transform: translateY(-2px); }
.cert-open img { display: block; width: 100%; height: auto; aspect-ratio: 856 / 608; object-fit: cover; border-radius: 9px; background: #F5F1E8; }
.cert-cap { display: grid; gap: 2px; padding-inline: 4px; }
.cert-cap b { font: 700 15px/1.6 var(--font-head); }
.cert-cap span { color: var(--muted); font-size: 14px; line-height: 1.6; }
.cert-cap small { color: var(--gold); font-weight: 600; font-size: 13px; }
.certs-cta { margin: 26px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; color: var(--muted); font-size: 16px; }
@media (max-width: 900px) {
  /* Swipeable row on phones and tablets */
  .cert-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 10px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .cert-list::-webkit-scrollbar { display: none; }
  .cert { scroll-snap-align: center; }
}

.cert-dialog { width: min(920px, calc(100% - 20px)); max-height: calc(100dvh - 20px); border: 1px solid var(--line); border-radius: 18px; background: var(--navy-2); color: var(--ink); padding: 18px; }
.cert-dialog::backdrop { background: rgba(5, 8, 12, .85); }
.cert-dialog figure { margin: 0; }
.cert-dialog img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 210px); object-fit: contain; border-radius: 10px; background: #F5F1E8; }
.cert-dialog figcaption { display: grid; gap: 2px; margin-top: 12px; }
.cert-dialog figcaption b { font: 700 16px var(--font-head); }
.cert-dialog figcaption span { color: var(--muted); font-size: 14px; }
.cert-dialog figcaption small { color: var(--gold); font-weight: 600; }
.cert-dialog .close { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(16, 21, 29, .85); color: var(--ink); font-size: 24px; cursor: pointer; }
.cert-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--muted); font-size: 14px; }
@media print { .certs { display: none; } }
@media print {
  /* Scored reports in two pages: the four axes sit 2×2 (small enough not to need page fragmentation) */
  .axes { display: grid !important; grid-template-columns: 1fr 1fr; gap: 2.5mm; }
  .axes .axis { margin-bottom: 0; }
  /* Page 1: score and axes; page 2: notes and contact (also stops the heading splitting at the page edge) */
  .issues-title { margin-top: 0; padding-top: 3mm; line-height: 1.5; break-before: page; }
}

/* ---------- PDF design (final print layer) ----------
   Navy cover band, score + axes in one panel, numbered notes, closing box with photo and QR, page numbers */
.print-cover, .print-score, .pc-close { display: none; }
@media print {
  @page { size: A4; margin: 12mm 0 16mm;
    @bottom-right { content: "عبدالله | تسويق المتاجر الخيرية  ·  واتساب 0536968438  ·  abdullah-charity.com"; font: 8.5pt "IBM Plex Sans Arabic", sans-serif; color: #777; margin-right: 12mm; border-top: 0.5pt solid #E3DCCB; vertical-align: middle; }
    @bottom-left { content: counter(page) " / " counter(pages); font: 8.5pt "IBM Plex Sans Arabic", sans-serif; color: #777; margin-left: 12mm; border-top: 0.5pt solid #E3DCCB; vertical-align: middle; } }
  @page :first { margin-top: 0; }
  .report { padding: 0 12mm; }
  .print-head, .report-head, .shared-banner, .score-hero, .axes { display: none !important; }
  .print-cover, .print-score, .pc-close { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* 1. Cover band */
  .print-cover { display: flex !important; align-items: center; justify-content: space-between; gap: 8mm;
    margin: 0 -12mm 7mm; padding: 9mm 12mm 8mm; background: #10151D !important; border-bottom: 2pt solid #D4AF5A; }
  .print-cover img { height: 21mm; width: auto; }
  .print-cover div { display: grid; gap: 1.2mm; text-align: start; }
  .print-cover .pc-kicker { color: #D4AF5A !important; font: 600 10.5pt var(--font-head); letter-spacing: .02em; }
  .print-cover .pc-org { color: #F5F1E8 !important; font: 800 19pt/1.35 var(--font-head); }
  .print-cover .pc-meta { color: #A9B0BC !important; font-size: 8.5pt; }

  /* 2. Score, verdict and axes in one panel */
  .print-score { display: grid !important; grid-template-columns: 46mm 1fr; gap: 4mm 8mm; align-items: center;
    padding: 6mm; border: 0.75pt solid #E3DCCB; border-radius: 4mm; background: #FBF9F4 !important; break-inside: avoid; }
  .print-score.with-shot { grid-template-columns: 30mm 46mm 1fr; }
  .print-score .page-shot { width: 30mm !important; margin: 0; }
  .print-score .page-shot figcaption { font-size: 7pt; }
  .ps-main { display: grid; justify-items: center; gap: 2mm; }
  .ps-main .score-ring.svg { width: 38mm; height: 38mm; }
  .ps-main .score-ring.svg > span { font-size: 26pt; color: #10151D !important; }
  .ps-verdict { font: 700 11pt var(--font-head); }
  .ps-axes { list-style: none; margin: 0; padding: 0; display: grid; gap: 3.2mm; }
  .ps-axes li { display: grid; grid-template-columns: 1fr auto; gap: 1.2mm 4mm; align-items: baseline; }
  .ps-axes span { font: 700 10.5pt var(--font-head); color: #10151D; }
  .ps-axes em { font-style: normal; font-size: 10pt; color: #444; direction: ltr; }
  .ps-axes .bar { grid-column: 1 / -1; height: 2.2mm; border-radius: 2mm; background: #E9E5DC !important; overflow: hidden; }
  .ps-axes .bar i { display: block; height: 100%; border-radius: 2mm; }
  .ps-summary { grid-column: 1 / -1; margin: 1mm 0 0; padding-top: 4mm; border-top: 0.75pt solid #E3DCCB; font-size: 11pt; line-height: 1.8; color: #1a1a1a; }

  /* 3. Numbered notes, coloured by severity */
  .issues-title { font-size: 17pt; padding-top: 2mm; }
  .issues { counter-reset: note; }
  .issues .issue { counter-increment: note; position: relative; padding-inline-start: 15mm !important; }
  .issues .issue::before { content: counter(note); position: absolute; inset-inline-start: 4mm; top: 4mm; width: 8mm; height: 8mm; border-radius: 50%;
    display: grid; place-items: center; font: 800 12pt/8mm var(--font-head); text-align: center; color: #fff; background: #D4AF5A;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .issues .issue.high::before { background: #E06C5A; }
  .issues .issue.low::before { background: #A9B0BC; }
  .issues .issue { padding-top: 3mm !important; padding-bottom: 3mm !important; }
  .issues .issue b { font-size: 12.5pt; margin: 1mm 0 1.5mm; }
  .issues .ev, .issues .imp { font-size: 10pt; line-height: 1.7; }

  /* 4. Closing box: navy, photo, number and QR */
  .cta-box { background: #10151D !important; border: 1.5pt solid #D4AF5A !important; border-radius: 4mm; padding: 7mm 8mm !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; text-align: center; }
  .cta-box h2 { color: #F5F1E8 !important; font-size: 17pt; margin: 0 0 1.5mm; }
  .cta-box > .muted { color: #C9CDD4 !important; font-size: 10.5pt; margin: 0 0 5mm; }
  .pc-close { display: grid !important; grid-template-columns: 22mm 1fr 30mm; gap: 6mm; align-items: center; text-align: start;
    padding-top: 5mm; border-top: 0.75pt solid rgba(212, 175, 90, .45); }
  .pc-photo { width: 22mm; height: 22mm; border-radius: 50%; object-fit: cover; }
  .pc-who { display: grid; gap: 1mm; }
  .pc-who > b { color: #F5F1E8 !important; font: 800 14pt var(--font-head); }
  .pc-who > span { color: #A9B0BC !important; font-size: 9pt; }
  .pc-who .pc-num { color: #D4AF5A !important; font-size: 11pt; margin-top: 1mm; }
  .pc-who .pc-num b { color: #D4AF5A !important; font: 800 15pt var(--font-head); }
  .pc-who .pc-link { font-size: 8pt; }
  .pc-qr { margin: 0; display: grid; justify-items: center; gap: 1.5mm; }
  .pc-qr img { width: 26mm; height: 26mm; padding: 1.5mm; background: #fff; border-radius: 2mm; }
  .pc-qr figcaption { color: #D4AF5A !important; font-size: 7.5pt; }

  /* 5. Footer and page number live in the @page margin boxes above, so they repeat on every page */
  .print-foot { display: none !important; }
  /* Notes flow right after the score panel (no forced page break) */
  .issues-title { break-before: auto; margin-top: 7mm; }
}

/* ===== Blog (from the blog handoff; was blog.css) ===== */
/* ---------- المدونة — تبني على رموز styles.css ---------- */

/* بطاقات المقالات */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.post-card { position: relative; display: flex; flex-direction: column; background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: rgba(212, 175, 90, .5); transform: translateY(-3px); }
.post-card:hover .post-cover svg { transform: scale(1.04); }
.post-cover { display: block; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--navy-3); }
.post-cover svg { display: block; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.post-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; min-width: 0; }
.post-card h3 { font-size: 19px; line-height: 1.6; margin: 0; text-wrap: balance; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; } /* البطاقة كلها قابلة للضغط */
.post-card h3 a:focus-visible { outline: none; }
.post-card:has(h3 a:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.post-excerpt { color: var(--muted); font-size: 15px; margin: 0; }
.post-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font: 600 14px var(--font-head); }
.post-more .ico { width: 16px; height: 16px; transition: transform .2s; }
.post-card:hover .post-more .ico { transform: translateX(-4px); }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; color: var(--muted); font-size: 13px; }
.post-meta span + span::before { content: "·"; margin-inline-end: 14px; color: var(--line); }
.post-meta .tag + span::before { content: none; }
.tag { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-2); font: 600 12.5px var(--font-head); }

/* المقال المميز */
.post-card.featured { margin-bottom: 20px; }
@media (min-width: 860px) {
  .post-card.featured { display: grid; grid-template-columns: 1.15fr 1fr; }
  .post-card.featured .post-cover { aspect-ratio: auto; height: 100%; min-height: 320px; }
  .post-card.featured .post-card-body { padding: 36px 34px; justify-content: center; gap: 14px; }
  .post-card.featured h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.5; }
  .post-card.featured .post-excerpt { font-size: 17px; }
}
.post-card.featured { border-color: rgba(212, 175, 90, .45); }

/* صفحة المدونة */
.blog-hero { padding-bottom: 0; }
.blog-filter { display: flex; gap: 8px; overflow-x: auto; padding: 28px 2px 6px; margin-bottom: 18px; scrollbar-width: none; justify-content: flex-start; }
.blog-filter::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .blog-filter { justify-content: center; flex-wrap: wrap; } }
.chip { flex: none; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--navy-2); color: var(--muted); font: 600 14px var(--font-body); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.chip:hover { color: var(--ink); border-color: rgba(212, 175, 90, .5); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.blog-empty { text-align: center; padding: 40px 0; }
.blog-sub { margin-top: 64px; }

/* قسم المدونة في الرئيسية */
.blog-latest-more { text-align: center; margin: 28px 0 0; }

/* ---------- صفحة المقال ---------- */
.read-progress { position: fixed; top: env(safe-area-inset-top, 0px); inset-inline: 0; height: 3px; z-index: 40; pointer-events: none; }
.read-progress i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 28px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-hidden] { color: var(--line); }

.post-head { max-width: 800px; padding: 22px 0 26px; }
.post-head h1 { font-size: clamp(27px, 5.4vw, 42px); font-weight: 800; line-height: 1.5; margin: 16px 0 22px; text-wrap: balance; }
.byline { display: flex; align-items: center; gap: 12px; }
.byline img { width: 48px; height: 48px; object-fit: cover; object-position: top; border-radius: 50%; background: var(--navy-3); border: 1.5px solid var(--gold); }
.byline b { display: block; font-family: var(--font-head); font-size: 15px; }
.byline span { color: var(--muted); font-size: 13.5px; }

.post-hero-cover { margin: 0 0 40px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 9; max-width: 100%; }
.post-hero-cover svg { display: block; width: 100%; height: 100%; }
@media (max-width: 600px) { .post-hero-cover { aspect-ratio: 16 / 9; border-radius: 16px; } }

.post-layout { display: grid; gap: 32px; }
@media (min-width: 1000px) { .post-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; } }
.post-toc { align-self: start; background: var(--navy-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
@media (min-width: 1000px) { .post-toc { position: sticky; top: 96px; } }
.post-toc b { font: 700 14px var(--font-head); color: var(--gold); }
.post-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.post-toc a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14.5px; line-height: 1.6; border-inline-start: 2px solid transparent; transition: color .15s, background .15s; }
.post-toc a:hover { color: var(--ink); background: var(--navy-3); }
.post-toc a[aria-current] { color: var(--ink); border-inline-start-color: var(--gold); background: var(--gold-soft); }

.post-body { max-width: 720px; min-width: 0; font-size: 18px; line-height: 2.05; }
.post-body > p, .post-body li { color: rgba(245, 241, 232, .9); }
.post-body .lede { font-size: 20px; color: var(--ink); line-height: 1.95; }
.post-body h2 { font-size: clamp(22px, 3.6vw, 27px); margin: 1.9em 0 .6em; scroll-margin-top: 96px; }
.post-body ul, .post-body ol { padding-inline-start: 1.3em; margin: 0 0 1.2em; display: grid; gap: 8px; }
.post-body li::marker { color: var(--gold); font-weight: 700; }
.post-body b { color: var(--ink); }

.post-note { margin: 2em 0 0; padding: 20px 22px; border-radius: 16px; background: var(--gold-soft); border: 1px solid rgba(212, 175, 90, .35); color: var(--ink) !important; }
.post-note b { color: var(--gold); }

.post-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 2em 0; padding: 22px 24px; border-radius: 18px; background: linear-gradient(160deg, rgba(212, 175, 90, .14), var(--navy-2) 60%); border: 1px solid rgba(212, 175, 90, .5); }
.post-cta div { flex: 1 1 260px; min-width: 0; }
.post-cta b { font: 700 18px/1.6 var(--font-head); display: block; }
.post-cta p { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.post-cta .btn { flex: none; }

.post-calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; margin: 1.4em 0; }
.post-calc div { background: var(--navy-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; line-height: 1.6; }
.post-calc span, .post-calc small { color: var(--muted); font-size: 13.5px; }
.post-calc b { font: 800 22px/1.5 var(--font-head); color: var(--gold); font-variant-numeric: tabular-nums; direction: ltr; text-align: right; }
.post-calc .bad b { color: var(--red); }

.post-segs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 1.2em 0 1.6em; }
.post-segs div { background: var(--navy-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; line-height: 1.7; }
.post-segs b { display: block; font-family: var(--font-head); color: var(--gold-2); font-size: 16px; }
.post-segs span { color: var(--muted); font-size: 14.5px; }

.post-steps { display: grid; gap: 10px; margin: 1.2em 0 1.4em; counter-reset: s; }
@media (min-width: 640px) { .post-steps { grid-template-columns: repeat(3, 1fr); } }
.post-steps div { position: relative; background: var(--navy-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; line-height: 1.7; }
.post-steps span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--navy); font: 800 14px var(--font-head); margin-bottom: 10px; }
.post-steps b { font-family: var(--font-head); font-size: 16px; display: block; }
.post-steps p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }

.post-compare { display: grid; gap: 10px; margin: 1.2em 0 1.4em; }
@media (min-width: 640px) { .post-compare { grid-template-columns: .7fr 1.3fr; } }
.post-compare div { border-radius: 14px; padding: 14px 18px; line-height: 1.7; border: 1px solid var(--line); background: var(--navy-2); }
.post-compare span { display: block; font: 700 12.5px var(--font-head); margin-bottom: 4px; }
.post-compare .bad span { color: var(--red); }
.post-compare .good { border-color: rgba(95, 191, 138, .5); }
.post-compare .good span { color: var(--green); }
.post-compare b { font-size: 16.5px; }

.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.post-share span { flex: 1 1 100%; }
@media (min-width: 640px) { .post-share span { flex: 0 1 auto; margin-inline-end: 6px; } }

.author-box { display: flex; gap: 20px; align-items: flex-start; margin-top: 28px; padding: 24px; border-radius: 20px; background: var(--navy-2); border: 1px solid var(--line); line-height: 1.85; }
.author-box img { width: 96px; height: 96px; flex: none; object-fit: cover; object-position: top; border-radius: 50%; border: 2px solid var(--gold); background: var(--navy-3); }
.author-box > div { min-width: 0; }
.author-box .kicker { margin: 0; }
.author-box b { display: block; font: 700 19px var(--font-head); }
.author-box p { color: var(--muted); font-size: 15px; margin: 6px 0 14px; }
@media (max-width: 520px) { .author-box { flex-direction: column; } .author-box img { width: 72px; height: 72px; } }

.related { padding-top: 72px; }

/* خمس بطاقات تحت المميز: صف من اثنتين ثم صف من ثلاث، بدون فراغ */
@media (min-width: 960px) {
  .blog-list:not(.filtered) .post-grid { grid-template-columns: repeat(6, 1fr); }
  .blog-list:not(.filtered) .post-grid > .post-card { grid-column: span 2; }
  .blog-list:not(.filtered) .post-grid > .post-card:nth-child(-n+2) { grid-column: span 3; }
}
