/* Modern Data Systems (mds.com.sa) — site styles.
   Derived from the AccuWare site stylesheet (same components), re-themed with the MDS Precision brand kit.
   Fonts and brand variables: /assets/brand/mds/mds-brand-tokens.css (loaded first). */

/* ---------- Tokens (MDS Precision v1.0) ---------- */
:root {
  --brand: #144FC4;          /* Precision Cobalt — fills with white text (7.1:1) */
  --brand-hover: #103FA0;    /* Deep Cobalt (9.4:1 with white) */
  --brand-light: #8DB5FF;    /* Light Cobalt — accents on navy (7.5:1) */
  --brand-strong: #144FC4;   /* links / small text on white (7.1:1), on pale blue (6.6:1) */
  --on-brand: #FFFFFF;
  --brand-tint: #EAF1FD;
  --brand-tint-2: #D3E1FB;

  --ink: #102443;            /* MDS Navy — headings */
  --ink-2: #334155;          /* Slate — body text (10.4:1) */
  --ink-3: #526178;          /* Muted Slate — secondary text (6.3:1) */
  --line: #D7DFEA;           /* Mist Border — decorative only */
  --surface: #FFFFFF;
  --surface-2: #F4F7FC;      /* Pale Blue */
  --dark: #102443;
  --on-dark-2: #BCCBE1;
  --danger: #B42318;
  --danger-tint: #FEF3F2;
  --ok-tint: #EAF1FD;

  --fs-xs: 0.8125rem; --fs-sm: 0.9375rem; --fs-md: 1.0625rem; --fs-lg: 1.25rem;
  --fs-xl: 1.625rem; --fs-2xl: 2.25rem; --fs-3xl: 3rem;

  --radius-sm: 8px; --radius: 12px; --radius-lg: 18px; --radius-xl: 22px;
  --shadow: 0 1px 2px rgba(16, 36, 67, .06), 0 12px 32px rgba(16, 36, 67, .10);
  --container: 1200px; --gutter: 24px;
  --font: "MDS Manrope", "MDS Noto Sans Arabic", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--surface); color: var(--ink-2); font-family: var(--font); font-size: var(--fs-md); line-height: 1.7; text-rendering: optimizeLegibility; }
html[lang="ar"] { --font: "MDS Noto Sans Arabic", "MDS Manrope", Tahoma, Arial, sans-serif; }
html[lang="ar"] body { line-height: 1.8; }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 600; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; }
bdi { unicode-bidi: isolate; }
a { color: var(--brand-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 20; }
.skip:focus { top: 8px; color: #fff; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--fs-xl); margin-top: 1.6em; }
.prose h3 { font-size: var(--fs-lg); margin-top: 1.4em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: .35em; }

/* ---------- Buttons, links, tags ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--radius-sm);
  font: 600 var(--fs-md)/1.2 var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s; text-align: center; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: #718096; }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #172F53; color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: var(--fs-sm); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow::after { content: "←"; }
[dir="ltr"] .link-arrow::after { content: "→"; }
.tag { display: inline-block; font-size: var(--fs-xs); font-weight: 600; color: var(--brand-strong); background: var(--brand-tint); border-radius: 999px; padding: 2px 12px; }
.tag.neutral { color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); }
.eyebrow { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--brand-strong); font-size: var(--fs-sm); margin-bottom: 16px; }
.eyebrow::before { content: ""; flex: none; width: 28px; height: 3px; border-radius: 2px; background: var(--brand); }
.highlight { background: linear-gradient(transparent 58%, var(--brand-light) 58%, var(--brand-light) 92%, transparent 92%); padding-inline: 4px; }
.num { display: inline-flex; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font: 700 13px/28px var(--font); justify-content: center; }

/* ---------- Announcement ---------- */
.announce { background: var(--dark); color: #E6ECF5; font-size: var(--fs-sm); }
.announce .container { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; padding-block: 9px; text-align: center; }
.announce-tag { background: var(--brand); color: var(--on-brand); padding: 1px 14px; font-size: var(--fs-xs); font-weight: 600; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.announce a { color: #fff; font-weight: 600; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: 80px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: auto; display: block; }
/* Screen-size logos (brand kit v2.3, screen-logos/): drawn on the pixel grid for exactly these sizes.
   Never scale, squeeze or filter them. Header heights 80px / 72px keep them on whole pixels
   (64px logo → 8px / 4px above; 48px lettermark → 12px above). */
.logo img { flex: 0 0 auto; max-width: none; max-height: none; transform: none; filter: none; }
.logo .logo-full { width: 392px; height: 64px; min-width: 392px; }
.logo .logo-mark { display: none; width: 170px; height: 48px; min-width: 170px; }
.primary-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.primary-nav > a, .primary-nav summary { white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--fs-md); padding: 10px 14px; border-radius: 8px; cursor: pointer; }
.primary-nav > a:hover, .primary-nav summary:hover { background: var(--surface-2); }
.primary-nav > a[aria-current], .primary-nav summary.is-active { color: var(--brand-strong); }
.nav-drop { position: relative; }
.nav-drop summary { list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: ""; width: 7px; height: 7px; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-drop-panel { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.nav-drop-panel a { display: block; padding: 12px 14px; border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.nav-drop-panel a:hover { background: var(--surface-2); }
.nav-drop-panel b { display: block; font-weight: 600; font-size: var(--fs-sm); }
.nav-drop-panel span { display: block; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.6; }
.nav-drop-panel .all { grid-column: 1 / -1; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); color: var(--brand-strong); font-weight: 600; font-size: var(--fs-sm); }
.header-tools { display: flex; align-items: center; gap: 14px; font-size: var(--fs-sm); white-space: nowrap; flex: none; }
.header-tools .util { color: var(--ink-2); text-decoration: none; }
.header-tools .util:hover { color: var(--ink); text-decoration: underline; }
.mnav { display: none; margin-inline-start: auto; }
.mnav > summary { list-style: none; cursor: pointer; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; font-size: var(--fs-sm); }
.mnav > summary::-webkit-details-marker { display: none; }
.mnav-panel { position: absolute; inset-inline: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; box-shadow: 0 16px 24px rgba(0,0,0,.08); max-height: calc(100vh - 140px); overflow-y: auto; }
.mnav-panel a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.mnav-panel .sub a { padding-inline-start: 16px; font-weight: 400; color: var(--ink-2); font-size: var(--fs-sm); }
.mnav-panel .btn { margin-top: 16px; width: 100%; border-bottom: 0; }
@media (max-width: 1080px) {
  .primary-nav, .header-tools .hide-sm { display: none; }
  .mnav { display: block; }
  .site-header .container { gap: 12px; min-height: 72px; }
}

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: var(--fs-xs); color: var(--ink-3); padding-top: 20px; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: #718096; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Screens (real screenshots and dev-only placeholders) ---------- */
.screen { background: var(--surface); border: 1px solid #C9D3E1; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.screen-bar { display: flex; gap: 6px; align-items: center; height: 30px; padding-inline: 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.screen-bar i { width: 9px; height: 9px; border-radius: 50%; background: #C9D3E1; }
.screen img { width: 100%; height: auto; }
.screen.crop img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.screen-caption { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 10px; }
.ph { aspect-ratio: 16 / 10; display: grid; grid-template-columns: 22% 1fr; }
.ph-side { background: #EEF2F8; border-inline-end: 1px solid var(--line); padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.ph-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ph i { display: block; height: 10px; border-radius: 5px; background: #DFE6F0; }
.ph i.h { height: 16px; background: #CDD7E5; }
.ph-label { position: absolute; inset-inline-start: 12px; bottom: 12px; max-width: calc(100% - 24px); background: rgba(16, 36, 67, .92); color: #fff; border-radius: 6px; padding: 6px 10px; font-size: var(--fs-xs); line-height: 1.5; }
.ph-label b { color: var(--brand-light); font-weight: 600; }

/* ---------- Page hero ---------- */
.hero { padding-block: 48px 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero-grid.text-only { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.hero h1 { font-size: var(--fs-3xl); line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 18px; text-wrap: balance; }
.hero .lead { font-size: var(--fs-lg); color: var(--ink-2); margin-bottom: 28px; max-width: 36em; }
.hero .support-line { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 18px; }
.hero-aside { background: var(--surface-2); border-radius: var(--radius-xl); padding: 28px; }
.hero-aside h2 { font-size: var(--fs-md); margin-bottom: 10px; }
.hero-aside ul { padding-inline-start: 1.1em; color: var(--ink-2); font-size: var(--fs-sm); }

/* ---------- Home: intro + task console ---------- */
.intro { padding-block: 56px 32px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.intro h1 { font-size: 3.25rem; line-height: 1.25; letter-spacing: -0.01em; }
.intro p { font-size: var(--fs-lg); color: var(--ink-2); margin-bottom: 24px; }
.tasks { padding-bottom: 72px; }
.tasks-box { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2); padding: 10px; }
.tasks-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.tasks-tabs button { all: unset; box-sizing: border-box; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 16px 18px; border-radius: var(--radius); border: 1px solid transparent; color: var(--ink-2); font-family: var(--font); }
.tasks-tabs button:hover { background: rgba(255,255,255,.6); }
.tasks-tabs button:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 2px; }
.tasks-tabs button[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.tasks-tabs .ic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); }
.tasks-tabs button[aria-selected="true"] .ic { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.tasks-tabs .t { display: flex; flex-direction: column; gap: 2px; text-align: start; }
.tasks-tabs small { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 500; }
.tasks-tabs b { font-weight: 600; color: var(--ink); line-height: 1.5; }
.tasks-tabs .teaser { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; }
.task { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; background: var(--surface); border-radius: var(--radius); padding: 40px; align-items: center; }
.task + .task { margin-top: 10px; }
.task.no-media { grid-template-columns: minmax(0, 1fr); }
.task h2 { font-size: var(--fs-xl); margin: 12px 0 24px; line-height: 1.5; }
.steps { list-style: none; margin: 0 0 24px; padding: 0; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-bottom: 20px; position: relative; color: var(--ink-2); }
.steps li:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--brand-tint-2); }
.steps strong { color: var(--ink); font-weight: 600; display: block; }
.prod-line { display: flex; gap: 8px; flex-wrap: wrap; }
.next-task { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; font-family: var(--font); }
.next-task::after { content: "←"; color: var(--brand-strong); font-weight: 700; }
[dir="ltr"] .next-task::after { content: "→"; }
.next-task:hover { color: var(--ink); }
.next-task:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 2px; }

/* ---------- Facts (bento) ---------- */
.facts { padding-block: 24px 96px; }
.section-title { font-size: var(--fs-2xl); margin-bottom: 28px; }
.facts-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { background: var(--surface-2); border-radius: var(--radius-xl); padding: 28px; min-height: 230px; display: flex; flex-direction: column; gap: 12px; }
.fact h3 { font-size: var(--fs-lg); margin-top: auto; }
.fact p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; }
.fact .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; }
.fact.lead { background: var(--dark); color: #fff; justify-content: space-between; position: relative; overflow: hidden; }
.fact.lead::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; border: 28px solid rgba(141, 181, 255, .14); }
.fact.lead .since { display: block; font-size: var(--fs-md); color: #BCCBE1; }
.fact.lead .big { display: block; font-size: 5.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--brand-light); }
.fact.lead p { color: var(--on-dark-2); font-size: var(--fs-md); max-width: 22em; }

/* ---------- Product chooser rows ---------- */
.choose { padding-block: 96px; border-top: 1px solid var(--line); }
.choose-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; margin-bottom: 36px; align-items: end; }
.choose-head h2 { font-size: var(--fs-2xl); }
.choose-head p { color: var(--ink-2); }
.rows-label { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr) 32px; gap: 24px; padding: 0 8px 10px; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 500; }
.rows { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.rows a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr) 32px; gap: 24px; align-items: center; padding: 22px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.rows a:hover { background: var(--surface-2); }
.rows .need { color: var(--ink); font-weight: 500; }
.rows .prod { font-weight: 600; font-size: var(--fs-lg); color: var(--ink); display: flex; align-items: center; gap: 10px; }
.rows .prod img { height: 28px; width: auto; flex: none; }
.product-logo { display: block; width: auto; height: auto; max-height: 120px; max-width: min(100%, 320px); margin-bottom: 20px; }  /* tall and wide logos */
.card.has-icon { position: relative; }
.card-icon { position: absolute; inset-block-start: 24px; inset-inline-end: 24px; height: 40px; width: auto; }
.card.has-icon h3 { padding-inline-end: 48px; }
.rows .what { font-size: var(--fs-sm); color: var(--ink-2); }
.rows .go { color: var(--brand-strong); font-size: 20px; }
[dir="ltr"] .rows .go { transform: scaleX(-1); }
.rows li.primary a { background: var(--brand-tint); border-bottom-color: var(--brand-tint-2); padding-block: 30px; }
.rows li.primary .prod { font-size: var(--fs-xl); color: var(--brand-strong); }

/* ---------- Generic sections ---------- */
.section { padding-block: 80px; }
.section.tint { background: var(--surface-2); }
.section.dark { background: var(--dark); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: var(--on-dark-2); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; margin-bottom: 40px; align-items: end; }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p { color: var(--ink-2); }
.section-head.solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface-2); border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.section.tint .card { background: var(--surface); }
.card h3 { font-size: var(--fs-lg); }
.card p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.75; }
.card .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; margin-bottom: 6px; font-weight: 700; }
a.card { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
a.card .link-arrow { margin-top: auto; padding-top: 6px; }
.card.featured { background: var(--brand-tint); }
.card .tag { align-self: flex-start; }

/* Feature blocks: text + optional screenshot */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.feature + .feature { margin-top: 88px; }
.feature.flip > :first-child { order: 2; }
.feature.no-media { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.feature.no-media.has-aside { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; max-width: none; }
.feature h2 { font-size: var(--fs-xl); margin-bottom: 14px; line-height: 1.45; }
.feature h3.sub { font-size: var(--fs-lg); margin: 24px 0 8px; }
.feature .text { color: var(--ink-2); }
.feature .text p + p { margin-top: .9em; }
.bullets { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 10px; }
.bullets li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2); }
.bullets li::before { content: ""; width: 18px; height: 18px; margin-top: 5px; border-radius: 50%; background: var(--brand-tint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23144FC4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.question { margin-top: 22px; background: var(--surface-2); border-inline-start: 4px solid var(--brand); border-radius: var(--radius-sm); padding: 14px 18px; }
.question small { display: block; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.question p { color: var(--ink); font-weight: 500; }
.note { margin-top: 16px; font-size: var(--fs-sm); color: var(--ink-3); }
.feature-aside { background: var(--surface-2); border-radius: var(--radius-xl); padding: 28px; }
.feature-aside h3 { font-size: var(--fs-md); margin-bottom: 12px; }
.feature-aside.in-text { margin-top: 24px; padding: 20px 24px; }

/* Table (e.g. workflows) */
.table-wrap { overflow-x: auto; margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { text-align: start; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: nowrap; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 20px; font-weight: 600; font-size: var(--fs-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 500; color: var(--brand-strong); }
.faq details[open] summary::after { content: "−"; background: var(--brand); color: var(--on-brand); }
.faq .answer { padding-bottom: 22px; color: var(--ink-2); }
.faq .answer > * + * { margin-top: .8em; }
.faq .answer ul { padding-inline-start: 1.2em; }

/* Closing CTA */
.closing { padding-block: 24px 96px; }
.closing-box { background: var(--dark); color: #fff; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; position: relative; overflow: hidden; }
.closing-box::after { content: ""; position: absolute; inset-inline-start: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(141, 181, 255, .14); }
.closing-box h2 { color: #fff; font-size: var(--fs-2xl); margin-bottom: 10px; }
.closing-box p { color: var(--on-dark-2); }
.closing-box .ctas { justify-content: flex-end; position: relative; z-index: 1; }
.closing-box .btn-secondary { background: transparent; color: #fff; border-color: #8194B0; }
.closing-box .btn-secondary:hover { border-color: #fff; }

/* Cloud-native teaser */
.cloud { padding-block: 0 96px; }
.cloud-box { border-radius: 28px; background: linear-gradient(135deg, var(--brand-tint) 0%, #fff 70%); border: 1px solid var(--brand-tint-2); padding: 48px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; }
.cloud-box h2 { font-size: var(--fs-2xl); margin: 10px 0; }
.cloud-box p { color: var(--ink-2); }
.cloud-box .ctas { justify-content: flex-end; }

/* What's new list */
.news-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.news-list li { padding: 20px 0; border-top: 1px solid var(--line); }
.news-list h3 { font-size: var(--fs-md); margin-bottom: 4px; }
.news-list p { color: var(--ink-2); font-size: var(--fs-sm); }

/* Listing (resources, products overview) */
.listing-group + .listing-group { margin-top: 72px; }
.article-meta { font-size: var(--fs-xs); color: var(--ink-3); }

/* Article */
.article { padding-block: 32px 80px; }
.article .prose { max-width: 760px; font-size: var(--fs-md); color: var(--ink-2); }
.article .prose h2, .article .prose h3 { color: var(--ink); }
.article h1 { font-size: var(--fs-2xl); max-width: 22em; margin-bottom: 14px; }

/* Video (only rendered when marked ready) */
.video { border-radius: var(--radius); overflow: hidden; background: #000; }
.video video { width: 100%; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: var(--fs-sm); }
.field label small, .field legend small { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea { font: inherit; font-size: var(--fs-md); color: var(--ink); background: var(--surface); border: 1px solid #718096; border-radius: var(--radius-sm); padding: 10px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--brand-strong); outline-offset: 1px; border-color: var(--brand-strong); }
.field input[dir="ltr"] { text-align: left; }
.field .err { color: var(--danger); font-size: var(--fs-sm); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choices label { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; border: 1px solid #718096; border-radius: 999px; padding: 8px 16px; cursor: pointer; min-height: 44px; }
.choices input { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand-strong); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form-foot p { font-size: var(--fs-xs); color: var(--ink-3); max-width: 32em; }
.alert { border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; font-size: var(--fs-sm); }
.alert.error { background: var(--danger-tint); color: #7A271A; border: 1px solid #FECDCA; }
.alert.error ul { margin-top: 6px; padding-inline-start: 1.2em; }
.alert.error a { color: #7A271A; }
.alert.success { background: var(--ok-tint); color: #0E3A92; border: 1px solid var(--brand-tint-2); font-size: var(--fs-md); }
.contact-card { background: var(--surface-2); border-radius: var(--radius-xl); padding: 28px; }
.contact-card h2 { font-size: var(--fs-lg); margin-bottom: 14px; }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.contact-card dd { margin: 0; }
.contact-card a { color: var(--ink); }

/* ---------- WhatsApp (Esnad inbox) ---------- */
.ic-wa { flex: none; color: #1A8D4A; }            /* WhatsApp-style green, 4.6:1 on white */
.closing-box .ic-wa, .site-footer .ic-wa { color: #4ADE80; }
.wa-link { display: inline-flex; align-items: center; gap: 8px; }
.field.check label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; }
.field.check input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--brand-strong); }
.alert.success p + p { margin-top: 10px; }
.alert.success .ref { font-size: var(--fs-sm); }
.alert.success .wa-next { font-size: var(--fs-sm); }
.alert.success .wa-next .btn { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding-block: 64px 28px; font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.footer-grid > :first-child { min-width: 392px; }   /* room for the 392px logo; see the header logo note */
.site-footer h2 { color: #fff; font-size: var(--fs-sm); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-footer li, .contact-card dd { overflow-wrap: anywhere; min-width: 0; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .domain { color: #fff; font-weight: 700; font-size: var(--fs-sm); }
.contact-card .address span { display: block; }   /* each language line keeps its own direction, aligned with the page */
[dir="ltr"] .contact-card .address span { text-align: left; }
[dir="rtl"] .contact-card .address span { text-align: right; }
.site-footer .about { margin-top: 16px; max-width: 30em; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid #1F3558; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: var(--fs-xs); color: #BCCBE1; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .intro-grid, .hero-grid, .hero-grid.text-only, .task, .choose-head, .section-head, .feature, .feature.no-media, .feature.no-media.has-aside, .closing-box, .cloud-box, .form-wrap { grid-template-columns: minmax(0, 1fr); }
  .feature.flip > :first-child { order: 0; }
  .tasks-tabs { grid-template-columns: minmax(0, 1fr); }
  .facts-grid, .cards, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact.lead, .facts-grid .fact:last-child { grid-column: span 2; }
  .rows-label { display: none; }
  .rows a { grid-template-columns: 1fr 24px; gap: 4px 12px; }
  .rows .need { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--ink-2); }
  .rows .go { grid-row: 2; grid-column: 2; }
  .closing-box .ctas, .cloud-box .ctas { justify-content: flex-start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .logo .logo-full { display: none; }
  .logo .logo-mark { display: block; }
  .footer-grid > :first-child { min-width: 0; }   /* footer shows the lettermark here too */
  .intro, .hero { padding-block: 32px 40px; }
  .intro h1, .hero h1 { font-size: 2.125rem; }
  .intro p, .hero .lead { font-size: var(--fs-md); }
  .ctas .btn { flex: 1 1 100%; }
  /* Phones: the task tabs give way to the three tasks stacked */
  .tasks-box { background: none; border: 0; padding: 0; }
  .tasks-tabs, .next-task { display: none !important; }
  .task[hidden] { display: grid !important; }
  .task { padding: 22px 18px; gap: 20px; border: 1px solid var(--line); }
  .task + .task { margin-top: 16px; }
  .task h2 { font-size: var(--fs-lg); margin-bottom: 18px; }
  .section, .choose { padding-block: 56px; }
  .section-title, .section-head h2, .choose-head h2 { font-size: 1.75rem; }
  .facts { padding-bottom: 56px; }
  .facts-grid, .cards, .cards.two, .cards.four, .news-list, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .fact.lead, .facts-grid .fact:last-child { grid-column: auto; }
  .fact { min-height: 0; padding: 22px; }
  .fact.lead .big { font-size: 4rem; }
  .feature + .feature { margin-top: 56px; }
  .closing-box, .cloud-box { padding: 28px 22px; border-radius: 22px; }
  .form { padding: 22px 18px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .announce, .site-header nav, .mnav, .site-footer, .closing, .cloud { display: none !important; }
}

/* ---------- MDS additions ---------- */
.product-logo.wide { max-width: min(100%, 260px); }
.ext { font-weight: 400; font-size: var(--fs-xs); color: var(--ink-3); }
.bullets.small { margin-top: 4px; gap: 6px; font-size: var(--fs-sm); }
.home-intro .intro-grid { align-items: end; }
.portfolio .pf-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; gap: 16px; }
.pf-family { grid-row: span 2; background: var(--brand-tint); border-radius: var(--radius-xl); padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.pf-family .tag { align-self: flex-start; background: var(--surface); }
.pf-family h3 { font-size: var(--fs-xl); }
.pf-family > p { color: var(--ink-2); }
.pf-logo { width: 200px; height: auto; margin-bottom: 8px; align-self: flex-start; }
.pf-card .pf-logo { width: auto; height: 56px; }
.pf-items { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pf-items a { display: block; height: 100%; background: var(--surface); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.pf-items a:hover { border-color: var(--brand); }
.pf-items b { display: block; font-weight: 600; }
.pf-items span { display: block; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.6; margin-top: 2px; }
.pf-card { background: var(--surface-2); border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.pf-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pf-card .tag { align-self: flex-start; }
.pf-card h3 { font-size: var(--fs-lg); }
.pf-card p { color: var(--ink-2); font-size: var(--fs-sm); }
.pf-card .link-arrow { margin-top: auto; }
.card.route .ctas { margin-top: auto; padding-top: 8px; }
.policy { max-width: 760px; }
.policy h2 { font-size: var(--fs-lg); }
@media (max-width: 1000px) {
  .portfolio .pf-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-family { grid-row: auto; }
}
@media (max-width: 720px) {
  .pf-items { grid-template-columns: minmax(0, 1fr); }
  .pf-family { padding: 22px; }
}

/* Comparison tables inside sections (e.g. DBA contracts) */
.feature .table-wrap { margin-top: 18px; }
.feature table th[scope="row"] { font-weight: 400; background: none; white-space: normal; }
.feature table td { white-space: nowrap; text-align: center; width: 1%; font-weight: 500; }
.feature table thead th:not(:first-child) { text-align: center; }
@media (max-width: 720px) {
  .feature table th, .feature table td { padding: 10px 10px; }
}

/* ==========================================================================
   Visual layer (22 Nov 2026): icons, diagrams, flows, stats, tiles, tiers.
   Rendered by mds/src/visuals.php; switched on per section in the content JSON.
   ========================================================================== */
.i { display: block; flex: none; }
.card .ico .i, .fact .ico .i { width: 24px; height: 24px; }

/* Sections: the wrapper keeps the full-width row (tiles, table) with its section */
.fsec + .fsec { margin-top: 104px; }
.feature.has-visual { align-items: start; }
.feature-wide { margin-top: 40px; }
.feature-wide > h3.sub:first-child { margin-top: 0; margin-bottom: 16px; font-size: var(--fs-lg); }
.feature-wide > .tiles + h3.sub { margin-top: 48px; }
.visuals { display: grid; gap: 20px; }

/* Hero points with icons or figures */
.hero-aside.rich { padding: 28px 28px 24px; }
.hero-points { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 4px; }
.hero-points li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--fs-md); color: var(--ink); font-weight: 500; }
.hero-points li:first-child { border-top: 0; padding-top: 4px; }
.hero-points a { color: var(--ink); text-decoration: none; }
.hero-points a:hover { color: var(--brand-strong); text-decoration: underline; }
.hp-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.hp-ico .i { width: 22px; height: 22px; }
.hp-value { min-width: 72px; font-size: 1.75rem; line-height: 1; font-weight: 700; color: var(--brand); letter-spacing: -.01em; }

/* Callout under a section's text */
.callout { display: flex; gap: 16px; margin-top: 22px; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--brand-tint); border-inline-start: 4px solid var(--brand); }
.callout-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.callout b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.callout p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.75; }

/* Hub diagram */
.hub { margin: 0; background: var(--surface-2); border-radius: var(--radius-xl); padding: 28px 20px 22px; }
.hub-stage { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; margin-inline: auto; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-lines circle { fill: none; stroke: var(--brand-tint-2); stroke-width: 1.5; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.hub-lines line { stroke: var(--brand); stroke-width: 2; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; opacity: .55; animation: hub-flow 1.6s linear infinite; }
.hub-in .hub-lines line { animation-direction: reverse; }
.hub-tunnel .hub-lines line { stroke-width: 6; stroke-dasharray: none; opacity: .18; animation: none; }
.hub-lines line.off { stroke: var(--ink-3); opacity: .25; stroke-dasharray: 3 7; animation: none; }
@keyframes hub-flow { to { stroke-dashoffset: -24; } }
.hub-centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--brand); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 10px; box-shadow: 0 0 0 10px rgba(20, 79, 196, .12), var(--shadow); z-index: 2; }
.hub-centre img { width: 64%; height: auto; }   /* white lettermark (kit "dark" variant) on cobalt */
.hub-centre span { font-size: var(--fs-xs); font-weight: 600; line-height: 1.35; }
.hub-nodes { list-style: none; margin: 0; padding: 0; }
.hub-node { position: absolute; transform: translate(-50%, -50%); width: 26%; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; z-index: 2; }
.hub-ico { width: 52px; height: 52px; border-radius: 16px; background: #fff; color: var(--brand); display: grid; place-items: center; box-shadow: 0 1px 2px rgba(16, 36, 67, .08), 0 6px 16px rgba(16, 36, 67, .10); border: 1px solid var(--brand-tint-2); }
.hub-label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink); line-height: 1.35; background: var(--surface-2); padding: 0 4px; border-radius: 6px; }
.hub-node.off .hub-ico { color: var(--ink-3); background: transparent; box-shadow: none; border-style: dashed; border-color: var(--ink-3); opacity: .7; }
.hub-node.off .hub-label { color: var(--ink-3); font-weight: 500; }
.hub-lock { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; z-index: 1; }
.hub figcaption { margin-top: 14px; text-align: center; font-size: var(--fs-sm); color: var(--ink-3); }

/* Flow (process steps / timeline) */
.flow-box { background: var(--surface-2); border-radius: var(--radius-xl); padding: 28px; }
.flow-box h3 { font-size: var(--fs-md); margin-bottom: 18px; }
.flow { list-style: none; margin: 0; padding: 0; }
.flow li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; position: relative; padding-bottom: 22px; }
.flow li:last-child { padding-bottom: 0; }
.flow li:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 23px; top: 50px; bottom: 4px; width: 2px; background: var(--brand-tint-2); }
.flow-mark { width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--brand); border: 1px solid var(--brand-tint-2); display: grid; place-items: center; }
.flow-mark.year { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .02em; }
.flow b { display: block; color: var(--ink); font-weight: 600; padding-top: 2px; }
.flow span:not(.flow-mark) { display: block; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.65; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--dark); color: #fff; border-radius: var(--radius-lg); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; inset-inline-end: -26px; top: -26px; width: 90px; height: 90px; border-radius: 50%; border: 16px solid rgba(141, 181, 255, .14); }
.stat b { font-size: 1.75rem; line-height: 1.15; font-weight: 700; color: var(--brand-light); }
.stat span { font-size: var(--fs-sm); color: var(--on-dark-2); line-height: 1.55; }

/* Chips */
.chips-box { background: var(--surface-2); border-radius: var(--radius-xl); padding: 24px 28px; }
.chips-box h3 { font-size: var(--fs-md); margin-bottom: 14px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding-block: 8px; padding-inline: 12px 16px; color: var(--ink); font-weight: 500; font-size: var(--fs-sm); }
.chips li .i { color: var(--brand); }
.chips li.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.chips li.primary .i { color: #fff; }
.chips small { display: block; font-size: var(--fs-xs); font-weight: 400; opacity: .85; line-height: 1.3; }

/* Tiles (bullets across the full width) */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tiles li { background: var(--surface-2); border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; font-size: var(--fs-sm); line-height: 1.6; color: var(--ink); }
.tile-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.tiles li:hover .tile-ico { background: var(--brand); color: #fff; }

/* Steps across the full width */
.steps-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps-row li { position: relative; background: var(--surface-2); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; color: var(--ink); font-size: var(--fs-sm); line-height: 1.65; }
.steps-row li:not(:last-child)::after { content: ""; position: absolute; top: 44px; inset-inline-end: -16px; width: 16px; height: 2px; background: var(--brand); }
.step-top { display: flex; align-items: center; gap: 10px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: var(--fs-lg); }
.step-ico { color: var(--brand); }

/* Tier comparison (e.g. DBA Gold / Silver) */
.tiers table { border-collapse: separate; border-spacing: 0; }
.tiers thead th { vertical-align: bottom; font-size: var(--fs-md); }
.tiers thead th:not(:first-child) { min-width: 120px; }
.medal { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 6px; color: #fff; }
.medal.m1 { background: #B8892B; }
.medal.m2 { background: #8C97A8; }
.mark { display: inline-grid; place-items: center; }
.mark.yes { color: var(--brand); }
.mark.no { color: var(--ink-3); font-weight: 400; }
.freq { display: inline-block; min-width: 88px; padding: 3px 12px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; text-align: center; }
.freq.f4 { background: var(--brand); color: #fff; }
.freq.f3 { background: var(--brand-tint-2); color: var(--ink); }
.freq.f2 { background: var(--brand-tint); color: var(--ink); }
.freq.f1 { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.tiers tbody tr:nth-child(even) th, .tiers tbody tr:nth-child(even) td { background: var(--surface-2); }

/* Aside items with icons */
.bullets.with-icons li::before { display: none; }
.bullets.with-icons li .i { color: var(--brand); margin-top: 4px; }

@media (max-width: 1000px) {
  .tiles, .tiles.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-row li::after { display: none; }
}
@media (max-width: 720px) {
  .fsec + .fsec { margin-top: 64px; }
  .feature-wide { margin-top: 28px; }
  .tiles, .tiles.cols-3, .tiles.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles li { padding: 14px; }
  .steps-row { grid-template-columns: minmax(0, 1fr); }
  .hub { padding: 22px 12px 18px; }
  .hub-ico { width: 42px; height: 42px; border-radius: 12px; }
  .hub-node { width: 30%; }
  .hub-centre img { width: 70%; }
  .freq { min-width: 0; padding: 2px 8px; }
  .tiers thead th:not(:first-child) { min-width: 0; }
  .callout { padding: 16px; }
  .stat b { font-size: 1.35rem; }
}
@media (max-width: 420px) {
  .tiles, .tiles.cols-3, .tiles.cols-5 { grid-template-columns: minmax(0, 1fr); }
  .tiles li { flex-direction: row; align-items: center; }
  .hub-label { font-size: .75rem; }
  .hub-centre span { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) { .hub-lines line { animation: none; } }

/* Icon finish (review 22 Nov): two-tone icons and one badge style everywhere.
   Outline icons get a soft fill (.d); badges are solid cobalt with a gentle depth. */
.i .d { fill: currentColor; stroke: none; opacity: .16; }
.i .dot { stroke-width: 2.6; }
.card .ico, .hp-ico, .callout-ico, .tile-ico, .fact .ico {
  background: linear-gradient(145deg, #2C66DA 0%, var(--brand) 55%, #0F3FA6 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 14px -4px rgba(20, 79, 196, .45);
}
.card .ico .d, .hp-ico .d, .callout-ico .d, .tile-ico .d, .fact .ico .d { opacity: .3; }
.fact.lead .ico { box-shadow: none; }

/* Tiles: white, outlined cards so the icon badge reads clearly; the hover lifts the card */
.tiles li { background: #fff; border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tiles li:hover { border-color: var(--brand-tint-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.tiles li:hover .tile-ico { background: linear-gradient(145deg, #2C66DA 0%, var(--brand) 55%, #0F3FA6 100%); }
.tile-ico { width: 44px; height: 44px; }
.section.tint .tiles li { border-color: transparent; }

/* Outline-only places keep the soft fill a touch stronger */
.hub-ico .d, .flow-mark .d, .chips .d, .step-ico .d { opacity: .14; }
.hub-centre .d, .chips li.primary .d { opacity: .3; }
@media (prefers-reduced-motion: reduce) { .tiles li { transition: none; } .tiles li:hover { transform: none; } }
