/* ==========================================================================
   Itutin (אִיתוּתִין · إيتوتين · Итутин) — Bespoke Product Showcase & Legal Pages
   Concept: "תעודת מסירה ונתיב האות" (Cryptographic Delivery Dossier & Signal Conduit)
   Design System: clients/itutin/design.md & office/standards-dizajn.md (16-17.10.2026)
   Self-hosted WOFF2 fonts:
   - ISerifHe: Frank Ruhl Libre (Hebrew + Latin)
   - ISerifAr: Noto Naskh Arabic (Arabic) + Frank Ruhl Libre (Latin/₪)
   - ISerifRu: Source Serif 4 (Cyrillic + Latin) + Frank Ruhl Libre (₪ & Hebrew fallback)
   - Rubik: UI, body text, tables, forms (Hebrew + Arabic + Cyrillic + Latin)
   - JetBrains Mono: event_id, SHA-256 digests, HTTP status codes, endpoints (LTR)
   0 external requests. Logical CSS properties for seamless RTL (HE, AR) & LTR (RU, EN).
   ========================================================================== */

/* Display serif for Hebrew pages: Frank Ruhl Libre */
@font-face {
  font-family: "ISerifHe";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/frank-ruhl-libre-hebrew-300-normal.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "ISerifHe";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/frank-ruhl-libre-hebrew-400-normal.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "ISerifHe";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/frank-ruhl-libre-hebrew-500-normal.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "ISerifHe";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/frank-ruhl-libre-hebrew-700-normal.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "ISerifHe";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/frank-ruhl-libre-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "ISerifHe";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/frank-ruhl-libre-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "ISerifHe";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/frank-ruhl-libre-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "ISerifHe";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/frank-ruhl-libre-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

/* Display serif for Arabic pages: Noto Naskh Arabic + Frank Ruhl Libre fallback */
@font-face {
  font-family: "ISerifAr";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/noto-naskh-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "ISerifAr";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/frank-ruhl-libre-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+20AA;
}

/* Display serif for Russian & English pages: Source Serif 4 + Frank Ruhl Libre fallback */
@font-face {
  font-family: "ISerifRu";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/source-serif-4-cyrillic-300-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "ISerifRu";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "ISerifRu";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-cyrillic-400-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "ISerifRu";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "ISerifRu";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "ISerifRu";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "ISerifRu";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "ISerifRu";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/frank-ruhl-libre-hebrew-400-normal.woff2") format("woff2");
  unicode-range: U+0590-05FF, U+20AA, U+FB1D-FB4F;
}

/* Primary Sans: Rubik (Hebrew, Arabic, Cyrillic, Latin) */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/rubik-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/rubik-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/rubik-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/rubik-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Technical Monospace: JetBrains Mono */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
}

/* ---------- Design Tokens ---------- */
:root {
  color-scheme: light;

  /* Cold Engineering Blueprint Desk & Sheets (design.md § 3.1) */
  --paper: #EEF2F5;          /* Cold telemetry paper (14.8:1 with --ink) */
  --sheet: #FFFFFF;          /* Crisp specification sheet */
  --sheet-2: #F5F8FA;        /* Secondary technical surface */
  --bg-code: #E8EEF2;        /* Monospace identifier surface */

  /* Ink & Typography */
  --ink: #131E26;            /* Deep charcoal ink (16.5:1 on sheet) */
  --ink-2: #485664;          /* Slate secondary text (7.1:1 on sheet, 6.4:1 on paper) */

  /* Brand Accent — Deep Petrol (design.md § 3.1: #0B5563) */
  --navy: #0B5563;           /* Primary petrol accent (8.42:1 on sheet) */
  --navy-fill: #0B5563;      /* Solid petrol fill with white text (8.42:1) */
  --navy-hover: #084451;     /* Hover state (10.74:1) */
  --navy-deep: #08222B;      /* Contrasting dark telemetry abyss (#amendment13, #pilot-form, .foot) */
  --navy-tint: #E1F0F2;      /* Active row / tint surface */

  /* Telemetry Dossier Backing & Oxidized Copper Stamps */
  --board: #CFDCE2;          /* Blueprint folder board, front */
  --board-back: #BDCED7;     /* Blueprint folder board, back wall */
  --board-2: #DCE6EB;
  --board-ink: #143A45;      /* 8.3:1 on board */
  --brass: #7A5411;          /* Oxidized copper/brass for stamps & kickers (5.8:1 on paper) */
  --brass-tint: #F4EFE1;
  --brass-lt: #E0BD68;       /* Labels on --navy-deep (9.1:1) */

  /* Dark Section Text & Rules */
  --on-dark: #EEF3F6;
  --on-dark-2: #B4C4CE;      /* 8.8:1 on --navy-deep */
  --rule: #C8D2DA;
  --rule-dark: #1E424E;
  --top-bg: rgba(238, 242, 245, 0.95);
  --tab-bg: linear-gradient(180deg, #E8EFF2, #D3DFE6);
  --tab-border: #B2C3CE;
  --rail-bg: linear-gradient(to left, var(--board), #DEE7EC);
  --rail-bg-rtl: linear-gradient(to right, var(--board), #DEE7EC);

  /* Semantic Status Tokens (WCAG AA verified) */
  --ok: #1A7334;
  --ok-bg: #E6F4EA;
  --ok-bd: #B8DFC4;

  --queued: #784700;
  --queued-bg: #FDF1D8;
  --queued-bd: #EBC57C;

  --alert: #B3261E;
  --err-bg: #FBE9E7;
  --err-bd: #F3B8B3;

  --noconsent: #43505E;
  --noconsent-bg: #EDF0F3;
  --noconsent-bd: #CBD2D9;

  /* Semantic Radii */
  --r-doc: 2px;
  --r-btn: 6px;
  --r-chip: 999px;

  /* Motion & Fonts */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --serif: "ISerifHe", "Frank Ruehl", Georgia, serif;
  --dw: 400;
  --sans: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1240px;
  --gut: 36px;
}

html[lang="ar"] {
  --serif: "ISerifAr", "Rubik", Georgia, serif;
  --dw: 600;
}

html[lang="ru"],
html[lang="en"] {
  --serif: "ISerifRu", Georgia, "Times New Roman", serif;
  --dw: 400;
}

/* ---------- Base Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.62 var(--sans);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background: var(--paper);
  color: var(--ink);
  text-align: start;
  overflow-x: clip;
}

img, svg {
  display: block;
}

a {
  color: inherit;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

ul, ol {
  list-style: none;
}

p {
  text-wrap: pretty;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.dark :focus-visible,
.dark:focus-visible {
  outline-color: var(--brass-lt);
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.mono, code {
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

bdi {
  unicode-bidi: isolate;
}

.skip-link {
  position: absolute;
  inset-inline-start: 14px;
  top: -64px;
  z-index: 200;
  background: var(--navy-fill);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-btn);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* Blueprint & paper grain texture */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: url(#paper);
  opacity: 0.55;
}

section {
  position: relative;
  z-index: 1;
}

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  background: var(--navy-fill);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: var(--r-btn);
  border: 1.5px solid transparent;
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease);
}

.btn:hover {
  background: var(--navy-hover);
  color: #fff;
  text-decoration: none;
}

.btn:active {
  background: #06343E;
  transform: scale(0.985);
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 17px;
}

.btn-sm {
  min-height: 38px;
  padding: 0 15px;
  font-size: 14px;
  white-space: nowrap;
}

.btn-outline {
  background: var(--sheet);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy-tint);
  color: var(--navy);
}

.btn-full {
  width: 100%;
}

.link-strong {
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  font-size: 16.5px;
}

.link-strong:hover {
  text-decoration-thickness: 2.5px;
}

.ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r-btn);
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.ghost:hover {
  background: var(--navy-tint);
  border-color: var(--navy);
}

/* ---------- Sticky Header (.top) — Clean, Single-Bar ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--top-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.top .wrap {
  max-width: 1380px;
  padding-inline: 22px;
}

.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: var(--navy-fill);
  color: #fff;
  border-radius: var(--r-doc);
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.brand-tag {
  font-size: 11.5px;
  color: var(--ink-2);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(9px, 0.95vw, 15px);
  font-size: 13.5px;
  flex-wrap: nowrap;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  padding-block: 6px;
  white-space: nowrap;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.top-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

/* Editorial Dossier Language Dropdown (.lang-dd) */
.lang-dd {
  position: relative;
}

.lang-trigger {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  background: var(--sheet);
  border: 1px solid var(--tab-border);
  border-inline-start: 3px solid var(--navy);
  border-radius: var(--r-doc);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  user-select: none;
  white-space: nowrap;
  box-shadow: 0 2px 5px -3px rgba(19, 30, 38, 0.25);
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.lang-trigger::-webkit-details-marker {
  display: none;
}

.lang-trigger:hover {
  background: var(--sheet-2);
  border-color: var(--navy);
}

.lang-icon {
  color: var(--navy);
  flex: none;
}

.lang-curr-code {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--navy-tint);
  color: var(--navy);
}

.lang-chev {
  color: var(--ink-2);
  flex: none;
  transition: transform 0.18s var(--ease);
}

.lang-dd[open] .lang-trigger {
  background: var(--navy-tint);
  border-color: var(--navy);
}

.lang-dd[open] .lang-chev {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 90;
  min-width: 210px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-block-start: 3px solid var(--navy);
  border-radius: var(--r-doc);
  padding: 6px;
  box-shadow: 0 20px 38px -16px rgba(19, 30, 38, 0.45);
  display: grid;
  gap: 3px;
}

.lang-menu-head {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brass);
  padding: 4px 8px 6px;
  border-bottom: 1px dashed var(--rule);
  margin-bottom: 2px;
}

.lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color 0.14s var(--ease), color 0.14s var(--ease);
}

.lang-opt:hover {
  background: var(--sheet-2);
  color: var(--navy);
  text-decoration: none;
}

.lang-opt.active,
.lang-opt[aria-current="page"] {
  background: var(--navy-fill);
  color: #fff;
  font-weight: 600;
}

.lang-opt-code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
}

.lang-opt.active .lang-opt-code,
.lang-opt[aria-current="page"] .lang-opt-code {
  color: var(--brass-lt);
}

.menu-btn {
  display: none;
}

/* Legacy .eco-bar removed per user request (projects are listed in .foot) */
.eco-bar {
  display: none !important;
}

/* ---------- Side Binder Index Rail (.rail on >= 1520px) ---------- */
.rail {
  position: fixed;
  z-index: 44;
  top: 108px;
  inset-inline-end: 14px;
  display: none;
  flex-direction: column;
  gap: 5px;
}

.rtab {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 82px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--board-ink);
  background: var(--rail-bg);
  border: 1px solid var(--tab-border);
  border-radius: var(--r-btn);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

html[dir="rtl"] .rtab {
  background: var(--rail-bg-rtl);
}

.rtab .rnum {
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.75;
}

.rtab:hover {
  color: var(--ink);
  background: var(--sheet);
  text-decoration: none;
}

.rtab.on {
  background: var(--navy-fill);
  color: #fff;
  border-color: var(--navy-fill);
}

@media (min-width: 1520px) {
  .rail {
    display: flex;
  }
}

/* ---------- Typography & Section Headers ---------- */
.kicker {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--brass);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: currentColor;
  flex: none;
}

.dark .kicker {
  color: var(--brass-lt);
}

.h1 {
  font-family: var(--serif);
  font-weight: var(--dw);
  font-size: clamp(27px, 2.25vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
}

html[lang="he"] .h1 {
  font-size: clamp(31px, 2.75vw, 42px);
  line-height: 1.1;
}

html[lang="ar"] .h1 {
  font-size: clamp(28px, 2.45vw, 37px);
  line-height: 1.24;
  letter-spacing: 0;
}

.h1-line {
  display: block;
}

.h2 {
  font-family: var(--serif);
  font-weight: var(--dw);
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

html[lang="ar"] .h2 {
  line-height: 1.22;
  letter-spacing: 0;
}

.dark .h2 {
  color: var(--on-dark);
}

.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
}

.sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
  margin-top: 14px;
}

.dark .sub {
  color: var(--on-dark-2);
}

.sec-head {
  margin-bottom: 44px;
}

/* ---------- Semantic Status Chips (design.md § 3.2) ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  border-radius: var(--r-chip);
  border: 1px solid transparent;
  white-space: nowrap;
}

.chip-ok {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: var(--ok-bd);
}

.chip-warn {
  background: var(--queued-bg);
  color: var(--queued);
  border-color: var(--queued-bd);
}

.chip-err {
  background: var(--err-bg);
  color: var(--alert);
  border-color: var(--err-bd);
}

/* ---------- Section 1: Hero & Cryptographic Delivery Dossier (#route) ---------- */
.hero {
  padding-block: 28px 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 6.1fr 5.9fr;
  column-gap: 44px;
  align-items: start;
}

.lede {
  margin-top: 20px;
  max-width: 52ch;
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 26px;
}

.assure {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 12px;
}

.assure li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.45;
}

.assure .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
  margin-top: 6px;
  flex: none;
}

.assure strong {
  color: var(--ink);
  font-weight: 600;
  margin-inline-end: 6px;
}

.assure span {
  color: var(--ink-2);
}

/* Tactile Telemetry Dossier (#dossier) */
.dossier {
  position: relative;
  padding-top: 18px;
}

.folder-back {
  position: absolute;
  inset: 34px -10px -8px 10px;
  border-radius: 3px;
  background: linear-gradient(172deg, var(--board) 0%, var(--board-back) 70%, var(--board) 100%);
  transform: rotate(-0.9deg);
  box-shadow: 0 2px 0 rgba(20, 58, 69, 0.16), 0 28px 44px -26px rgba(19, 30, 38, 0.45);
}

html[dir="rtl"] .folder-back {
  inset: 34px 10px -8px -10px;
  transform: rotate(0.9deg);
}

.folder-lip {
  position: absolute;
  z-index: 1;
  inset-block-start: 12px;
  inset-inline-start: 16px;
  padding: 3px 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--board-ink);
  background: var(--board);
  border: 1px solid var(--tab-border);
  border-radius: 4px 4px 0 0;
}

/* Paperclip Origin Slip */
.slip {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--sheet-2);
  border: 1px solid var(--tab-border);
  border-inline-start: 3px solid var(--brass);
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: var(--r-doc);
  box-shadow: 0 8px 16px -12px rgba(19, 30, 38, 0.35);
}

.clip {
  width: 18px;
  height: 32px;
  color: var(--brass);
  flex: none;
}

.slip-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.slip-k {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.slip-v {
  font-size: 12px;
  color: var(--ink-2);
}

.slip-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--brass-tint);
  color: var(--brass);
  border-radius: var(--r-doc);
  white-space: nowrap;
}

/* Dossier Folder Tabs */
.tabs {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}

.tab {
  flex: 1 1 0;
  min-width: 0;
  min-height: 36px;
  padding: 5px 8px;
  font-size: 11.5px;
  line-height: 1.2;
  text-align: center;
  font-weight: 600;
  color: var(--board-ink);
  background: var(--tab-bg);
  border-start-start-radius: 6px;
  border-start-end-radius: 6px;
  border: 1px solid var(--tab-border);
  border-block-end: 0;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.tab:hover {
  color: var(--ink);
}

.tab.active,
.tab[aria-selected="true"] {
  background: var(--navy-fill);
  color: #fff;
  border-color: var(--navy-fill);
}

/* Crisp White Specification Sheet */
.sheet {
  position: relative;
  z-index: 2;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-block-start: 3px solid var(--navy);
  border-radius: 0 0 var(--r-doc) var(--r-doc);
  padding: 14px 18px 14px;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-2);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  flex-wrap: wrap;
}

.sheet-head span {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--ink);
}

.sheet-head b {
  color: var(--brass);
  font-weight: 600;
}

.sheet-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.who {
  flex: 1;
  min-width: 200px;
}

.who-name {
  font-family: var(--serif);
  font-weight: var(--dw);
  font-size: 21px;
  line-height: 1.16;
  color: var(--ink);
}

.who-sub {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 3px;
}

.state {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.state-lbl {
  color: var(--ink-2);
}

.state-val {
  color: var(--navy);
  font-weight: 700;
}

/* Rotated Double-Bordered Cryptographic Ink Stamp */
.stamp {
  flex: none;
  padding: 5px 11px;
  border: 3px double var(--navy);
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  text-align: center;
  transform: rotate(-3deg);
  border-radius: var(--r-doc);
  background: rgba(255, 255, 255, 0.94);
  filter: url(#ink);
}

.stamp.warn-stamp {
  border-color: var(--brass);
  color: var(--brass);
}

.stamp small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
  direction: ltr;
}

/* Dual Channel Conduit Comparison inside Sheet */
.conduit-mini {
  margin-top: 10px;
  padding: 8px 11px;
  background: var(--sheet-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-doc);
  display: grid;
  gap: 6px;
}

.c-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.c-ch {
  font-weight: 600;
  color: var(--ink);
}

.c-bar {
  height: 7px;
  background: #DCE4EA;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.c-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s var(--ease);
}

.c-fill.ok {
  background: var(--navy);
}

.c-fill.warn {
  background: var(--brass);
}

.c-fill.err {
  background: var(--alert);
}

/* Timestamped Server Telemetry Log */
.log {
  margin-top: 9px;
  border-top: 1px solid var(--rule);
}

.log li {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12.5px;
}

.log li.done {
  background: var(--navy-tint);
  margin-inline: -8px;
  padding-inline: 8px;
  font-weight: 600;
}

.log time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
}

.log code {
  font-size: 11px;
  padding: 2px 6px;
  background: var(--bg-code);
  border-radius: 3px;
  color: var(--ink);
}

.return {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding: 7px 10px;
  background: var(--brass-tint);
  color: var(--board-ink);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-doc);
  border-inline-start: 3px solid var(--brass);
  flex-wrap: wrap;
}

.return svg {
  flex: none;
  color: var(--brass);
}

.return span {
  flex: 1;
  min-width: 180px;
}

.return b {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
}

.dossier-controls {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed var(--rule);
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ink-2);
  flex-wrap: nowrap;
}

.dossier-controls span {
  flex: 1 1 auto;
  min-width: 0;
}

.dossier-controls .ghost {
  flex: none;
  white-space: nowrap;
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

/* Supported Signal Sources Strip */
.sources {
  margin-top: 52px;
  border-top: 1px solid var(--ink);
  padding-block: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 14.5px;
}

.sources-lbl {
  color: var(--ink-2);
  font-weight: 600;
}

.sources ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-weight: 600;
  color: var(--ink);
}

.sources li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.s-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy);
  flex: none;
}

/* ---------- Section 2: Broken Browser Desk (#before) ---------- */
.before {
  background: var(--sheet);
  border-block: 1px solid var(--rule);
  padding-block: 96px;
}

.before-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  column-gap: 56px;
  align-items: start;
}

.pains {
  margin-top: 32px;
  border-top: 1px solid var(--ink);
}

.pains li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  border-radius: var(--r-doc);
  transition: background-color 0.15s var(--ease);
}

.pains li:hover,
.pains li.active {
  background: var(--navy-tint);
}

.p-num {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brass);
  padding-top: 3px;
  flex: none;
}

.p-txt {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p-txt strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.p-txt span {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* Tactile Failure Desk (#mess) */
.mess {
  position: sticky;
  top: 96px;
  background: #DFE6EB;
  border: 1px solid var(--rule);
  border-radius: var(--r-doc);
  padding: 20px;
  display: grid;
  gap: 14px;
}

.art {
  background: var(--sheet);
  border: 1px solid #B8C6D0;
  border-radius: var(--r-doc);
  padding: 12px 14px;
  font-size: 13px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
  opacity: 0.78;
}

.art.highlight {
  opacity: 1;
  border-color: var(--navy);
  border-inline-start: 4px solid var(--navy);
  box-shadow: 0 12px 24px -14px rgba(19, 30, 38, 0.45);
  transform: translateY(-2px);
}

.art-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 7px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font-weight: 600;
  color: var(--ink);
  font-size: 12.5px;
}

.art-bar span:last-child {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--alert);
}

.xls-rows {
  display: grid;
  gap: 5px;
}

.xls-r {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
  padding: 5px 8px;
  background: var(--sheet-2);
  border-radius: 3px;
  font-size: 12px;
}

.xls-r.bad span:last-child {
  color: var(--alert);
  font-weight: 600;
}

.call-list {
  display: grid;
  gap: 5px;
}

.call-r {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
}

.call-r .miss {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--alert);
  font-weight: 600;
}

.bub {
  padding: 7px 10px;
  background: var(--sheet-2);
  border-radius: 5px;
  font-size: 12.5px;
  margin-bottom: 6px;
}

.bub.out {
  background: var(--err-bg);
  color: var(--alert);
  font-weight: 500;
  margin-bottom: 0;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 44px;
  padding: 4px 0;
}

.bars span {
  flex: 1;
  background: var(--navy);
  border-radius: 2px 2px 0 0;
}

.bars span.drop {
  background: var(--alert);
  opacity: 0.65;
}

.ads-note {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--alert);
  margin-top: 6px;
}

.a-note {
  background: linear-gradient(170deg, #FFF5BD, #F7E488);
  border-color: #D9C05B;
  color: #131E26;
}

.a-note strong {
  display: block;
  font-weight: 700;
  color: #7A5411;
  margin-bottom: 3px;
}

/* ---------- Section 3: Path of One Signal (#how-it-works) ---------- */
.path {
  padding-block: 96px;
}

.path-grid {
  display: grid;
  grid-template-columns: 6.2fr 5.8fr;
  column-gap: 56px;
  align-items: start;
}

.steps {
  position: relative;
  padding-inline-start: 68px;
}

.lamed {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 68px;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.lamed path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lamed .ghost-line {
  stroke: var(--rule);
  stroke-width: 2.2;
}

.lamed .ink-line {
  stroke: var(--navy);
  stroke-width: 3.2;
}

.lamed .ret-line {
  stroke: var(--brass);
  stroke-width: 2;
  stroke-dasharray: 4 7;
}

.steps-list {
  display: grid;
  gap: 28px;
}

.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r-doc);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.step.cur {
  border-color: var(--navy);
  border-inline-start: 4px solid var(--navy);
  box-shadow: 0 14px 28px -18px rgba(19, 30, 38, 0.4);
}

.step .num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-tint);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  flex: none;
}

.step.cur .num {
  background: var(--navy-fill);
  color: #fff;
}

.step .body {
  flex: 1;
  min-width: 0;
}

.step .time {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 4px;
}

.step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.24;
  color: var(--ink);
  margin-bottom: 6px;
}

.step p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}

.step .snap {
  margin-top: 10px;
}

.step .snap code {
  display: inline-block;
  padding: 3px 8px;
  background: var(--bg-code);
  border: 1px solid var(--rule);
  border-radius: var(--r-doc);
  font-size: 12px;
  color: var(--ink);
}

/* Sticky Live Packet Inspector (#stage) */
.stage-wrap {
  position: sticky;
  top: 96px;
}

.stage {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-block-start: 3px solid var(--navy);
  border-radius: var(--r-doc);
  padding: 20px 22px;
  box-shadow: 0 20px 38px -24px rgba(19, 30, 38, 0.4);
}

.stage-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  flex-wrap: wrap;
}

.stage-bar b {
  font-family: var(--mono);
  color: var(--navy);
}

.stage-body {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.srow {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  background: var(--sheet-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-doc);
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.srow.cur {
  background: var(--navy-tint);
  border-color: var(--navy);
  border-inline-start: 3px solid var(--navy);
}

.srow small {
  font-size: 12px;
  font-weight: 700;
  color: var(--brass);
}

.srow strong {
  color: var(--ink);
  font-size: 12.5px;
}

.srow span {
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- Section 4: Interactive Control Panel & Connectors (#integrations) ---------- */
.law {
  background: var(--sheet-2);
  border-block: 1px solid var(--rule);
  padding-block: 96px;
}

.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 14px 18px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r-doc);
  margin-bottom: 24px;
}

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.seg > span {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-inline-end: 4px;
}

.seg button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--sheet-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-btn);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.seg button:hover {
  background: var(--navy-tint);
  border-color: var(--navy);
}

.seg button.active,
.seg button[aria-pressed="true"] {
  background: var(--navy-fill);
  color: #fff;
  border-color: var(--navy-fill);
}

/* Full-Size Control Panel Replica + Mobile Digest */
.stagebox {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 252px;
  gap: 16px;
  align-items: start;
}

.app {
  display: grid;
  grid-template-columns: 186px 1fr;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-block-start: 3px solid var(--navy);
  border-radius: var(--r-doc);
  overflow: hidden;
  box-shadow: 0 22px 44px -26px rgba(19, 30, 38, 0.4);
  min-width: 0;
}

.app-side {
  background: var(--paper);
  border-inline-end: 1px solid var(--rule);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 600;
  color: var(--ink);
}

.app-nav {
  display: grid;
  gap: 4px;
  font-size: 12.5px;
}

.app-nav li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 4px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.app-nav li:hover {
  background: var(--sheet-2);
  color: var(--navy);
}

.app-nav li.on {
  background: var(--navy-tint);
  color: var(--navy);
  font-weight: 600;
}

.app-stat {
  padding: 9px 10px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r-doc);
  font-size: 11.5px;
}

.app-stat span {
  display: block;
  color: var(--ink-2);
}

.app-stat strong {
  display: block;
  color: var(--ok);
  font-size: 13px;
  margin-top: 2px;
}

.app-main {
  padding: 18px 18px 20px;
  overflow-x: auto;
  min-width: 0;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  flex-wrap: wrap;
}

.app-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
}

.grid-t {
  margin-top: 6px;
  display: grid;
}

.grow {
  display: grid;
  grid-template-columns: 1.15fr 1.45fr 114px 114px 0.95fr;
  align-items: center;
  gap: 8px;
  padding: 10px 6px;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
}

.grow > div {
  min-width: 0;
  overflow-wrap: break-word;
}

.grow .chip {
  font-size: 10.5px;
  padding: 2px 6px;
}

.grow.head {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--sheet-2);
}

.g-name {
  font-weight: 600;
  color: var(--ink);
}

.g-src {
  color: var(--ink-2);
}

.g-id {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy);
}

/* Companion Mobile Owner Digest Card (side-by-side, never overlapping table columns) */
.phone {
  position: relative;
  width: 100%;
  background: #0F232C;
  border-radius: 22px;
  padding: 8px;
  box-shadow: 0 24px 42px -20px rgba(8, 34, 43, 0.7);
}

.phone-in {
  background: var(--sheet);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--ink);
}

.p-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--brass);
}

.p-h {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin-top: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.p-card {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--navy-tint);
  border-radius: 4px;
}

.p-card span {
  display: block;
  font-size: 11px;
  color: var(--ink-2);
}

.p-card strong {
  font-size: 15px;
  color: var(--navy);
}

.leads {
  margin-top: 8px;
  display: grid;
  gap: 5px;
}

.l-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding-block: 3px;
  border-bottom: 1px dashed var(--rule);
}

.p-ret {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ok);
}

/* 4 Editorial Connector Columns */
.feats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.feat {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), padding 0.2s var(--ease);
}

.feat.active-feat {
  border-top: 3px solid var(--navy);
  background: var(--sheet);
  padding: 16px 14px;
  border-radius: 0 0 var(--r-doc) var(--r-doc);
  box-shadow: 0 12px 26px -18px rgba(11, 85, 99, 0.45);
}

.f-num {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 6px;
}

.feat h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.24;
  color: var(--ink);
  margin-bottom: 8px;
}

.feat p {
  font-size: 15px;
  color: var(--ink-2);
  flex: 1;
}

.feat code {
  margin-top: 12px;
  align-self: flex-start;
  padding: 3px 8px;
  background: var(--bg-code);
  border: 1px solid var(--rule);
  border-radius: var(--r-doc);
  color: var(--ink);
}

/* ---------- Section 5: Amendment 13 & Security Inventory (#amendment13 — Dark Petrol) ---------- */
.dark {
  background: var(--navy-deep);
  color: var(--on-dark);
}

.safe {
  padding-block: 96px;
}

.safe-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  column-gap: 56px;
  align-items: start;
}

.inventory {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  border-top: 1px solid var(--rule-dark);
  padding-top: 24px;
}

.inventory li {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-dark);
}

.inventory b {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--brass-lt);
  margin-bottom: 5px;
}

.inventory strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--on-dark);
  margin-bottom: 6px;
}

.inventory span {
  display: block;
  font-size: 14.5px;
  color: var(--on-dark-2);
  line-height: 1.5;
}

/* Tilted White Cryptographic Audit & Retention Ledger */
.ledger {
  background: var(--sheet);
  color: var(--ink);
  border-radius: var(--r-doc);
  padding: 24px 26px;
  border-block-start: 4px solid var(--brass-lt);
  transform: rotate(-0.7deg);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.55);
}

html[dir="rtl"] .ledger {
  transform: rotate(0.7deg);
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--ink);
}

.ledger-head h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.ledger-head span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--brass);
}

.ledger dl {
  margin-top: 10px;
  display: grid;
}

.ledger dl > div {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ledger dt {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.ledger dd {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.ledger-stamp {
  margin-top: 14px;
  padding: 8px 12px;
  background: var(--brass-tint);
  color: var(--brass);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border: 1.5px dashed var(--brass);
  border-radius: var(--r-doc);
}

/* Scenario Comparison Table */
.cmp-block {
  margin-top: 56px;
}

.cmp-title {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  color: var(--on-dark);
  margin-bottom: 16px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-block-start: 3px solid var(--brass-lt);
  border-radius: var(--r-doc);
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 600px;
}

.cmp-table th,
.cmp-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--rule);
  text-align: start;
  vertical-align: middle;
}

.cmp-table th {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  background: var(--sheet-2);
  border-bottom: 1.5px solid var(--ink);
}

.cmp-table tbody tr:nth-child(even) {
  background: var(--sheet-2);
}

.cmp-table .chip {
  white-space: normal;
  text-align: start;
}

/* ---------- Section 6: Protocol, Stamped Tariff Schedule & Onboarding (#pricing) ---------- */
.start {
  background: var(--sheet);
  border-block: 1px solid var(--rule);
  padding-block: 96px;
}

.protocol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--navy);
}

.protocol li {
  position: relative;
}

.step-n {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 56px;
  line-height: 0.95;
  color: var(--navy);
  margin-bottom: 8px;
}

.p-time {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 6px;
}

.protocol h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.24;
  margin-bottom: 8px;
}

.protocol p {
  font-size: 15px;
  color: var(--ink-2);
}

.pricing-bar {
  margin-top: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
  flex-wrap: wrap;
}

.pkg-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: stretch;
}

.pkg {
  position: relative;
  background: var(--sheet-2);
  border: 1px solid var(--rule);
  border-block-start: 3px solid var(--navy);
  border-radius: var(--r-doc);
  padding: 30px 30px 28px;
  display: flex;
  flex-direction: column;
}

.pkg.featured {
  background: var(--paper);
  border-block-start: 4px solid var(--brass);
  box-shadow: 0 20px 38px -26px rgba(19, 30, 38, 0.45);
}

.pkg-stamp {
  position: absolute;
  z-index: 2;
  inset-block-start: -15px;
  inset-inline-end: 22px;
  padding: 4px 12px;
  border: 2.5px double var(--navy);
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  transform: rotate(-2.5deg);
  background: var(--sheet);
  filter: url(#ink);
}

.pkg-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pkg-name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

.pkg-sub {
  font-size: 14.5px;
  color: var(--ink-2);
  margin-top: 4px;
  max-width: 42ch;
}

.pkg-quota {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  background: var(--bg-code);
  border: 1px solid var(--rule);
  border-radius: var(--r-doc);
  color: var(--ink);
  white-space: nowrap;
}

.pkg-price-box {
  margin-top: 20px;
  padding-block: 16px;
  border-block: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.pkg-price {
  font-family: var(--serif);
  font-size: clamp(44px, 4.4vw, 64px);
  font-weight: 400;
  line-height: 0.95;
  color: var(--ink);
}

.pkg-period {
  font-size: 14.5px;
  color: var(--ink-2);
}

.pkg-alt {
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: var(--brass);
  margin-top: 2px;
}

.pkg-list {
  margin-top: 20px;
  margin-bottom: 24px;
  display: grid;
  gap: 10px;
  font-size: 15px;
  flex: 1;
}

.pkg-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pkg-list svg {
  flex: none;
  color: var(--navy);
  margin-top: 3px;
}

/* Tabbed Onboarding Folder Sheet */
.founders {
  margin-top: 52px;
}

.ftab {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  margin-inline-start: 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--board-ink);
  background: var(--tab-bg);
  border: 1px solid var(--tab-border);
  border-block-end: 0;
  border-start-start-radius: 6px;
  border-start-end-radius: 6px;
}

.founders-sheet {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-block-start: 3px solid var(--brass);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 44px;
}

.setup-col + .setup-col {
  border-inline-start: 1px solid var(--rule);
  padding-inline-start: 44px;
}

.setup-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.setup-head h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  color: var(--ink);
}

.setup-price {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
}

.setup-col p {
  font-size: 15px;
  color: var(--ink-2);
}

/* ---------- Section 7: Final Connection Dossier & Form (#pilot-form) ---------- */
.final {
  padding-block: 96px;
}

.final-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  column-gap: 56px;
  align-items: start;
}

.Promises {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--on-dark);
}

.Promises li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.Promises li::before {
  content: "✓";
  color: var(--brass-lt);
  font-weight: 700;
}

.support-box {
  margin-top: 32px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--rule-dark);
  border-inline-start: 3px solid var(--brass-lt);
  border-radius: var(--r-doc);
}

.support-box h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--on-dark);
  margin-bottom: 6px;
}

.support-box p {
  font-size: 14.5px;
  color: var(--on-dark-2);
  margin-bottom: 10px;
}

.support-box a {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--brass-lt);
}

.form-wrap {
  position: relative;
}

.form-tab {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  margin-inline-start: 20px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--brass-lt);
  color: #131E26;
  border-start-start-radius: 6px;
  border-start-end-radius: 6px;
}

.form-sheet {
  background: var(--sheet);
  color: var(--ink);
  border-radius: 0 0 var(--r-doc) var(--r-doc);
  border-block-start: 3px solid var(--brass-lt);
  padding: 28px 32px 30px;
  box-shadow: 0 26px 48px -28px rgba(0, 0, 0, 0.55);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15.5px;
  background: var(--sheet);
  color: var(--ink);
  border: 1.5px solid #6B7582;
  border-radius: var(--r-btn);
}

textarea.form-control {
  padding: 10px 12px;
  min-height: 82px;
  resize: vertical;
}

.form-control:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}

.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* Mandatory Section 11 Two-Layer Disclosure */
.sec11-details {
  margin-top: 18px;
  margin-bottom: 16px;
  background: var(--sheet-2);
  border: 1px solid var(--rule);
  border-inline-start: 3px solid var(--navy);
  border-radius: var(--r-doc);
  padding: 11px 14px;
  font-size: 13px;
  color: var(--ink-2);
}

.sec11-details summary {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.sec11-details__body {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  line-height: 1.55;
}

.sec11-details__body a,
.sec11-visible a {
  color: var(--navy);
  font-weight: 600;
}

.sec11-visible {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r-doc);
  font-size: 14px;
  font-weight: 600;
  display: none;
}

.form-status[data-visible="true"] {
  display: block;
}

.form-status--ok {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1.5px solid var(--ok);
}

.form-status--err {
  background: var(--err-bg);
  color: var(--alert);
  border: 1.5px solid var(--alert);
}

/* ---------- Legal & Accessibility Pages ---------- */
.legal-main {
  padding-block: 44px 84px;
}

.legal-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.legal-nav {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-block-start: 3px solid var(--brass);
  border-radius: var(--r-doc);
  padding: 18px;
  position: sticky;
  top: 92px;
}

.legal-nav__title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
  display: block;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.legal-nav__list {
  display: grid;
  gap: 4px;
}

.legal-nav__link {
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}

.legal-nav__link:hover {
  background: var(--sheet-2);
  color: var(--ink);
  text-decoration: none;
}

.legal-nav__link[aria-current="page"] {
  background: var(--navy-tint);
  color: var(--navy);
  font-weight: 600;
}

.legal-doc {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-block-start: 3px solid var(--navy);
  border-radius: var(--r-doc);
  padding: 36px 40px;
  max-width: 82ch;
}

.legal-doc h1 {
  font-family: var(--serif);
  font-weight: var(--dw);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

.legal-doc h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.25;
  margin-top: 28px;
  margin-bottom: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.legal-doc h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-doc p {
  color: var(--ink-2);
  margin-bottom: 14px;
}

.legal-doc ul,
.legal-doc ol {
  margin-bottom: 16px;
  padding-inline-start: 22px;
  color: var(--ink-2);
  display: grid;
  gap: 8px;
}

.legal-doc ul {
  list-style: disc;
}

.legal-doc ol {
  list-style: decimal;
}

.legal-doc a {
  color: var(--navy);
  font-weight: 600;
}

/* ---------- Site Footer (.foot) ---------- */
.foot {
  border-top: 1px solid var(--rule-dark);
  padding-block: 52px 36px;
  font-size: 14px;
  color: var(--on-dark-2);
}

.foot-grid {
  display: grid;
  grid-template-columns: 4.5fr 3.5fr 4fr;
  gap: 32px 44px;
}

.foot-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--on-dark);
  margin-bottom: 12px;
}

.foot-text {
  color: var(--on-dark-2);
  margin-bottom: 10px;
  line-height: 1.55;
}

.foot-text a {
  color: var(--brass-lt);
  font-weight: 600;
}

.foot-list {
  display: grid;
  gap: 8px;
}

.foot-list a {
  color: var(--on-dark-2);
  text-decoration: none;
}

.foot-list a:hover {
  color: #fff;
  text-decoration: underline;
}

.foot-list strong {
  color: var(--on-dark);
}

.foot-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--on-dark-2);
}

.foot-bottom a {
  color: var(--brass-lt);
  text-decoration: none;
}

.hero-grid > *,
.before-grid > *,
.path-grid > *,
.safe-grid > *,
.final-grid > *,
.founders-sheet > *,
.legal-shell > *,
.foot-grid > * {
  min-width: 0;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1180px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    font-weight: 600;
    font-size: 14px;
    border: 1.5px solid var(--navy);
    color: var(--navy);
    border-radius: var(--r-btn);
    background: var(--sheet);
  }
  .top.open .nav,
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    inset-inline: 0;
    top: 70px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gut) 16px;
    box-shadow: 0 18px 32px -12px rgba(19, 30, 38, 0.35);
  }
  .top.open .nav a,
  .nav.open a {
    padding-block: 10px;
    border-bottom: 1px solid var(--rule);
    font-size: 15.5px;
  }
  .hero-grid,
  .before-grid,
  .path-grid,
  .stagebox,
  .safe-grid,
  .final-grid,
  .founders-sheet,
  .legal-shell,
  .foot-grid {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }
  .feats {
    grid-template-columns: repeat(2, 1fr);
  }
  .setup-col + .setup-col {
    border-inline-start: 0;
    border-block-start: 1px solid var(--rule);
    padding-inline-start: 0;
    padding-block-start: 20px;
  }
  .mess,
  .stage-wrap,
  .legal-nav {
    position: static;
  }
  .ledger {
    transform: none !important;
  }
  .phone {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 340px;
  }
}

@media (max-width: 768px) {
  :root {
    --gut: 16px;
  }
  body {
    padding-block-end: 0;
  }
  .eco-bar {
    position: static;
    box-shadow: none;
  }
  .top-in {
    height: 62px;
    gap: 6px;
  }
  .top.open .nav,
  .nav.open {
    top: 62px;
  }
  .brand {
    gap: 8px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
  .brand-name {
    font-size: 19px;
  }
  .brand-tag,
  .top-end .btn-sm {
    display: none;
  }
  .top-end {
    gap: 8px;
  }
  .lang-trigger {
    min-height: 34px;
    padding: 0 9px;
    font-size: 12.5px;
    gap: 5px;
  }
  .menu-btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12.5px;
  }
  .inventory,
  .feats,
  .pkg-grid,
  .protocol,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .tabs {
    flex-wrap: wrap;
  }
  .tab {
    flex: 1 1 100%;
    text-align: start;
    padding: 7px 12px;
  }
  .c-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .log li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .steps {
    padding-inline-start: 0;
  }
  .lamed {
    display: none;
  }
  .app {
    grid-template-columns: 1fr;
  }
  .app-side {
    border-inline-end: 0;
    border-block-end: 1px solid var(--rule);
  }
  .grow {
    min-width: 560px;
  }
  .sheet,
  .pkg,
  .founders-sheet,
  .form-sheet,
  .legal-doc {
    padding: 20px 16px;
  }
  .cookie-bar {
    inset-inline: 12px;
    bottom: 12px;
    max-width: none;
  }
}

/* Amendment 13 Cookie & Telemetry Consent Card (Consent Mode v2) */
.foot-link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13.5px;
  color: #CBDADF;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-link-btn:hover {
  color: #FFFFFF;
}

.cookie-bar {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 20px;
  z-index: 95;
  width: calc(100vw - 40px);
  max-width: 430px;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--navy);
  border-top: 3px solid var(--navy);
  border-radius: var(--r-card);
  padding: 16px 18px;
  box-shadow: 0 20px 44px -14px rgba(8, 28, 34, 0.34);
}

.cookie-bar[hidden] {
  display: none !important;
}

.cookie-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.cookie-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.cookie-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--navy);
  background: var(--navy-tint);
  padding: 2px 7px;
  border-radius: 3px;
}

.cookie-text {
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.cookie-text a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cookie-btn {
  min-height: 36px;
  padding: 6px 10px;
  border-radius: var(--r-doc);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--navy);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.cookie-btn--grant {
  background: var(--navy);
  color: #FFFFFF;
}

.cookie-btn--grant:hover {
  background: var(--navy-deep);
}

.cookie-btn--deny {
  background: var(--sheet-2);
  color: var(--ink);
  border-color: #9FB1BD;
}

.cookie-btn--deny:hover {
  background: #DCE4EA;
  border-color: var(--ink);
}

/* ---------- Chatin (צ׳אטין) AI Setup Assistant Widget ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chatin-w {
  position: fixed;
  bottom: 20px;
  inset-inline-start: 20px;
  z-index: 94;
  font-family: var(--sans);
}

.chatin-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--navy-deep);
  background: var(--navy);
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 28px -8px rgba(8, 28, 34, 0.42);
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease);
}

.chatin-fab:hover {
  background: var(--navy-hover);
  transform: translateY(-1px);
}

.chatin-fab__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3EE08F;
  box-shadow: 0 0 0 3px rgba(62, 224, 143, 0.24);
  flex: none;
}

.chatin-fab__ico {
  flex: none;
}

.chatin-panel {
  position: absolute;
  bottom: calc(100% + 10px);
  inset-inline-start: 0;
  width: min(370px, calc(100vw - 32px));
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--navy);
  border-top: 3px solid var(--navy);
  border-radius: var(--r-card);
  box-shadow: 0 24px 48px -12px rgba(8, 28, 34, 0.38);
  overflow: hidden;
}

.chatin-panel[hidden] {
  display: none !important;
}

.chatin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--navy-deep);
  color: #FFFFFF;
}

.chatin-head__title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.chatin-head__sub {
  display: block;
  font-size: 11.5px;
  color: #CBDADF;
  margin-top: 2px;
}

.chatin-close {
  width: 30px;
  height: 30px;
  border-radius: var(--r-doc);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #FFFFFF;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.chatin-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.chatin-msgs {
  max-height: 290px;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--sheet-2);
}

.chatin-msg {
  padding: 9px 12px;
  border-radius: var(--r-card);
  font-size: 13px;
  line-height: 1.48;
  max-width: 92%;
  word-wrap: break-word;
}

.chatin-msg--bot {
  align-self: flex-start;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--rule);
}

.chatin-msg--user {
  align-self: flex-end;
  background: var(--navy);
  color: #FFFFFF;
}

.chatin-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chatin-chip {
  padding: 5px 10px;
  border-radius: var(--r-doc);
  border: 1px solid var(--navy);
  background: var(--navy-tint);
  color: var(--navy-deep);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: start;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.chatin-chip:hover {
  background: var(--navy);
  color: #FFFFFF;
}

.chatin-form {
  padding: 10px 14px 12px;
  background: var(--sheet);
  border-top: 1px solid var(--rule);
}

.chatin-input-row {
  display: flex;
  gap: 6px;
}

.chatin-input {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: var(--r-doc);
  border: 1px solid #8899A6;
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
}

.chatin-send {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--r-doc);
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.chatin-send:hover {
  background: var(--navy-hover);
}

.chatin-sec11 {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.38;
  color: var(--ink-2);
}

.chatin-sec11 a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 560px) {
  .chatin-w {
    inset-inline-start: 12px;
    bottom: 12px;
  }
  .chatin-fab__lbl {
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}


