/* COD Shield site. Brand: emerald → navy, Inter + IBM Plex Sans Arabic.
   Logical properties (inline/block) everywhere so Arabic pages mirror on their own. */
:root {
  --emerald: #06a866;
  --green: #037a62;
  --teal: #024b5e;
  --navy: #023a58;
  --navy-deep: #01283d;
  --mint: #b4f5c9;
  --mint-soft: #e6f8ed;
  --ink: #0e2a33;
  --muted: #4b6670;
  --line: #dbe7e2;
  --bg: #ffffff;
  --tint: #f3f8f6;
  --amber: #f0a13a;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  --wrap: 1160px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--font); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
body.lang-ar { font-family: var(--font-ar); font-size: 17.5px; line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--emerald); }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.022em; text-wrap: balance; margin: 0; color: var(--ink); }
.lang-ar h1, .lang-ar h2, .lang-ar h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.narrow { max-width: 780px; }
.center { text-align: center; display: grid; justify-items: center; gap: 12px; margin-top: 28px; }
.small { font-size: 14px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { inset-inline-start: 12px; }
.email { user-select: all; font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 11px; font-weight: 650; font-size: 16px; text-decoration: none;
  border: 1.5px solid transparent; transition: background .15s, transform .15s, border-color .15s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
/* Deeper green keeps white button text above 4.5:1 contrast; emerald stays for icons and accents. */
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px -8px rgba(6, 168, 102, .7); }
.btn-primary:hover { background: #026a55; color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta-note { margin-top: 14px; font-size: 14.5px; color: inherit; opacity: .85; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); display: inline-block; flex: none; box-shadow: 0 0 0 4px rgba(240, 161, 58, .22); }
.dot-green { background: var(--emerald); box-shadow: 0 0 0 4px rgba(6, 168, 102, .2); }
.dot-amber { background: var(--amber); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo img { border-radius: 9px; }
.logo:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: 15.5px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--tint); color: var(--green); }
.nav .lang { color: var(--muted); }
.mobile-nav { display: none; margin-inline-start: auto; }
.mobile-nav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--line); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; display: block; }
.mobile-panel { position: absolute; inset-inline: 0; top: 66px; background: #fff; border-bottom: 1px solid var(--line); padding: 12px max(20px, env(safe-area-inset-left, 0px)) 20px; display: grid; gap: 4px; box-shadow: 0 20px 30px -20px rgba(2, 58, 88, .25); }
.mobile-panel a:not(.btn) { padding: 12px 8px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--tint); }
.mobile-panel .btn { margin-top: 10px; }
@media (max-width: 920px) {
  .nav, .header-cta { display: none; }
  .mobile-nav { display: block; }
}

/* ---------- hero (home) ---------- */
.hero {
  color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(6, 168, 102, .55), transparent 60%),
              linear-gradient(135deg, #04704f 0%, var(--teal) 48%, var(--navy-deep) 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; background: url(/img/art/bg-top.webp) center / cover no-repeat; opacity: .55; mix-blend-mode: screen; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 72px 84px; }
.hero h1 { color: #fff; font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; letter-spacing: -0.035em; }
.lang-ar .hero h1 { font-size: clamp(34px, 4.6vw, 54px); letter-spacing: 0; }
.hero .lede { font-size: clamp(18px, 1.6vw, 20px); color: rgba(255, 255, 255, .88); margin-top: 20px; max-width: 56ch; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.lang-ar .eyebrow { letter-spacing: 0; font-size: 15px; text-transform: none; }
.eyebrow-light { color: var(--mint); }
.hero-shots { position: relative; display: grid; gap: 22px; min-width: 0; }
.shot { margin: 0; background: #fff; border-radius: 16px; padding: 34px 16px 14px; position: relative; box-shadow: 0 30px 60px -28px rgba(0, 20, 30, .6); }
.shot img { border-radius: 8px; }
.shot figcaption {
  position: absolute; top: -14px; inset-inline-start: 18px; background: var(--navy-deep); color: #fff;
  font-size: 14px; font-weight: 650; padding: 6px 14px; border-radius: 999px; display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.shot-2 { margin-inline-start: 36px; }
.hero-shield { position: absolute; width: 150px; inset-inline-end: -20px; top: -54px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); pointer-events: none; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 52px 64px; }
  .shot figcaption { white-space: normal; inset-inline-end: 14px; line-height: 1.35; }
  .hero-shield { width: 110px; top: -40px; inset-inline-end: -6px; }
  .shot-2 { margin-inline-start: 0; }
}
@media (max-width: 600px) { .hero-shield { display: none; } .shot { padding-top: 44px; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--tint), #fff); border-bottom: 1px solid var(--line); padding-block: 64px 52px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; max-width: 22ch; }
.page-hero .lede { font-size: 19px; color: var(--muted); margin-top: 16px; max-width: 62ch; }
.page-hero .cta-note { color: var(--muted); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.jump a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.jump a:hover { border-color: var(--green); color: var(--green); }

/* ---------- bands and sections ---------- */
.band { padding-block: 76px; }
.band-tint { background: var(--tint); }
.band-dark { background: linear-gradient(135deg, var(--teal), var(--navy-deep)); color: #fff; }
.band-dark h2, .band-dark .section-lede { color: #fff; }
.band-dark .section-lede { opacity: .86; }
.band-dark .check circle { fill: var(--mint); }
.band-dark .check path { stroke: var(--navy-deep); }
.section-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; max-width: 24ch; }
.section-lede { font-size: 18.5px; color: var(--muted); margin-top: 14px; max-width: 60ch; }
.more { margin-top: 26px; font-weight: 650; }
.more a { text-decoration: none; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.split-rev { grid-template-columns: 1.1fr 1fr; }
.split-single { grid-template-columns: 1fr; max-width: 820px; }
@media (max-width: 900px) { .split, .split-rev { grid-template-columns: 1fr; gap: 32px; } .split-rev > figure { order: 2; } .band { padding-block: 56px; } }
.framed { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: 0 24px 50px -30px rgba(2, 58, 88, .35); }
.framed img { border-radius: 8px; }
.band-dark .framed { border-color: rgba(255, 255, 255, .15); }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.band-tint .card { border-color: #d3e3dc; }
.card h3 { font-size: 19px; }
.card p { color: var(--muted); }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: #fff; border: 1px solid #d3e3dc; border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(step); width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps h3 { font-size: 19px; }
.steps p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.check { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.check circle { fill: var(--emerald); }
.check path { stroke: #fff; }
.rule-list, .tick-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.rule-list li, .tick-list li { display: flex; gap: 12px; align-items: flex-start; }
.rule-list strong { display: block; font-size: 17px; }
.rule-list span { color: var(--muted); font-size: 16px; }
.band-dark .rule-list span { color: rgba(255, 255, 255, .8); }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 34px; max-width: 860px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: grid; gap: 8px; align-content: start; }
.plan h3 { font-size: 22px; }
.plan-for { color: var(--muted); }
.price { margin: 10px 0 6px; display: flex; align-items: baseline; gap: 4px; }
.price span { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price small { color: var(--muted); font-size: 16px; }
.plan ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan-pro { border: 2px solid var(--emerald); box-shadow: 0 30px 60px -36px rgba(6, 168, 102, .55); position: relative; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-block: 22px; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
thead th { background: var(--tint); font-size: 14px; font-weight: 700; color: var(--muted); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.compare td { text-align: center; width: 22%; }
.compare th[scope="row"] { font-weight: 550; }
.compare .check { margin-inline: auto; }
.no { color: #9bb0aa; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; margin-top: 28px; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-size: 17.5px; font-weight: 650; letter-spacing: -0.01em; }
.faq-list summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--green); line-height: 1; flex: none; }
.faq-list details[open] summary::after { content: "–"; }
.faq-a { padding: 0 22px 20px; color: var(--muted); }

/* ---------- facts ---------- */
.checked { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.facts { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.facts > div:nth-child(odd) { background: var(--tint); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: #24414a; }
@media (max-width: 640px) { .facts > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- guides index ---------- */
.section-cards { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.section-cards a { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid #d3e3dc; border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.section-cards a:hover { border-color: var(--emerald); transform: translateY(-2px); }
.section-cards img { width: 72px; height: 72px; flex: none; }
.section-cards strong { display: block; font-size: 17px; line-height: 1.3; }
.section-cards small { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .section-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .section-cards { grid-template-columns: 1fr; } }
.guide-section { padding-block: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 70px; }
.guide-section-head { display: flex; gap: 20px; align-items: center; margin-bottom: 26px; }
.guide-section-head img { width: 88px; height: 88px; flex: none; }
.guide-section-head h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; }
.guide-section-head p { color: var(--muted); margin-top: 6px; max-width: 64ch; }
.guide-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.guide-card { display: grid; gap: 6px; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.guide-card:hover { border-color: var(--emerald); box-shadow: 0 14px 30px -22px rgba(2, 58, 88, .45); color: var(--ink); }
.guide-card-title { font-weight: 700; font-size: 17px; line-height: 1.35; }
.guide-card-desc { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---------- guide page ---------- */
.guide-head { background: linear-gradient(180deg, var(--tint), #fff); padding-block: 40px 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.guide-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.guide-meta { color: var(--muted); font-size: 15px; margin-top: 14px; }
.guide-body { padding-block: 8px 64px; }
.answer { background: var(--mint-soft); border: 1px solid #c6ecd4; border-radius: var(--radius); padding: 20px 24px; margin-bottom: 30px; }
.answer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--green); margin-bottom: 8px; }
.answer p { font-size: 18px; line-height: 1.6; color: #123a35; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; margin-bottom: 34px; }
.toc h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.toc ol { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.toc a { text-decoration: none; }
.prose { font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; margin-top: 1.9em; scroll-margin-top: 80px; }
.prose h3 { font-size: 21px; font-weight: 750; margin-top: 1.6em; scroll-margin-top: 80px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--green); }
.prose strong { font-weight: 700; color: #0b2129; }
.prose code { font-size: .88em; background: var(--tint); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.prose pre { background: var(--navy-deep); color: #e6f2ee; padding: 18px; border-radius: 12px; overflow-x: auto; font-size: 15px; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose img { border: 1px solid var(--line); border-radius: 12px; margin-block: 1.4em; }
.prose table { font-size: 16px; }
.prose .table-wrap { margin-block: 1.4em; }
.callout { border-radius: 12px; padding: 16px 20px; background: var(--tint); border: 1px solid var(--line); }
.callout > * + * { margin-top: .6em; }
.callout-example { background: #fff8ec; border-color: #f3dfb8; }
.callout-warning { background: #fff1ef; border-color: #f2c9c2; }
.callout p { font-size: 17px; }
.sources { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 20px; margin-bottom: 12px; }
.sources ol { padding-inline-start: 20px; display: grid; gap: 6px; font-size: 16px; margin: 0 0 12px; }
.sources a { word-break: break-word; }
.soft-cta { margin-top: 40px; display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: var(--radius); background: linear-gradient(135deg, var(--mint-soft), #eef6fb); border: 1px solid #cfe9dc; }
.soft-cta img { width: 72px; height: 72px; flex: none; }
.soft-cta h2 { font-size: 19px; margin-bottom: 4px; }
.soft-cta p { color: #24414a; font-size: 16px; }
.soft-cta .soon { color: var(--muted); }
.related .guide-grid { margin-top: 26px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #04704f, var(--teal) 55%, var(--navy-deep)); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url(/img/art/bg-side.webp) center / cover no-repeat; opacity: .35; mix-blend-mode: screen; pointer-events: none; }
.cta-band-inner { position: relative; display: flex; gap: 36px; align-items: center; padding-block: 64px; }
.cta-band-inner img { width: 150px; flex: none; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .3)); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; max-width: 22ch; }
.cta-band p { color: rgba(255, 255, 255, .88); margin-top: 12px; max-width: 58ch; font-size: 18px; }
.cta-band .cta-note { color: #fff; }
@media (max-width: 720px) { .cta-band-inner { flex-direction: column; align-items: flex-start; gap: 18px; } .cta-band-inner img { width: 96px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .78); font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-block: 56px 36px; }
.footer-grid > * { min-width: 0; }
.footer-about p { margin-top: 14px; max-width: 42ch; }
.logo-light, .logo-light:hover { color: #fff; }
.site-footer h2 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.lang-ar .site-footer h2 { letter-spacing: 0; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .small { color: rgba(255, 255, 255, .6); }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 20px 28px; font-size: 13.5px; color: rgba(255, 255, 255, .55); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
