:root {
  --flag-red: #EA2839;
  --flag-blue: #1A206D;
  --flag-yellow: #FFD500;
  --flag-green: #00A551;
  --bg: #080B2B;
  --surface: #10154A;
  --ink: #EEF0FF;
  --muted: #AAB0E3;
  --line: #272E7C;
  --brand: #FFD500;
  --brand-ink: #0B0F3A;
  --sun: #FFD500;
  --panel: #5A101E;
  --panel-ink: #FFE9EC;
  --panel-muted: #F2B6BF;
  --panel-line: #8A2433;
  --band: #06402B;
  --band-ink: #E3F7EC;
  --band-muted: #A6DDBF;
  --band-line: #12724B;
  --focus: #FFD500;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
:root[data-theme="light"] {
  --bg: #F6F7FC;
  --surface: #FFFFFF;
  --ink: #12163F;
  --muted: #4D5280;
  --line: #D9DCEE;
  --brand: #1A206D;
  --brand-ink: #FFFFFF;
  --panel: #12175A;
  --panel-ink: #E4E6FA;
  --panel-muted: #A9AEE0;
  --panel-line: #2C3387;
  --band: #12175A;
  --band-ink: #E4E6FA;
  --band-muted: #A9AEE0;
  --band-line: #2C3387;
  --focus: #1A206D;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html[lang="en"] .fr, html[lang="fr"] .en { display: none !important; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 30;
}
main:focus { outline: none; }

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  font-weight: 700;
}
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 3.5vw, 56px); }

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; min-height: 76px; max-width: 1480px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; min-width: 0; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex: none; }
.flag { display: grid; grid-template-columns: repeat(4, 1fr); height: 6px; }
.flag span:nth-child(1) { background: var(--flag-red); }
.flag span:nth-child(2) { background: var(--flag-blue); }
.flag span:nth-child(3) { background: var(--flag-yellow); }
.flag span:nth-child(4) { background: var(--flag-green); }
nav { display: flex; align-items: center; justify-self: end; gap: clamp(18px, 2vw, 34px); }
nav a { text-decoration: none; font-size: 1rem; font-weight: 500; color: var(--muted); padding: 10px 2px; border-bottom: 2px solid transparent; white-space: nowrap; }
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--flag-red); }
.theme-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; display: grid; place-items: center; font-size: 1rem;
}
@media (max-width: 1360px) {
  .site-header .wrap { grid-template-columns: 1fr auto; grid-template-areas: "brand theme" "nav nav"; row-gap: 0; padding-top: 8px; min-height: 0; gap: 16px; }
  .brand { grid-area: brand; }
  .tools { grid-area: theme; }
  nav { grid-area: nav; justify-self: stretch; overflow-x: auto; white-space: nowrap; gap: 26px; padding: 2px 0 6px; }
}

.tools { display: flex; align-items: center; gap: 8px; }
.lang-btn { height: 38px; min-width: 46px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 0.85rem "Public Sans", system-ui, sans-serif; cursor: pointer; }
.lang-btn:hover, .theme-btn:hover { border-color: var(--brand); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem "Public Sans", sans-serif; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--brand);
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sun { background: var(--sun); color: #12163F; border-color: var(--sun); }
.btn-sun:hover { filter: brightness(1.06); }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); max-width: 14ch; }
.hero .lede { margin-top: 24px; max-width: 46ch; font-size: 1.2rem; color: var(--muted); }
.hero .actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.reseller { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.reseller:hover { border-color: var(--brand); }
.reseller i { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--flag-red) 0 25%, var(--flag-blue) 0 50%, var(--flag-yellow) 0 75%, var(--flag-green) 0); flex: none; }

.msg { background: var(--panel); color: var(--panel-ink); border-radius: 14px; border: 1px solid var(--panel-line); overflow: hidden; }
.msg-head { padding: 14px 18px; border-bottom: 1px solid var(--panel-line); font-size: 0.9rem; color: var(--panel-muted); }
.msg-head strong { color: var(--panel-ink); font-weight: 600; }
.segs { list-style: none; margin: 0; padding: 8px 0; }
.seg {
  display: grid; grid-template-columns: 52px 1fr; gap: 10px;
  width: 100%; text-align: left;
  background: none; border: 0; border-left: 3px solid transparent;
  color: inherit; cursor: pointer;
  padding: 9px 18px 9px 15px;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.8rem; line-height: 1.5;
}
.seg .name { color: var(--sun); font-weight: 500; }
.seg .body { overflow-wrap: anywhere; }
.seg:hover { background: rgba(255,255,255,0.05); }
.seg[aria-pressed="true"] { border-left-color: var(--sun); background: rgba(255,255,255,0.08); }
.msg :focus-visible { outline-color: var(--sun); }
.ack-note { padding: 4px 18px 10px; font-size: 0.8rem; color: var(--panel-muted); }
.explain { padding: 16px 18px 20px; border-top: 1px solid var(--panel-line); font-size: 0.97rem; min-height: 112px; }
.explain b { display: block; margin-bottom: 4px; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.05rem; }
@media (prefers-reduced-motion: no-preference) {
  .ack-wrap { animation: ack-in 0.5s ease 1.4s both; }
  @keyframes ack-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 900px) {
  .hero { padding: 44px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 16ch; }
}

/* Sections */
section { padding: 84px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head h1, .sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.sec-head p { margin-top: 14px; color: var(--muted); }
.more { display: inline-block; margin-top: 28px; font-weight: 600; color: var(--brand); text-underline-offset: 4px; }

/* Ruled lists */
.services { list-style: none; margin: 0; padding: 0; }
.services li {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 40px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.services li:last-child { border-bottom: 1px solid var(--line); }
.services h3 { font-size: 1.35rem; }
.services p { color: var(--muted); max-width: 62ch; }
.services a { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--brand); text-underline-offset: 4px; }
@media (max-width: 760px) { .services li { grid-template-columns: 1fr; gap: 8px; } }

/* RamSoft band */
.ramsoft { background: var(--band); color: var(--band-ink); }
.ramsoft .sec-head { max-width: 720px; }
.ramsoft .sec-head p { color: var(--band-muted); }
.ramsoft :focus-visible { outline-color: var(--sun); }
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; }
.products li { border-top: 5px solid var(--flag-red); padding-top: 18px; }
.products li:nth-child(4n+2) { border-top-color: var(--sun); }
.products li:nth-child(4n+3) { border-top-color: #8E9BFF; }
.products li:nth-child(4n+4) { border-top-color: #E3F7EC; }
.products h3 { font-size: 1.3rem; color: #fff; }
.products .kind { margin-top: 4px; font-size: 0.92rem; font-weight: 600; color: var(--sun); }
.products p { margin-top: 10px; font-size: 0.97rem; color: var(--band-ink); }
.ramsoft .after { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--band-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.ramsoft .after p { max-width: 60ch; color: var(--band-muted); }
@media (max-width: 900px) { .products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } }

/* Support */
.hours { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.hours h3 { font-size: 1.3rem; margin-bottom: 10px; }
.hours p { color: var(--muted); }
.hours p + p { margin-top: 10px; }
.hours strong { color: var(--ink); font-weight: 600; }
.esc { list-style: none; margin: 0; padding: 0; counter-reset: esc; display: grid; gap: 12px; }
.esc li { counter-increment: esc; display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--muted); }
.esc li::before { content: counter(esc); width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 600; font-size: 0.85rem; }
.esc b { color: var(--ink); font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.plan { padding: 30px 26px; display: flex; flex-direction: column; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan h3 { font-size: 1.4rem; }
.plan .for { margin-top: 4px; color: var(--muted); font-size: 0.95rem; }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; font-size: 0.97rem; flex: 1; align-content: start; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 1px; top: 0.4em; width: 12px; height: 7px; border-left: 2.5px solid var(--flag-green); border-bottom: 2.5px solid var(--flag-green); transform: rotate(-45deg); }
.tablewrap { overflow-x: auto; margin-top: 48px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.97rem; }
caption { text-align: left; font-family: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; padding-bottom: 12px; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; border-bottom: 2px solid var(--brand); }
td { color: var(--muted); }
td:first-child { color: var(--ink); font-weight: 600; }
.price-note { margin-top: 28px; color: var(--muted); font-size: 0.92rem; max-width: 70ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-row h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); max-width: 22ch; }
.cta-row p { margin-top: 12px; color: var(--muted); max-width: 54ch; }
@media (max-width: 900px) {
  .hours { grid-template-columns: 1fr; gap: 32px; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
}

/* Approach */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.steps li { counter-increment: step; padding: 22px 20px 0 0; border-top: 3px solid var(--brand); position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute; top: -15px; left: 0;
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 600; font-size: 0.85rem;
}
.steps h3 { font-size: 1.15rem; margin-top: 10px; }
.steps p { margin-top: 8px; font-size: 0.95rem; color: var(--muted); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { border-top: 0; border-left: 3px solid var(--brand); padding: 0 0 0 22px; }
  .steps li::before { top: 0; left: -15px; }
}

/* Founder */
.founder { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 56px; align-items: start; }
.founder h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.founder .who { margin-top: 18px; font-family: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.founder .role { color: var(--brand); font-weight: 600; }
.founder .bio { margin-top: 16px; color: var(--muted); max-width: 44ch; }
.founder .bio + .bio { margin-top: 12px; }
.creds { margin: 0; }
.creds > div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.creds > div:last-child { border-bottom: 1px solid var(--line); }
.creds dt { font-weight: 600; }
.creds dd { margin: 0; color: var(--muted); }
.creds dd span { display: block; }
.creds dd span + span { margin-top: 4px; }
@media (max-width: 900px) {
  .founder { grid-template-columns: 1fr; gap: 36px; }
  .creds > div { grid-template-columns: 1fr; gap: 6px; }
}

/* Coverage */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.cols h3 { font-size: 1.3rem; margin-bottom: 10px; }
.cols p + p { margin-top: 12px; }
.cols p { color: var(--muted); }
.tech { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); }
.tech strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 32px; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.contact .lede { margin-top: 14px; color: var(--muted); max-width: 40ch; }
.detail { margin-top: 28px; display: grid; gap: 14px; }
.detail a { display: block; text-decoration: none; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.detail a:hover { border-color: var(--brand); }
.detail small { display: block; color: var(--muted); font-size: 0.85rem; }
.detail a > span { font-weight: 600; overflow-wrap: anywhere; }
form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
label { display: grid; gap: 6px; font-weight: 500; font-size: 0.95rem; }
input, textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
}
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 36px; } }

/* Diagram */
.diagram { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 20px; }
.diagram svg { display: block; width: 100%; min-width: 640px; height: auto; }
.diagram text { font-family: "Public Sans", system-ui, sans-serif; }
.dg-box { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.dg-core { fill: var(--brand); }
.dg-title { font-size: 16px; font-weight: 600; fill: var(--ink); }
.dg-sub { font-size: 13px; fill: var(--muted); }
.dg-core-t { font-size: 17px; font-weight: 700; fill: var(--brand-ink); }
.dg-core-s { font-size: 13px; fill: var(--brand-ink); }
.dg-line { stroke: var(--muted); stroke-width: 2; fill: none; }
.dg-mon { fill: none; stroke: var(--flag-red); stroke-width: 2; stroke-dasharray: 6 5; }
.dg-note { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }

/* Audience rows and check lists */
.audience { list-style: none; margin: 0; padding: 0; }
.audience > li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 40px; padding: 34px 0; border-top: 1px solid var(--line); }
.audience > li:last-child { border-bottom: 1px solid var(--line); }
.audience h2 { font-size: 1.6rem; }
.audience .for { margin-top: 8px; color: var(--muted); max-width: 30ch; }
.audience .lead { font-weight: 600; max-width: 56ch; }
.checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 1px; top: 0.4em; width: 12px; height: 7px; border-left: 2.5px solid var(--flag-green); border-bottom: 2.5px solid var(--flag-green); transform: rotate(-45deg); }
.audience a.more { margin-top: 18px; }
@media (max-width: 760px) { .audience > li { grid-template-columns: 1fr; gap: 12px; } }

/* Guide and FAQ */
.article { max-width: 70ch; }
.article h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.article h3 { font-size: 1.2rem; margin: 28px 0 8px; }
.article p { color: var(--muted); margin-top: 14px; }
.article p strong { color: var(--ink); }
.article ol { margin: 14px 0 0; padding-left: 22px; color: var(--muted); display: grid; gap: 12px; }
.article ol strong { color: var(--ink); }
.code { background: var(--panel); color: var(--panel-ink); border-radius: 10px; padding: 12px 16px; font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; overflow-x: auto; margin: 10px 0 0; white-space: pre; }
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-family: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 66ch; }

/* SLA document */
.sla { max-width: 880px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 4vw, 48px); }
.sla-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 2px solid var(--brand); }
.sla-org { color: var(--muted); font-size: 0.92rem; }
.sla-name { font-family: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.sla h3 { font-size: 1.2rem; margin: 30px 0 10px; }
.sla p { color: var(--muted); }
.sla p + p { margin-top: 10px; }
.sla p strong { color: var(--ink); }
.sla .tablewrap { margin-top: 16px; }
.sla-small { margin-top: 12px; font-size: 0.92rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media print {
  body.print-sla .site-header, body.print-sla footer, body.print-sla main > div > div > section:not(.sla-print-target), body.print-sla .sec-head, body.print-sla .sla-print { display: none !important; }
  body.print-sla, body.print-sla .sla, body.print-sla section { background: #fff !important; color: #000 !important; border: 0 !important; padding: 0 !important; }
  body.print-sla .sla p, body.print-sla .sla td, body.print-sla .checks, body.print-sla .esc li { color: #222 !important; }
  body.print-sla .sla strong, body.print-sla .sla b, body.print-sla .sla h3, body.print-sla .sla th, body.print-sla .sla-name, body.print-sla .sla td:first-child { color: #000 !important; }
}

.sla-cap { font-size: 1.05rem !important; padding-top: 8px; }
.sla td:nth-child(2), .sla td:nth-child(3) { overflow-wrap: anywhere; }
.res-links { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.res-links span { color: var(--muted); font-size: 0.95rem; margin-right: 4px; }
.res-links button { font: 600 0.95rem "Public Sans", system-ui, sans-serif; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.res-links button:hover { border-color: var(--brand); }
@media print { body.print-sla .sla .tablewrap { overflow: visible; } body.print-sla table { min-width: 0; } body.print-sla tr { break-inside: avoid; } }

/* Resources hub */
.res-hero { padding-bottom: 56px; }
.res-hero .sec-head { margin-bottom: 8px; }
.doc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.doc-grid li { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 12px; padding: 24px; }
.doc-grid li:nth-child(2) { border-top-color: var(--flag-red); }
.doc-grid li:nth-child(3) { border-top-color: var(--flag-green); }
.doc-grid li:nth-child(4) { border-top-color: #8E9BFF; }
.doc-kind { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.doc-grid h3 { font-size: 1.25rem; margin-top: 6px; }
.doc-grid p:not(.doc-kind) { margin-top: 10px; color: var(--muted); flex: 1; }
.doc-grid .btn { margin-top: 20px; align-self: flex-start; min-height: 42px; }
.kb { max-width: 900px; }
.kb details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.kb details + details { margin-top: 12px; }
.kb summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-family: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.3; }
.kb summary::-webkit-details-marker { display: none; }
.kb summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand); flex: none; }
.kb details[open] summary::after { content: "\2212"; }
.kb-tag { display: block; margin-bottom: 4px; font-family: "Public Sans", system-ui, sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.kb .article { padding: 0 22px 24px; max-width: none; }
.kb .article > :first-child { margin-top: 0; }
.chk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.chk-grid .sla { max-width: none; }
.chk-grid .checks { margin-top: 18px; }
.gloss { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.gloss > div { padding: 14px 0; border-top: 1px solid var(--line); }
.gloss dt { font-weight: 600; }
.gloss dd { margin: 4px 0 0; color: var(--muted); }
.refs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.refs a { display: block; height: 100%; text-decoration: none; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.refs a:hover { border-color: var(--brand); }
.refs b { display: block; }
.refs b::after { content: " \2197"; color: var(--brand); }
.refs span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 900px) { .chk-grid, .gloss { grid-template-columns: 1fr; } .refs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .doc-grid, .refs { grid-template-columns: 1fr; } }
@media print { body.print-sla .chk-grid > .sla:not(.chk-print-target) { display: none !important; } }

/* Fintech */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why > div { border-top: 4px solid var(--flag-green); padding-top: 18px; }
.why > div:nth-child(2) { border-top-color: var(--sun); }
.why > div:nth-child(3) { border-top-color: var(--flag-red); }
.why h3 { font-size: 1.2rem; }
.why p { margin-top: 8px; color: var(--muted); }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }

.inline-link { font: inherit; color: var(--brand); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.kb-group { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 0 0 18px; }
.services + .kb-group { margin-top: 56px; }

/* Footer */
footer { padding: 32px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; flex-basis: 100%; }
footer .links a { text-decoration: none; font-weight: 500; }
footer .links a:hover { color: var(--ink); text-decoration: underline; }
footer .legal { flex-basis: 100%; margin: 0; font-size: 0.85rem; }

/* Tagline and badges */
.kicker { display: inline-block; margin-bottom: 18px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.foot-tag { color: var(--ink); font-weight: 600; }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.badges li { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 20px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.badges b { font-size: 0.97rem; line-height: 1.3; }
.badges small { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.badges img { width: 72px; height: 72px; object-fit: contain; }
.seal { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--brand); display: grid; place-items: center; margin-bottom: 4px; }
.seal::after { content: ""; width: 14px; height: 8px; border-left: 3px solid var(--flag-green); border-bottom: 3px solid var(--flag-green); transform: translateY(-2px) rotate(-45deg); }
@media (max-width: 1000px) { .badges { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .badges { grid-template-columns: 1fr 1fr; } }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps-4 { grid-template-columns: 1fr; } }
.tool-cards { display: grid; gap: 14px; }
.tool-cards a, .res-links a { text-decoration: none; }
.tool-cards a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.tool-cards a:hover { border-color: var(--brand); }
.tool-cards b { display: block; font-size: 1.1rem; }
.tool-cards b::after { content: " \2192"; color: var(--brand); }
.tool-cards span { display: block; margin-top: 4px; color: var(--muted); }
.res-links a { font: 600 0.95rem "Public Sans", system-ui, sans-serif; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; }
.res-links a:hover { border-color: var(--brand); }
a.inline-link { font-weight: 600; }

/* Prices */
.from { margin-top: 10px; font-weight: 600; color: var(--ink); }
.price-guide { margin-top: 44px; }
.price-guide h3 { font-size: 1.2rem; margin-bottom: 4px; }

/* Contact form status */
.form-status { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 0.95rem; }
.form-status.ok { border-color: var(--flag-green); }
.form-status.err { border-color: var(--flag-red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* Floating WhatsApp button */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; background: var(--flag-green); color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.wa-float:hover { filter: brightness(1.08); }
.wa-float svg { width: 24px; height: 24px; flex: none; }
.wa-float:focus-visible { outline-color: #fff; }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }
@media print { .wa-float { display: none !important; } }
footer { padding-bottom: 96px; }

/* HL7 viewer */
.hl7-tool { display: grid; gap: 16px; }
.hl7-in { min-height: 170px; font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; line-height: 1.55; white-space: pre; overflow-x: auto; }
.hl7-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hl7-out { display: grid; gap: 14px; }
.hl7-sum { display: flex; flex-wrap: wrap; gap: 10px; }
.hl7-sum > div { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.hl7-sum small { display: block; color: var(--muted); font-size: 0.8rem; }
.hl7-sum b { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.92rem; overflow-wrap: anywhere; }
.hl7-seg { padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; }
.hl7-head { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.hl7-id { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; color: var(--brand); font-size: 1.05rem; }
.hl7-desc { font-weight: 600; }
.hl7-seg .tablewrap { margin: 0; padding: 0 16px 6px; }
.hl7-tbl { min-width: 520px; font-size: 0.92rem; }
.hl7-tbl td { vertical-align: top; }
.hl7-pos { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500 !important; white-space: nowrap; }
.hl7-val code, .hl7-comp { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.88rem; color: var(--ink); overflow-wrap: anywhere; }
.hl7-comp { display: inline-block; margin: 0 10px 2px 0; }
.hl7-comp i { font-style: normal; color: var(--muted); font-size: 0.75rem; margin-right: 3px; }
.hl7-hint { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.hl7-warn { color: var(--flag-red); font-weight: 600; }
.hl7-empty { color: var(--muted); }

/* DICOM checklist */
.dchk { max-width: 780px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: clamp(20px, 3vw, 32px); }
.dchk-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dchk-count { font-weight: 700; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.2rem; min-width: 64px; }
.dchk-bar { flex: 1; min-width: 120px; height: 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.dchk-bar i { display: block; height: 100%; width: 0; background: var(--flag-green); transition: width 0.25s ease; }
.dchk-reset { min-height: 40px; }
.dchk h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.dchk label { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 400; font-size: 1rem; cursor: pointer; }
.dchk input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--flag-green); }
.dchk label:has(input:checked) { color: var(--muted); }
.dchk-note { margin-top: 22px; color: var(--muted); }
.dchk-note a { color: var(--brand); font-weight: 600; }

/* Fintech tools */
.pill { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink); white-space: nowrap; }
.pill.good { border-color: var(--flag-green); color: var(--flag-green); }
.pill.bad { border-color: var(--flag-red); color: var(--flag-red); }
td .pill { margin-left: 0; white-space: normal; }
.pill-row { padding: 12px 16px 0; }
.iso-tree summary { cursor: pointer; padding: 14px 16px; font-weight: 600; }
.iso-tree .tablewrap { padding: 0 16px 8px; }
.iso-tree code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.86rem; overflow-wrap: anywhere; }
.rc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rc-side { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 20px; display: grid; gap: 12px; align-content: start; }
.rc-side h3 { font-size: 1.15rem; }
.rc-side .hl7-in { min-height: 140px; }
.rc-file { font: inherit; font-size: 0.92rem; color: var(--muted); }
.rc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
select, .rc-tol input { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.rc-actions { margin: 20px 0; align-items: end; }
.rc-tol { display: grid; gap: 6px; max-width: 180px; }
.rc-none { padding: 12px 16px; color: var(--muted); }
.rc-warn .hl7-id { color: var(--flag-red); }
@media (max-width: 800px) { .rc-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .rc-cols { grid-template-columns: 1fr; } }
.hl7-seg > .tablewrap:only-of-type thead { display: none; }

/* Header: brand and language/theme on the first row, menu on its own row below, at every width */
.site-header .wrap { grid-template-columns: 1fr auto; grid-template-areas: "brand theme" "nav nav"; row-gap: 0; padding-top: 10px; min-height: 0; gap: 16px; }
.brand { grid-area: brand; }
.tools { grid-area: theme; }
nav { grid-area: nav; justify-self: stretch; overflow-x: auto; white-space: nowrap; gap: clamp(26px, 2.4vw, 40px); padding: 4px 0 6px; }

/* Mauritius interoperability diagram */
.diagram svg { min-width: 760px; }
.dg-inner { fill: var(--brand-ink); opacity: 0.92; }
.dg-inner-t { font-size: 15px; font-weight: 600; fill: var(--brand); }
.dg-inner-s { font-size: 12.5px; fill: #E4E6FA; }
:root[data-theme="light"] .dg-inner { fill: #0B0F3A; }
.dg-badge { fill: var(--flag-red); }
.dg-badge-t { font-size: 13px; font-weight: 700; fill: #fff; }
.dg-steps { margin-top: 36px; counter-reset: step; }
.dg-steps li::before { background: var(--flag-red); color: #fff; }
.dg-steps li { border-top-color: var(--flag-red); }
@media (max-width: 900px) { .dg-steps li { border-left-color: var(--flag-red); } }
:root[data-theme="light"] .dg-inner-t { fill: #FFD500; }
