/* METRIQOm Agro marketing sites (agr-control.com / agr-control.org).
   One design system for both domains — this file is byte-identical in both repos (FLOW 6).
   Tokens follow the METRIQOm Agro web app: navy #0F2F74, royal #2458B0, teal #22D0B6, green #17A98C,
   app canvas #F4F6F9, ink #0F1B33, worker canvas #0B1A33. Montserrat (display), Manrope (text),
   IBM Plex Mono (codes), IBM Plex Sans Arabic (RTL). */

:root {
  --navy: #0F2F74;
  --royal: #2458B0;
  --teal: #22D0B6;
  --green: #17A98C;
  --navy-d: #4F7FE0;
  --royal-d: #8DB0F4;
  --teal-d: #6FE8D3;
  --green-d: #22C7A6;

  --canvas: #F4F6F9;
  --surface: #FFFFFF;
  --surface-2: #EEF2F7;
  --line: #DCE2EA;
  --line-2: #C9D2DE;
  --ink: #0F1B33;
  --muted: #56627A;
  --faint: #8592A8;

  --dk: #0B1A33;
  --dk-2: #10244A;
  --dk-3: #163063;
  --dk-line: rgba(141, 176, 244, .18);
  --dk-text: #E8EEF9;
  --dk-muted: #A9B8D3;

  --ok: #2E7D32;
  --ok-bg: #E7F4E8;
  --warn: #9A6412;
  --warn-bg: #FBF0DD;
  --bad: #C62A33;
  --bad-bg: #FCE8E9;
  --info-bg: #E6EEFA;

  --accent-line: linear-gradient(90deg, #0F2F74 0%, #2458B0 55%, #22D0B6 100%);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Montserrat", "Manrope", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --arabic: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;

  --r: 14px;
  --r-sm: 10px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 51, .06), 0 1px 1px rgba(15, 27, 51, .04);
  --shadow: 0 10px 30px -12px rgba(15, 27, 51, .22), 0 2px 6px rgba(15, 27, 51, .06);
  --shadow-lg: 0 40px 80px -30px rgba(5, 14, 33, .55), 0 12px 30px -12px rgba(5, 14, 33, .35);
  --maxw: 1200px;
  --gutter: 24px;
  --nav-h: 68px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--royal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.15rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
strong { font-weight: 700; }
code, .mono { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { top: 8px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--royal);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent-line); border-radius: 2px; }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 46rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; border: 1.5px solid transparent;
  font-family: var(--display); font-weight: 600; font-size: .98rem; line-height: 1; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; text-decoration: none !important; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -10px rgba(15, 47, 116, .7); }
.btn-primary:hover { background: var(--royal); transform: translateY(-1px); }
.btn-teal { background: var(--teal); color: var(--dk); }
.btn-teal:hover { background: #4ADCC6; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--navy); }
.on-dark .btn-ghost, .dark .btn-ghost, .hero .btn-ghost, .cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.on-dark .btn-ghost:hover, .dark .btn-ghost:hover, .hero .btn-ghost:hover, .cta .btn-ghost:hover { border-color: var(--teal); color: var(--teal-d); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-arrow { font-weight: 700; font-family: var(--display); display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }
[dir="rtl"] .link-arrow::after { content: "←"; }
[dir="rtl"] .link-arrow:hover::after { transform: translateX(-3px); }

/* ---------- header ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent-line); }
.nav.scrolled { box-shadow: 0 8px 24px -16px rgba(15, 27, 51, .35); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; flex: none; }
.brand-logo { width: auto; height: 38px; display: block; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: .02em; color: var(--navy); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.brand-word em { font-style: normal; font-weight: 500; color: var(--green); }
.brand-word sup { font-size: .5em; font-weight: 600; margin-inline-start: 1px; vertical-align: super; line-height: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-links > a, .nav-dd > button {
  font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--ink); padding: 9px 12px; border-radius: 9px;
  background: none; border: 0; cursor: pointer; text-decoration: none !important; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.nav-links > a:hover, .nav-dd > button:hover, .nav-links > a.on, .nav-dd.on > button { background: var(--surface-2); color: var(--navy); }
.nav-dd { position: relative; }
.nav-dd > button svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-dd.open > button svg { transform: rotate(180deg); }
.dd-panel {
  position: absolute; top: calc(100% + 10px); inset-inline-start: -12px; width: 360px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-dd:hover .dd-panel, .nav-dd.open .dd-panel, .nav-dd:focus-within .dd-panel { opacity: 1; visibility: visible; transform: none; }
.dd-panel a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; color: var(--ink); text-decoration: none !important; }
.dd-panel a:hover { background: var(--canvas); }
.dd-panel a .t { display: block; }
.dd-panel a b { display: block; font-family: var(--display); font-size: .92rem; color: var(--navy); }
.dd-panel a small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.dd-panel .ico { width: 36px; height: 36px; flex: none; }
.dd-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.langsw { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.langsw button { border: 0; background: none; font-family: var(--display); font-weight: 700; font-size: .78rem; padding: 6px 9px; border-radius: 7px; cursor: pointer; color: var(--muted); }
.langsw button.on { background: var(--navy); color: #fff; }
.nav .btn { padding: 11px 18px; font-size: .9rem; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 72px 0; }
.section.white { background: var(--surface); }
.section.dark, .dark { background: var(--dk); color: var(--dk-text); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .lead, .dark .muted { color: var(--dk-muted); }
.dark .eyebrow { color: var(--teal-d); }
.dark a:not(.btn) { color: var(--teal-d); }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head p { margin: 0; }
.rule-top { border-top: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--dk-text);
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(34, 208, 182, .16), transparent 60%),
    radial-gradient(700px 500px at 5% 100%, rgba(36, 88, 176, .35), transparent 60%),
    linear-gradient(180deg, #0B1A33 0%, #0E2148 100%);
  padding: 84px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(141, 176, 244, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(141, 176, 244, .07) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%);
}
.hero .container { position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 3.9vw, 3.25rem); }
.hero h1 .hl { background: linear-gradient(90deg, #8DB0F4, #6FE8D3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--dk-muted); font-size: 1.2rem; }
.hero .eyebrow { color: var(--teal-d); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px; font-family: var(--mono); font-size: .8rem; color: var(--dk-muted); letter-spacing: .04em; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.hero-visual { position: relative; padding-bottom: 40px; }
.hero-visual .frame { box-shadow: var(--shadow-lg); }
.hero-visual .phone { position: absolute; right: -18px; bottom: -8px; width: 34%; max-width: 210px; }
.page-hero { padding: 72px 0 80px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.page-hero.solo .lead { max-width: 52rem; }
.crumbs { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dk-muted); margin-bottom: 16px; }
.crumbs a { color: var(--dk-muted) !important; }

/* ---------- frames (real screenshots) ---------- */
.frame { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid rgba(15, 27, 51, .12); box-shadow: var(--shadow); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; background: #F1F4F8; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D3DAE4; }
.frame-bar i:nth-child(1) { background: #F07167; }
.frame-bar i:nth-child(2) { background: #F4B740; }
.frame-bar i:nth-child(3) { background: #3BC273; }
.frame-pill { margin-inline-start: 10px; flex: 1; min-width: 0; text-overflow: ellipsis; max-width: 340px; height: 20px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-family: var(--mono); font-size: .66rem; color: var(--muted); display: flex; align-items: center; padding: 0 9px; white-space: nowrap; overflow: hidden; }
.frame img, .phone img { width: 100%; cursor: zoom-in; }
.phone { border-radius: 30px; overflow: hidden; background: transparent; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 0 0 7px rgba(255, 255, 255, .06), 0 30px 60px -18px rgba(5, 14, 33, .6); }
.phone img { border-radius: 30px; }
figure { margin: 0; }
figcaption { font-size: .86rem; color: var(--muted); margin-top: 12px; }
.dark figcaption { color: var(--dk-muted); }
.shot-note { font-family: var(--mono); font-size: .72rem; color: var(--faint); letter-spacing: .02em; margin-top: 8px; }
.dark .shot-note { color: rgba(169, 184, 211, .7); }

/* ---------- pills / clocks ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--royal); }
.pill.ccp { background: var(--bad); color: #fff; }
.pill.oprp { background: var(--warn-bg); color: var(--warn); border: 1px solid #EBC98C; }
.clock { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .8rem; color: var(--navy); background: var(--info-bg); border-radius: 8px; padding: 5px 10px; }
.clock svg { width: 14px; height: 14px; flex: none; }
.dark .clock { background: rgba(141, 176, 244, .12); color: var(--royal-d); }

/* ---------- edition strip ---------- */
.ed-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ed-chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--dk-line); color: #fff !important; font-family: var(--display); font-weight: 600; font-size: .92rem; text-decoration: none !important; transition: border-color .2s, background .2s; }
.ed-chip:hover { border-color: var(--teal); background: rgba(34, 208, 182, .08); }
.ed-chip .ico { width: 30px; height: 30px; border-radius: 50%; background: rgba(141, 176, 244, .14); color: var(--teal-d); }
.ed-chip.carbon { border-style: dashed; }
.band { padding: 26px 0; background: #0A1730; border-top: 1px solid var(--dk-line); }
.band p { text-align: center; font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dk-muted); margin: 0 0 14px; }

/* ---------- icons ---------- */
.ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--info-bg); color: var(--royal); flex: none; }
.ico svg { width: 56%; height: 56%; }
.ico.teal { background: rgba(34, 208, 182, .14); color: #0E8F7C; }
.ico.navy { background: var(--navy); color: #fff; }
.dark .ico { background: rgba(141, 176, 244, .12); color: var(--teal-d); }

/* ---------- grids & cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 18px; }
.card p:last-child { margin-bottom: 0; }
.card .muted { font-size: .98rem; }
.dark .card { background: var(--dk-2); border-color: var(--dk-line); box-shadow: none; }
.card.flat { box-shadow: none; }
.card-num { font-family: var(--mono); font-size: .78rem; color: var(--royal); letter-spacing: .1em; }

/* three seats */
.seat { display: flex; flex-direction: column; }
.seat .tag { align-self: flex-start; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
.seat h3 { margin: 16px 0 8px; }
.seat ul { list-style: none; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.seat li { font-size: .92rem; color: var(--muted); padding: 4px 0; padding-inline-start: 22px; position: relative; }
.seat li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 12px; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); }

/* principle rules */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--dk-line); }
.rule { padding: 30px 0; padding-inline-end: 32px; border-bottom: 1px solid var(--dk-line); display: grid; grid-template-columns: 56px 1fr; gap: 16px; }
.rule:nth-child(odd) { border-inline-end: 1px solid var(--dk-line); }
.rule:nth-child(even) { padding-inline-start: 32px; padding-inline-end: 0; }
.rule .n { font-family: var(--mono); font-size: .9rem; color: var(--teal-d); padding-top: 4px; }
.rule h3 { margin: 0 0 8px; font-size: 1.15rem; }
.rule p { margin: 0; color: var(--dk-muted); font-size: .98rem; }

/* line diagram (architecture, not a product screen) */
.line-dia { display: grid; grid-template-columns: 1fr 1.25fr 1.6fr 1.1fr; gap: 12px; align-items: stretch; }
.ld-box { position: relative; border-radius: 14px; padding: 18px 18px 16px; background: var(--surface); border: 1px solid var(--line); }
.ld-box .k { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ld-box b { display: block; font-family: var(--display); font-size: 1.02rem; color: var(--navy); margin: 6px 0 4px; }
.ld-box p { font-size: .88rem; color: var(--muted); margin: 0; }
.ld-box.clockbox { border-color: var(--royal); box-shadow: inset 0 0 0 1px var(--royal); }
.ld-box.gate { background: var(--navy); border-color: var(--navy); }
.ld-box.gate b, .ld-box.gate p, .ld-box.gate .k { color: #fff; }
.ld-box.gate .k { color: var(--teal-d); }
.ld-box:not(:last-child)::after { content: ""; position: absolute; inset-inline-end: -11px; top: 50%; width: 10px; height: 2px; background: var(--line-2); }
.ld-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.ld-side .ld-box { background: var(--canvas); border-style: dashed; }
.ld-side .ld-box::after { display: none; }

/* edition grid */
.ed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ed-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: var(--ink); text-decoration: none !important; transition: transform .25s, box-shadow .25s, border-color .25s; }
.ed-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.ed-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--canvas); border-bottom: 1px solid var(--line); }
.ed-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transform: scale(1.3); transform-origin: 62% 4%; transition: transform .5s; }
.ed-card:hover .thumb img { transform: scale(1.42); }
.ed-card .thumb.phone-shot img { transform: none; object-fit: contain; background: #0B1A33; }
.ed-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ed-card .top { display: flex; align-items: center; gap: 12px; }
.ed-card .top .ico { width: 40px; height: 40px; }
.ed-card h3 { margin: 0; font-size: 1.15rem; }
.ed-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.ed-card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.ed-card.carbon { background: linear-gradient(160deg, #0F2F74, #0B1A33); color: var(--dk-text); border-color: transparent; }
.ed-card.carbon h3 { color: #fff; }
.ed-card.carbon p { color: var(--dk-muted); }
.ed-card.carbon .thumb { border-color: var(--dk-line); background: var(--dk); }

/* split feature rows */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split + .split { margin-top: 96px; }
.split h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.split h3 { font-size: 1.5rem; }
.checks { list-style: none; margin: 18px 0 0; }
.checks li { position: relative; padding: 7px 0; padding-inline-start: 32px; color: var(--ink); }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 10px; width: 20px; height: 20px; border-radius: 6px; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E7D32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.checks.no li::before { background: var(--bad-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C62A33' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 12px no-repeat; }
.dark .checks li { color: var(--dk-text); }

/* key/value + step lists */
.steps { list-style: none; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; position: relative; padding: 16px 0; padding-inline-start: 52px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; inset-inline-start: 0; top: 16px; font-family: var(--mono); font-size: .82rem; color: var(--royal); background: var(--info-bg); border-radius: 8px; width: 36px; height: 26px; display: flex; align-items: center; justify-content: center; }
.steps b { display: block; font-family: var(--display); color: var(--navy); }
.steps span { color: var(--muted); font-size: .95rem; }
.steps .pill { margin-inline-start: 8px; vertical-align: 2px; font-size: .64rem; color: inherit; }
.steps .pill.ccp { color: #fff; }
.steps .pill.oprp { color: var(--warn); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.stat { padding: 28px 26px; border-inline-end: 1px solid var(--line); }
.stat:last-child { border-inline-end: 0; }
.stat b { display: block; font-family: var(--display); font-weight: 700; font-size: 2.4rem; color: var(--navy); line-height: 1; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.dark .stats { background: var(--dk-2); border-color: var(--dk-line); }
.dark .stat { border-color: var(--dk-line); }
.dark .stat b { color: #fff; }
.dark .stat span { color: var(--dk-muted); }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 720px; }
.tbl th { text-align: start; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--canvas); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-family: var(--display); font-weight: 700; color: var(--navy); white-space: nowrap; }
.tbl .ok-t { color: var(--ok); }
.tbl .bad-t { color: var(--bad); }

/* carbon layers */
.layers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.layer { border: 1px solid var(--dk-line); border-radius: 14px; padding: 18px; background: rgba(255, 255, 255, .03); }
.layer .n { font-family: var(--mono); font-size: .72rem; color: var(--teal-d); }
.layer b { display: block; font-family: var(--display); color: #fff; margin: 6px 0 6px; font-size: .98rem; line-height: 1.3; }
.layer p { margin: 0; font-size: .84rem; color: var(--dk-muted); line-height: 1.45; }
.grade-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.grade { border-radius: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); }
.grade b { font-family: var(--display); font-size: 1.6rem; color: var(--navy); }
.grade span { display: block; font-size: .82rem; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.grade .sc { font-family: var(--mono); font-size: .74rem; color: var(--royal); }

/* regions / authorities */
.auth { display: flex; flex-wrap: wrap; gap: 8px; }
.auth span { font-family: var(--display); font-weight: 700; font-size: .84rem; color: var(--navy); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.dark .auth span { color: #fff; background: rgba(255, 255, 255, .05); border-color: var(--dk-line); }
.region h3 { display: flex; align-items: center; gap: 10px; }
.region .flag { font-family: var(--mono); font-size: .74rem; font-weight: 500; color: var(--royal); background: var(--info-bg); border-radius: 6px; padding: 3px 8px; }
.doc-list { list-style: none; margin-top: 14px; }
.doc-list li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.doc-list li:last-child { border-bottom: 0; }
.doc-list li::before { content: ""; flex: none; width: 16px; height: 20px; margin-top: 2px; border-radius: 3px; border: 1.5px solid var(--royal); background: linear-gradient(var(--royal), var(--royal)) 3px 6px / 8px 1.5px no-repeat, linear-gradient(var(--royal), var(--royal)) 3px 10px / 8px 1.5px no-repeat; }

/* note / disclaimer */
.note { border-inline-start: 4px solid var(--teal); background: var(--surface); border-radius: 0 12px 12px 0; padding: 18px 22px; color: var(--muted); font-size: .95rem; }
[dir="rtl"] .note { border-radius: 12px 0 0 12px; }
.note b { color: var(--ink); }

/* ISO 22000 band */
.certband { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.cert-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: center; }
.cert-seal { width: 168px; height: 168px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff;
  background: radial-gradient(circle at 30% 25%, #2458B0, #0F2F74 70%); box-shadow: 0 0 0 7px #fff, 0 0 0 9px var(--teal), var(--shadow); }
.cert-seal b { font-family: var(--display); font-size: 2.3rem; line-height: 1; letter-spacing: .02em; }
.cert-seal span { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-d); }
.cert-inner h2 { margin-bottom: 12px; }
@media (max-width: 720px) { .cert-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; justify-items: start; } .cert-seal { width: 132px; height: 132px; } .cert-seal b { font-size: 1.8rem; } }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; }
.tier.feat { background: var(--dk); color: var(--dk-text); border-color: var(--dk); position: relative; }
.tier.feat h3 { color: #fff; }
.tier .price { font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: var(--navy); margin: 10px 0 4px; }
.tier.feat .price { color: #fff; }
.tier .for { color: var(--muted); font-size: .95rem; min-height: 3em; }
.tier.feat .for { color: var(--dk-muted); }
.tier .checks { margin-bottom: 26px; }
.tier.feat .checks li { color: var(--dk-text); }
.tier .btn { margin-top: auto; }
.tier .badge { position: absolute; top: 18px; inset-inline-end: 18px; }

/* CTA band */
.cta {
  border-radius: 26px; padding: 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
  background: radial-gradient(600px 300px at 100% 0%, rgba(34, 208, 182, .25), transparent 60%), linear-gradient(135deg, #0F2F74, #0B1A33);
  color: var(--dk-text);
}
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: var(--dk-muted); margin: 0; }

/* forms */
.form { display: grid; gap: 16px; }
.form.two { grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-family: var(--display); font-weight: 600; font-size: .86rem; color: var(--navy); margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: .98rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 11px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(36, 88, 176, .12); }
.form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.alert { display: none; padding: 13px 16px; border-radius: 11px; font-size: .95rem; }
.alert.ok { display: block; background: var(--ok-bg); color: var(--ok); }
.alert.err { display: block; background: var(--bad-bg); color: var(--bad); }
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card a { font-weight: 700; font-family: var(--display); font-size: 1.1rem; }

/* legal */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.4em; }
.legal ul { padding-inline-start: 1.3em; margin: 0 0 1em; }
.legal li { margin: .3em 0; }
.legal-toc { list-style: none; columns: 2; gap: 24px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 8px; }
.legal-toc b { display: block; column-span: all; margin-bottom: 8px; font-family: var(--display); color: var(--navy); }
.legal-toc li, .legal-toc a { display: block; margin: 4px 0; font-size: .94rem; break-inside: avoid; }
.legal-lead { font-size: 1.05rem; color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .94rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }

/* footer */
.footer { background: var(--dk); color: var(--dk-muted); padding: 72px 0 32px; font-size: .94rem; position: relative; }
.footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent-line); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .brand-word { color: #fff; }
.foot-brand .brand-word em { color: var(--green-d); }
.foot-brand p { margin: 16px 0 0; max-width: 24rem; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--mono); font-weight: 500; margin-bottom: 16px; }
.footer a { color: var(--dk-text); display: block; padding: 4px 0; }
.footer a.brand { display: inline-flex; padding: 0; }
.footer a.foot-mail { display: inline-flex; }
.footer a:hover { color: var(--teal-d); }
.footer a.tm-tile, .tm-tile { display: inline-flex; align-items: center; gap: 14px; padding: 12px 18px 12px 14px; background: #fff; border-radius: 16px; color: var(--navy) !important; text-decoration: none !important; }
.tm-tile img { height: 58px; width: auto; }
.tm-tile.mark img { height: 46px; }
.tm-tile > span { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.tm-tile b { font-family: var(--display); font-weight: 700; font-size: 1.02rem; color: var(--navy); letter-spacing: .02em; }
.tm-tile small { font-family: var(--font); font-weight: 500; font-size: .74rem; color: var(--muted); }
.tm-tile .tm-word { font-family: var(--display); font-weight: 700; font-size: .8rem; color: var(--royal); }
.foot-brand p { margin: 18px 0 0; }
.foot-mail { display: inline-flex !important; align-items: center; gap: 8px; margin-top: 16px; }
.foot-mail svg { width: 18px; height: 18px; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--dk-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; }
.foot-bottom a { display: inline; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(5, 11, 24, .9); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lb.on { display: flex; }
.lb img { max-width: min(1500px, 96vw); max-height: 92vh; width: auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lb-x { position: fixed; top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 26px; line-height: 44px; cursor: pointer; z-index: 2; }
.lb-hint { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); font-family: var(--font); font-size: .8rem; color: rgba(255, 255, 255, .8); background: rgba(5, 11, 24, .65); padding: 6px 12px; border-radius: 999px; display: none; white-space: nowrap; }

/* reveal */
[data-rv] { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); will-change: opacity, transform; }
[data-rv="left"] { transform: translateX(-26px); }
[data-rv="right"] { transform: translateX(26px); }
[data-rv="zoom"] { transform: scale(.96); }
[data-rv].in { opacity: 1; transform: none; }
[data-d="1"] { transition-delay: .08s; }
[data-d="2"] { transition-delay: .16s; }
[data-d="3"] { transition-delay: .24s; }
[data-d="4"] { transition-delay: .32s; }
[data-d="5"] { transition-delay: .4s; }
[data-d="6"] { transition-delay: .48s; }
.no-js [data-rv] { opacity: 1; transform: none; }

/* ---------- Arabic / RTL ---------- */
body.ar { font-family: var(--arabic); }
body.ar h1, body.ar h2, body.ar h3, body.ar h4, body.ar .btn, body.ar .nav-links > a, body.ar .nav-dd > button, body.ar .pill, body.ar .stat b { font-family: var(--arabic); letter-spacing: 0; }
body.ar .eyebrow, body.ar .crumbs, body.ar .tbl th, body.ar .footer h4, body.ar .hero-meta, body.ar .band p, body.ar .frame-pill, body.ar .clock, body.ar .shot-note, body.ar .ld-box .k, body.ar .seat .tag, body.ar .grade .sc, body.ar .layer .n, body.ar .rule .n { font-family: var(--arabic); letter-spacing: 0; text-transform: none; }
[dir="rtl"] .btn svg { transform: scaleX(-1); }
body.ar .frame-pill { font-size: .72rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  /* no backdrop-filter here: it would make the header the containing block of the fixed menu panel */
  .nav { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-open .nav-links { z-index: 99; box-shadow: 0 20px 40px -20px rgba(15, 27, 51, .25); }
  .nav-links { position: fixed; top: var(--nav-h); inset-inline: 0; bottom: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 40px; overflow-y: auto; margin: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility .2s; }
  .nav-open .nav-links { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-open { overflow: hidden; }
  .nav-links > a, .nav-dd > button { padding: 15px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.02rem; width: 100%; justify-content: space-between; }
  .dd-panel { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 10px; display: none; }
  .nav-dd.open .dd-panel { display: block; }
  .nav-toggle { display: flex; }
  .nav-actions { margin-inline-start: auto; }
  .nav-actions .btn { display: none; }
  .nav-links .m-cta { display: flex !important; margin-top: 20px; }
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .split.rev > :first-child { order: 0; }
  .ed-grid, .grid-3, .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4, .layers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .line-dia { grid-template-columns: 1fr 1fr; }
  .ld-box::after { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-inline-end: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .dark .stat:nth-child(-n+2) { border-color: var(--dk-line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .grade-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.m-cta { display: none !important; }
@media (max-width: 720px) {
  :root { --gutter: 18px; --nav-h: 60px; }
  body { font-size: 15.5px; line-height: 1.58; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.48rem; }
  h3 { font-size: 1.08rem; }
  .lead { font-size: 1.01rem; line-height: 1.55; }
  .eyebrow { font-size: .7rem; margin-bottom: 10px; }
  .section { padding: 50px 0; }
  .section.tight { padding: 30px 0; }
  .sec-head { margin-bottom: 22px; }
  .brand-logo { height: 32px; }
  .brand-word { font-size: .96rem; }
  .langsw button { padding: 6px 7px; }

  /* hero: short copy, two buttons side by side, the readable phone screen first */
  .hero { padding: 30px 0 40px; }
  .page-hero { padding: 30px 0 36px; }
  .hero h1, .page-hero h1 { font-size: 1.85rem; }
  .hero .lead { font-size: 1rem; }
  .hero-grid { gap: 26px; }
  .btn-row { margin-top: 20px; gap: 10px; }
  .btn-row .btn { flex: 1 1 0; min-width: 0; padding: 13px 12px; font-size: .9rem; }
  .btn { white-space: normal; text-align: center; }
  .hero-meta { margin-top: 18px; gap: 6px; font-size: .68rem; }
  .hero-meta span { background: rgba(141, 176, 244, .1); border: 1px solid var(--dk-line); border-radius: 999px; padding: 5px 10px; }
  .hero-meta span::before { display: none; }
  .crumbs { font-size: .68rem; margin-bottom: 10px; }
  .hero-visual { padding-bottom: 0; display: flex; justify-content: center; }
  .hero-visual:has(.phone) .frame { display: none; }
  .hero-visual .phone { position: static; width: 54%; max-width: 220px; }
  .hero-visual .phone img { aspect-ratio: 9 / 15; object-fit: cover; object-position: top; }

  /* screenshots: crop to the content, tap to zoom */
  .frame { border-radius: 12px; position: relative; }
  .frame-bar { height: 26px; gap: 5px; padding: 0 10px; }
  .frame-bar i { width: 8px; height: 8px; }
  .frame-pill { height: 16px; font-size: .58rem; margin-inline-start: 6px; }
  .frame img { transform: scale(1.5); transform-origin: var(--fp, 48% 0); }
  .frame::after { content: ""; position: absolute; bottom: 10px; inset-inline-end: 10px; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(15, 27, 51, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat; pointer-events: none; }
  figcaption { font-size: .82rem; }
  .split { gap: 22px; }
  .split + .split { margin-top: 46px; }
  .split .lead { font-size: .98rem; }
  .checks li { padding-top: 5px; padding-bottom: 5px; font-size: .95rem; }
  .checks li::before { top: 8px; }

  /* card groups become swipeable rows */
  .ed-grid, .grid-3 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .ed-grid::-webkit-scrollbar, .grid-3::-webkit-scrollbar { display: none; }
  .ed-grid > *, .grid-3 > * { flex: 0 0 84%; scroll-snap-align: start; }
  .card { padding: 20px; }
  .card h3 { margin-top: 14px; }
  .ed-card .body { padding: 16px 16px 18px; }
  .ed-card .thumb { aspect-ratio: 16 / 9; }
  .ed-card p { font-size: .9rem; }
  .grid-2, .grid-4, .tiers, .rules, .ld-side, .form.two { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .layers { grid-template-columns: 1fr 1fr; gap: 10px; }
  .layer { padding: 14px; }
  .layer b { font-size: .88rem; }
  .layer p { font-size: .76rem; }

  /* edition chips: one swipeable line */
  .band { padding: 18px 0; }
  .band p { font-size: .64rem; margin-bottom: 10px; }
  .ed-strip { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .ed-strip::-webkit-scrollbar { display: none; }
  .ed-chip { flex: none; font-size: .84rem; padding: 7px 14px 7px 8px; }
  .ed-chip .ico { width: 26px; height: 26px; }

  /* the line: a compact vertical timeline */
  .line-dia { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ld-box { padding: 14px 16px; border-radius: 12px; }
  .ld-box b { font-size: .96rem; margin: 4px 0 2px; }
  .ld-box p { font-size: .84rem; }
  .ld-box:not(:last-child)::after { display: block; inset-inline-end: auto; inset-inline-start: 24px; top: auto; bottom: -9px; width: 2px; height: 8px; }
  .ld-side { margin-top: 8px; gap: 8px; }

  .rule, .rule:nth-child(even) { padding: 18px 0; border-inline-end: 0 !important; }
  .rule { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .rule h3 { font-size: 1.02rem; }
  .rule p { font-size: .9rem; }
  .steps li { padding-top: 12px; padding-bottom: 12px; }
  .steps span { font-size: .9rem; }

  /* tables become stacked cards */
  .tbl-wrap { overflow: visible; border: 0; background: none; }
  table.tbl { min-width: 0; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
  .tbl td { grid-column: 1 / -1; }
  .tbl td.n { grid-column: auto; }
  .tbl td { border: 0; padding: 4px 0; font-size: .9rem; white-space: normal; }
  .tbl td:first-child { font-size: 1rem; padding-bottom: 6px; white-space: normal; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
  body.ar .tbl td[data-label]::before { font-family: var(--arabic); letter-spacing: 0; }

  .grade-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .grade { padding: 12px; }
  .tier { padding: 24px; }
  .cta { padding: 26px 20px; grid-template-columns: minmax(0, 1fr); gap: 18px; border-radius: 20px; }
  .cta h2 { font-size: 1.32rem; }
  .cta .btn-row .btn { flex: 1 1 100%; }
  .note { padding: 14px 16px; font-size: .9rem; }
  .certband { padding: 40px 0; }

  /* footer: links two-up */
  .footer { padding: 44px 0 26px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .foot-brand { grid-column: 1 / -1; }
  .footer h4 { margin-bottom: 8px; }
  .footer a { font-size: .9rem; padding: 3px 0; }
  .foot-bottom { margin-top: 30px; font-size: .78rem; flex-direction: column; gap: 6px; }
  .legal-toc { columns: 1; }

  /* lightbox: the full-resolution screen, pannable */
  .lb { overflow: auto; align-items: flex-start; justify-content: flex-start; padding: 64px 12px 24px; cursor: auto; }
  .lb.on { display: block; }
  .lb img { max-width: none; max-height: none; width: 1100px; }
  .lb .lb-hint { display: block; }
}

/* ---------- reduced motion (the one global block) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-rv] { opacity: 1 !important; transform: none !important; }
}
