/* AuditHD website — design system.
   Ledger paper, petrol ink, auditor's red tick marks, brass for AI. */

@font-face { font-family: 'Plex Sans'; src: url('/fonts/plex-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('/fonts/plex-sans-400i.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('/fonts/plex-sans-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('/fonts/plex-sans-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Condensed'; src: url('/fonts/plex-condensed-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plex Condensed'; src: url('/fonts/plex-condensed-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plex Condensed'; src: url('/fonts/plex-condensed-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('/fonts/plex-arabic-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('/fonts/plex-arabic-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('/fonts/plex-arabic-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('/fonts/plex-arabic-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --paper: #edf1ea;
  --paper-deep: #e2e9de;
  --sheet: #fafbf8;
  --ink: #13272d;
  --ink-soft: #46595e;
  --ink-faint: #6b7d80;
  --petrol: #0b3f4d;
  --petrol-2: #155e6e;
  --petrol-ink: #d9e9ec;
  --rule: #c8d5c5;
  --rule-strong: #a9bba6;
  --tick: #b3261e;
  --brass: #996f1c;
  --brass-soft: #f4e9cf;
  --brass-light: #e2b65c;
  --focus: #1d7d92;

  --font: 'Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --display: 'Plex Condensed', 'Plex Sans', 'Arial Narrow', system-ui, sans-serif;
  --arabic: 'Plex Arabic', 'Plex Sans', 'Segoe UI', Tahoma, sans-serif;

  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.25rem;
  --fs-h3: 1.3125rem;
  --fs-h2: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 4.2vw, 4.5rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
  --shadow-sheet: 0 1px 0 rgba(19, 39, 45, 0.04), 0 18px 40px -24px rgba(11, 63, 77, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.6;
  font-feature-settings: 'tnum' 0; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
html[lang='ar'] body { font-family: var(--arabic); line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--petrol); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: #cfe2e6; }

h1, h2, h3, h4 { margin: 0 0 0.5em; color: var(--ink); font-weight: 600; }
h1, h2 { font-family: var(--display); letter-spacing: -0.012em; line-height: 1.04; }
h1 { font-size: var(--fs-h1); font-weight: 600; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
h4 { font-size: 1.0625rem; line-height: 1.4; }
html[lang='ar'] h1, html[lang='ar'] h2 { font-family: var(--arabic); letter-spacing: 0; line-height: 1.25; font-weight: 700; }
html[lang='ar'] h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem); }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }
.small { font-size: var(--fs-small); }
.soft { color: var(--ink-soft); }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--sheet); padding: 8px 12px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(237, 241, 234, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.wm { unicode-bidi: isolate; font-family: var(--display); }
.wm .hd { color: var(--petrol-2, #155e6e); }
.site-foot .wm .hd { color: #e2b65c; }
.foot-tag { margin: 8px 0 18px; color: #cfe0e3; }
.made-by { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.made-by-label { font-size: 0.78rem; letter-spacing: 0.02em; color: #8fb0ba; }
.made-by img { display: block; width: 128px; height: auto; }
.site-foot a.foot-maker { display: inline-block; margin-bottom: 10px; text-decoration: none; }
.site-foot a.foot-maker:hover { text-decoration: none; opacity: 0.9; }
.office { background: var(--sheet); border: 1px solid var(--rule); border-top: 4px solid var(--petrol-2); border-radius: var(--radius); padding: 22px 24px; }
.office-role { margin: 0 0 4px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--petrol-2); }
html[lang='ar'] .office-role { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.office h3 { margin-bottom: 10px; }
.office address { font-style: normal; color: var(--ink-soft); line-height: 1.6; }
html[lang='ar'] .office address { text-align: right; }
.office-phone { margin: 12px 0 0; font-weight: 600; }
.maker-logo { display: block; width: 220px; height: auto; margin: 6px 0 18px; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 6px; font-weight: 500; font-size: 0.97rem; }
.nav a:hover, .nav a[aria-current='page'] { background: var(--paper-deep); }
.nav .lang { color: var(--ink-soft); font-weight: 400; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: var(--petrol); }
.nav a.btn-primary:hover { background: #082f3a; }
.head-cta { margin-inline-start: 8px; }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--rule-strong); border-radius: 8px; padding: 8px 12px; font: inherit; color: var(--ink); }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; gap: 8px; align-items: center; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 68px; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .head-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; line-height: 1.2; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: #082f3a; color: #fff; }
.btn-ghost { border-color: var(--petrol); color: var(--petrol); background: transparent; }
.btn-ghost:hover { background: var(--sheet); color: var(--petrol); }
.btn-light { background: var(--sheet); color: var(--petrol); }
.btn-light:hover { background: #fff; color: var(--petrol); }
.btn-sm { padding: 8px 14px; font-size: 0.93rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--rule); }
.band-deep { background: var(--paper-deep); }
.band-petrol { background: var(--petrol); color: var(--petrol-ink); }
.band-petrol h2, .band-petrol h3, .band-petrol h4 { color: #fff; }
.band-petrol a { color: #f3e2b6; }
.band-petrol .soft { color: #a9c7cd; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { color: var(--ink-soft); font-size: 1.125rem; }
.band-petrol .section-head p { color: #b9d4d9; }
.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) {
  .g2, .g3, .g4, .split, .split.flip { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
}

/* ---------- page header (inner pages) ---------- */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: 18px; }
.crumbs { font-size: var(--fs-small); color: var(--ink-faint); margin-bottom: 14px; }
.crumbs a { color: var(--ink-soft); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.hero .split { align-items: start; grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); }
.hero h1 { max-width: 17ch; font-size: clamp(2.5rem, 1.5rem + 3.3vw, 4rem); }
@media (max-width: 900px) { .hero .split { grid-template-columns: minmax(0, 1fr); } }
.hero .lead { margin-top: 22px; }
.hero-kicker { margin: 0 0 10px; font-weight: 600; color: var(--petrol-2); letter-spacing: 0.01em; }
.hero-note { margin-top: 22px; font-size: var(--fs-small); color: var(--ink-faint); }
html[lang='ar'] .hero h1 { max-width: 18ch; }

/* ---------- the workpaper (hero object) ---------- */
.sheet {
  position: relative; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow-sheet);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(169, 187, 166, 0.35) 31px 32px);
  padding: 22px 26px 26px 54px;
}
.sheet::before { content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: 38px; width: 1px; background: rgba(179, 38, 30, 0.45); }
html[dir='rtl'] .sheet { padding: 22px 54px 26px 26px; }
.sheet-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 8px; }
.sheet-ref { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.sheet h3 { font-family: var(--display); font-size: 1.45rem; line-height: 1.15; margin: 4px 0 14px; }
html[lang='ar'] .sheet h3 { font-family: var(--arabic); }
.sheet dl { margin: 0; display: grid; grid-template-columns: 7.2em minmax(0, 1fr); column-gap: 14px; }
.sheet dt { font-weight: 600; font-size: 0.86rem; color: var(--ink-soft); padding-top: 6px; line-height: 26px; }
.sheet dd { margin: 0; position: relative; padding-top: 6px; line-height: 26px; font-size: 0.95rem; }
.sheet .tick { position: absolute; inset-inline-start: -46px; top: 6px; width: 26px; height: 26px; }
.tick path { fill: none; stroke: var(--tick); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.js .hero .tick path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.42s ease-out forwards; }
.js .hero .tick.t2 path { animation-delay: 0.55s; } .js .hero .tick.t3 path { animation-delay: 0.85s; } .js .hero .tick.t4 path { animation-delay: 1.15s; } .js .hero .tick.t5 path { animation-delay: 1.45s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .js .hero .tick path { animation: none; stroke-dashoffset: 0; } }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule-strong); background: #fff; border-radius: 5px; padding: 0 7px; font-size: 0.8rem; line-height: 1.6; color: var(--petrol); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stamp { display: inline-block; border: 2px solid var(--petrol-2); color: var(--petrol-2); border-radius: 4px; padding: 1px 8px; font-weight: 600; font-size: 0.78rem; transform: rotate(-4deg); }
.ai-note { margin-top: 18px; border: 1px solid #e3cf9f; background: var(--brass-soft); border-radius: 6px; padding: 12px 14px; font-size: 0.9rem; line-height: 1.5; }
.ai-note b { color: var(--brass); font-weight: 600; }
.ai-note .who { display: flex; justify-content: space-between; gap: 8px; font-size: 0.78rem; color: #7a5a17; margin-bottom: 4px; }
.sheet-foot { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 0.8rem; color: var(--ink-faint); }
.sheet-foot code { font-family: inherit; font-variant-numeric: tabular-nums; }

/* ---------- framework strip ---------- */
.strip { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--sheet); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding-block: 18px; }
.strip p { margin: 0; font-size: var(--fs-small); color: var(--ink-faint); }
.strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.strip li { font-weight: 600; color: var(--petrol); font-size: 0.95rem; white-space: nowrap; }
.strip li a { color: inherit; text-decoration: none; }
.strip li a:hover { text-decoration: underline; }

/* ---------- audiences ---------- */
.aud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.aud > div { padding: 24px 28px 8px 0; }
.aud > div + div { padding-inline-start: 28px; border-inline-start: 1px solid var(--rule); }
.aud h3 { margin-bottom: 8px; }
.aud ul { margin: 0 0 12px; padding-inline-start: 18px; color: var(--ink-soft); }
.aud li { margin-bottom: 4px; }
@media (max-width: 900px) { .aud { grid-template-columns: 1fr; } .aud > div + div { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--rule); } }

/* ---------- audit cycle (tabs) ---------- */
.cycle { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.cycle-list { list-style: none; margin: 0; padding: 0; counter-reset: stage; }
.cycle-list li { counter-increment: stage; }
.cycle-list button { all: unset; display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; width: 100%; box-sizing: border-box; padding: 16px 14px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.cycle-list button::before { content: counter(stage); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--rule-strong); display: grid; place-items: center; font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cycle-list button strong { font-size: 1.08rem; }
.cycle-list button span { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.45; }
.cycle-list button[aria-selected='true'] { background: var(--sheet); border-color: var(--rule); box-shadow: var(--shadow-sheet); }
.cycle-list button[aria-selected='true']::before { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.cycle-list button:focus-visible { outline: 3px solid var(--focus); }
.cycle-panel[hidden] { display: none; }
.cycle-panel ul { margin: 18px 0 0; padding-inline-start: 18px; color: var(--ink-soft); }
.cycle-panel li { margin-bottom: 6px; }
@media (max-width: 900px) { .cycle { grid-template-columns: 1fr; } }

/* ---------- screenshots ---------- */
.shot { margin: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--rule-strong); box-shadow: var(--shadow-sheet); background: #fff; }
.shot figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--ink-faint); }
.shot.phone img { border-radius: 26px; border: 6px solid #10262c; max-width: 300px; margin-inline: auto; }
.shot.phone figcaption { text-align: center; }
.band-petrol .shot img { border-color: rgba(255,255,255,0.18); }
.band-petrol .shot figcaption { color: #9cbcc2; }

/* ---------- feature lists ---------- */
.feat { border-top: 1px solid var(--rule-strong); padding-top: 18px; }
.feat h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feat p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
.band-petrol .feat { border-top-color: rgba(255,255,255,0.22); }
.band-petrol .feat p { color: #b9d4d9; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-inline-start: 30px; margin-bottom: 10px; }
.checks li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 0.3em; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M4 14.5c2.4 1.6 4 3.6 5.4 6.2C12.4 13 16.6 7.6 22.5 3.8' fill='none' stroke='%23b3261e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.band-petrol .checks li::before { filter: brightness(1.9) saturate(0.6); }

/* ---------- AI policy ladder ---------- */
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius); overflow: hidden; }
.ladder > div { padding: 20px; border-inline-start: 1px solid rgba(255,255,255,0.2); }
.ladder > div:first-child { border-inline-start: 0; }
.ladder h4 { color: #fff; margin-bottom: 6px; }
.ladder p { font-size: 0.92rem; color: #b9d4d9; margin: 0; }
@media (max-width: 900px) { .ladder { grid-template-columns: 1fr 1fr; } .ladder > div:nth-child(3) { border-inline-start: 0; } .ladder > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.2); } }
@media (max-width: 520px) { .ladder { grid-template-columns: 1fr; } .ladder > div { border-inline-start: 0; } .ladder > div + div { border-top: 1px solid rgba(255,255,255,0.2); } }

/* ---------- hash chain ---------- */
.chain { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; }
.chain li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 14px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; position: relative; }
.chain li + li { margin-top: 18px; }
.chain li + li::before { content: ''; position: absolute; top: -19px; inset-inline-start: 2.2em; height: 18px; border-inline-start: 2px dotted var(--rule-strong); }
.chain .seq { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.chain .hash { color: var(--petrol-2); font-variant-numeric: tabular-nums; font-size: 0.8rem; }
.chain .who { color: var(--ink-soft); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); }
table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
th, td { text-align: start; padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-size: 0.86rem; color: var(--ink-soft); font-weight: 600; background: var(--paper-deep); }
tbody th { font-weight: 600; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
td .yes { color: var(--petrol-2); font-weight: 600; }

/* ---------- framework cards ---------- */
.fw { display: block; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; text-decoration: none; color: inherit; height: 100%; }
.fw:hover { border-color: var(--petrol-2); color: inherit; }
.fw .pub { font-size: 0.82rem; color: var(--ink-faint); }
.fw h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.fw p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 12px; }
.fw .meta { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- prose (docs, legal, articles) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.9rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose li { margin-bottom: 6px; }
.prose pre { background: #0f2a31; color: #d7e7ea; padding: 14px 16px; border-radius: 8px; overflow-x: auto; font-size: 0.86rem; line-height: 1.5; direction: ltr; text-align: left; }
.prose code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 0.88em; }
.prose :not(pre) > code { background: var(--paper-deep); padding: 1px 5px; border-radius: 4px; }
.prose table { margin: 1.2em 0; background: var(--sheet); border: 1px solid var(--rule); }
.prose blockquote { margin: 1.2em 0; padding: 4px 18px; border-inline-start: 3px solid var(--brass-light); color: var(--ink-soft); }
.toc { position: sticky; top: 96px; font-size: 0.92rem; }
.toc a { display: block; padding: 4px 0; color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--petrol); }
.with-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .with-toc { grid-template-columns: 1fr; } .toc { position: static; } }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; color: var(--ink-faint); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); overflow: hidden; }
.plans > div { padding: 28px; border-inline-start: 1px solid var(--rule); display: flex; flex-direction: column; }
.plans > div:first-child { border-inline-start: 0; }
.plans.six > div:nth-child(n+4) { border-top: 1px solid var(--rule); }
.plans.six > div:nth-child(4) { border-inline-start: 0; }
.plans .who { color: var(--ink-soft); font-size: 0.95rem; min-height: 3.2em; }
.plans .price { font-family: var(--display); font-size: 1.6rem; margin: 10px 0 16px; color: var(--petrol); }
.plans .checks { margin-bottom: 22px; font-size: 0.96rem; flex: 1; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } .plans > div { border-inline-start: 0; border-top: 1px solid var(--rule); } .plans > div:first-child { border-top: 0; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 0.95rem; }
.form input, .form select, .form textarea { font: inherit; width: 100%; min-width: 0; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--rule-strong); border-radius: 8px; background: #fff; color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }
.form .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form label { min-width: 0; }
@media (max-width: 600px) { .form .row2 { grid-template-columns: 1fr; } }

/* ---------- call to action band ---------- */
.cta-band { background: var(--petrol); color: var(--petrol-ink); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; padding-block: clamp(48px, 6vw, 80px); }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: #b9d4d9; margin: 12px 0 0; }
.cta-band .actions { margin: 0; justify-content: flex-end; }
@media (max-width: 900px) { .cta-band .wrap { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* ---------- footer ---------- */
.site-foot { background: #0a2a33; color: #a9c2c7; font-size: 0.93rem; }
.site-foot .wrap { padding-block: 56px 28px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.site-foot h4 { color: #fff; font-size: 0.95rem; margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 7px; }
.site-foot a { color: #cfe0e3; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot .brand { color: #fff; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- misc ---------- */
.note { border-inline-start: 3px solid var(--brass-light); background: var(--sheet); padding: 14px 18px; border-radius: 4px; color: var(--ink-soft); font-size: 0.96rem; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0; }
.kv dt { font-weight: 600; }
.kv dd { margin: 0; color: var(--ink-soft); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.center { text-align: center; }
.hide-sm { } @media (max-width: 600px) { .hide-sm { display: none; } }

/* workpaper on small screens: labels above values, ticks in the margin */
@media (max-width: 600px) {
  .sheet { padding: 18px 16px 20px 46px; }
  html[dir='rtl'] .sheet { padding: 18px 46px 20px 16px; }
  .sheet::before { inset-inline-start: 32px; }
  .sheet dl { grid-template-columns: minmax(0, 1fr); }
  .sheet dt { padding-top: 10px; line-height: 20px; }
  .sheet dd { padding-top: 0; }
  .sheet .tick { inset-inline-start: -42px; top: -24px; width: 22px; height: 22px; }
}

/* ---------- country packs ---------- */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); margin-bottom: clamp(28px, 4vw, 48px); }
.stats > div { padding: 18px 16px 16px 0; }
.stats > div + div { padding-inline-start: 18px; border-inline-start: 1px solid var(--rule); }
.stats b { display: block; font-family: var(--display); font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.05; color: var(--petrol); font-weight: 600; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 6px; font-size: var(--fs-small); color: var(--ink-soft); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats > div + div { padding-inline-start: 0; border-inline-start: 0; } .stats > div { border-top: 1px solid var(--rule); } }
.pack-group { font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--petrol-2); margin: 28px 0 14px; }
html[lang='ar'] .pack-group { letter-spacing: 0; text-transform: none; font-size: 1.2rem; }
.pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pack-grid { grid-template-columns: minmax(0, 1fr); } }
.pack-card { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--sheet); border: 1px solid var(--rule); border-top: 4px solid var(--petrol); border-radius: var(--radius); padding: 18px 20px 16px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.pack-card:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-sheet); }
.pack-card.baseline { border-top-color: var(--brass-light); grid-column: 1 / -1; }
.pack-card h3 { margin: 0; font-size: 1.2rem; }
.pack-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.pack-code { display: inline-block; align-self: flex-start; font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; color: #fff; background: var(--petrol); border-radius: 4px; padding: 2px 7px; }
.pack-card.baseline .pack-code { background: var(--brass); }
.pack-regs { display: flex; flex-wrap: wrap; gap: 6px; }
.pack-counts { font-size: 0.82rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.pack-flag { position: absolute; top: 14px; inset-inline-end: 14px; font-size: 0.75rem; font-weight: 600; color: var(--brass); }
.pack-mini { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .pack-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pack-mini a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.pack-mini a:hover { border-color: var(--petrol-2); }
.reg-list { list-style: none; margin: 0; padding: 0; }
.reg-list li { margin-bottom: 10px; }
.ok { color: #2f6b4f; font-weight: 600; }
.nowrap { white-space: nowrap; }

/* ---------- company: history, products, clients ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.timeline > div { padding: 18px 20px 4px 0; }
.timeline > div + div { padding-inline-start: 20px; border-inline-start: 1px solid var(--rule); }
.timeline b { display: block; font-family: var(--display); font-size: 1.9rem; color: var(--petrol); font-weight: 600; }
.timeline p { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.96rem; }
@media (max-width: 900px) { .timeline { grid-template-columns: minmax(0, 1fr); } .timeline > div + div { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--rule); } }
.products h3 { margin-bottom: 10px; }
.products ul { list-style: none; margin: 0; padding: 0; }
.products li { padding: 10px 0; border-top: 1px solid var(--rule); }
.products li b { display: block; color: var(--ink); }
.products li span { color: var(--ink-soft); font-size: 0.95rem; }
.clients-group { margin-top: 28px; }
.clients-group h3 { margin-bottom: 4px; }
.clients-group > p { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.96rem; }
.clients { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 980px) { .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.client { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 112px; padding: 16px 12px 12px; background: #fff; border: 1px solid var(--rule); border-radius: 8px; text-align: center; }
.client .logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; }
.client img { display: block; max-width: min(100%, 180px); max-height: 46px; width: auto; height: auto; object-fit: contain; }
.client small { font-size: 0.78rem; line-height: 1.25; color: var(--ink-soft); }
.client span { font-family: var(--display); font-weight: 600; font-size: 1.02rem; line-height: 1.2; color: var(--petrol); }
.memberships { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .memberships { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.memberships > div { border-top: 1px solid var(--rule-strong); padding-top: 14px; }
.memberships b { display: block; color: var(--petrol); }
.memberships span { font-size: 0.92rem; color: var(--ink-soft); }
.pack-mini .pack-code { align-self: center; flex: none; }

/* ---------- MARS ---------- */
.mars-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mars-steps li { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: #fff; border: 1px solid var(--rule); border-radius: 10px; }
.mars-steps h3 { margin: 0 0 6px; }
.mars-steps p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.mars-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--petrol); color: #fff; font-weight: 600; }
@media (max-width: 980px) { .mars-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mars-steps { grid-template-columns: 1fr; } }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.duo > div { padding: 24px; border-radius: 10px; background: #fff; border: 1px solid var(--rule); }
.duo h3 { margin-top: 0; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
