/* ============================================================
   apoQlar medical - fresh design system
   Dark base, cyan→violet gradients, glass surfaces
   ============================================================ */

:root {
  /* base */
  --bg:           #070A12;
  --bg-2:         #0B0F1B;
  --surface:      rgba(255, 255, 255, 0.04);
  --surface-2:    rgba(255, 255, 255, 0.06);
  --border:       rgba(255, 255, 255, 0.09);
  --border-bright:rgba(255, 255, 255, 0.16);

  /* text */
  --text:         #EAF0FA;
  --text-muted:   #98A4BC;
  --text-dim:     #66718C;

  /* accents - HoloMedicine Design System */
  --cyan:         #54EFEA;
  --cyan-soft:    #7DF3EF;
  --cyan-ink:     #0F9BA8;   /* darkened cyan for text/icons on white */
  --violet:       #8E51FF;
  --violet-soft:  #B79BFF;
  --violet-ink:   #7A3FE0;   /* darkened violet for text on white */
  --magenta:      #EC00EF;
  --green:        #10B981;   /* primary button / action */
  --green-hover:  #0EA372;
  --grad:         linear-gradient(100deg, #54EFEA 0%, #8E51FF 55%, #EC00EF 100%);
  --grad-soft:    linear-gradient(100deg, rgba(84,239,234,.16), rgba(142,81,255,.16));

  /* tier badge colors */
  --tier-clinical:#0F9BA8;
  --tier-edu:     #008257;
  --tier-preview: #8E51FF;

  --radius:       20px;
  --radius-sm:    12px;
  --maxw:         1180px;
  --ease:         cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ambient gradient mesh */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(84,239,234,.14), transparent 60%),
    radial-gradient(800px 600px at 92% 8%, rgba(142,81,255,.16), transparent 55%),
    radial-gradient(700px 700px at 70% 100%, rgba(84,239,234,.08), transparent 60%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer; transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green); color: #fff;
  box-shadow: 0 8px 26px -10px rgba(16,185,129,.5);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--green-hover); box-shadow: 0 14px 36px -10px rgba(16,185,129,.6); }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border-color: var(--border-bright);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--cyan); }
.btn svg { width: 17px; height: 17px; }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7,10,18,.6);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo { display: flex; align-items: flex-end; gap: 2px; font-weight: 700; font-size: 22px; letter-spacing: -.5px; }
.logo .q { color: var(--cyan); }
.logo small { font-size: 11px; font-weight: 500; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 4px; }
.logo-img { height: 34px; width: auto; display: block; }
footer.site .logo-img { height: 30px; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { font-size: 15px; color: var(--text-muted); transition: color .2s; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--cyan-ink); font-weight: 600; }
.nav-links .nav-platform { position: relative; padding-left: 22px; }
/* Products dropdown */
.has-dd { position: relative; }
.dd-toggle { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: var(--text-muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.has-dd:hover .dd-toggle { color: var(--text); }
.dd-caret { width: 11px; height: 11px; transition: transform .25s; }
.has-dd:hover .dd-caret { transform: rotate(180deg); }
.dropdown { position: absolute; top: 100%; left: -10px; min-width: 248px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 20px 50px -20px rgba(12,22,44,.28); padding: 8px; margin-top: 12px; list-style: none; display: flex; flex-direction: column; gap: 1px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; z-index: 60; }
.has-dd:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 9px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.dropdown li a:hover { background: var(--surface-2); color: var(--text); }
.nav-links .nav-platform::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 15px; background: var(--border-bright); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; align-items: center; font-size: 13px; font-weight: 600; }
.lang-switch a { color: var(--text-dim); padding: 0 9px; border-right: 1px solid var(--border); line-height: 1; transition: color .2s; }
.lang-switch a:first-child { padding-left: 0; }
.lang-switch a:last-child { border-right: none; padding-right: 0; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active { color: var(--cyan-ink); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 44px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--cyan-soft); font-weight: 600; margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--cyan); }
.hero h1 {
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.04; letter-spacing: -2px; font-weight: 800;
  max-width: 16ch;
}
.hero p.lead {
  margin-top: 26px; font-size: clamp(17px, 2vw, 21px);
  color: var(--text-muted); max-width: 56ch;
}
.hero p.lead b { color: var(--text); font-weight: 600; }
.hero-actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Section scaffolding ---------- */
section { padding: 58px 0; }
.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px); line-height: 1.1;
  letter-spacing: -1px; font-weight: 800;
}
.section-head p { margin-top: 16px; color: var(--text-muted); font-size: 18px; }

/* ---------- Three doors ---------- */
.doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.door {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px 28px;
  transition: all .3s var(--ease); overflow: hidden;
}
.door::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.door:hover { transform: translateY(-6px); background: var(--surface-2); }
.door:hover::after { opacity: 1; }
.door-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--grad-soft); border: 1px solid var(--border);
}
.door-icon svg { width: 26px; height: 26px; stroke: var(--cyan-soft); }
.door h3 { font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.door .tagline { color: var(--violet-soft); font-weight: 600; font-size: 15px; margin: 6px 0 14px; }
.door p.desc { color: var(--text-muted); font-size: 15.5px; }
.door ul { list-style: none; margin: 20px 0 0; display: flex; flex-direction: column; gap: 11px; }
.door ul li { display: flex; gap: 11px; font-size: 14.5px; color: var(--text); }
.door ul li svg { width: 17px; height: 17px; stroke: var(--cyan); flex-shrink: 0; margin-top: 4px; }
.door .door-link {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 15px; color: var(--cyan-soft);
}
.door .door-link svg { width: 16px; height: 16px; transition: transform .2s; }
.door:hover .door-link svg { transform: translateX(4px); }

/* tier badge */
.tier {
  position: absolute; top: 22px; right: 22px;
  font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border-bright);
}
.tier.clinical { color: var(--tier-clinical); border-color: rgba(84,239,234,.4); background: rgba(84,239,234,.08); }
.tier.edu      { color: var(--tier-edu); border-color: rgba(94,230,168,.4); background: rgba(94,230,168,.08); }
.tier.preview  { color: var(--tier-preview); border-color: rgba(182,162,255,.4); background: rgba(182,162,255,.08); }

/* ---------- Trusted by ---------- */
.trusted { text-align: center; padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trusted .label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 26px; }
.trusted .logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 48px; }
.trusted .logos span { font-size: 19px; font-weight: 600; color: var(--text-muted); opacity: .85; transition: opacity .2s, color .2s; }
.trusted .logos span:hover { opacity: 1; color: var(--text); }

/* ---------- Platform strip ---------- */
.platform { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.platform .feature-list { display: flex; flex-direction: column; gap: 22px; }
.platform .feature { display: flex; gap: 16px; }
.platform .feature .fi { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); }
.platform .feature .fi svg { width: 22px; height: 22px; stroke: var(--cyan-soft); }
.platform .feature h4 { font-size: 17px; font-weight: 700; }
.platform .feature p { color: var(--text-muted); font-size: 15px; margin-top: 3px; }
.platform-visual {
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--grad-soft); aspect-ratio: 1/1; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.platform-visual .orb {
  width: 64%; aspect-ratio: 1; border-radius: 50%;
  background: var(--grad); filter: blur(2px); opacity: .85;
  box-shadow: 0 0 120px 20px rgba(84,239,234,.35);
  animation: float 7s ease-in-out infinite;
}
.platform-visual .ring { position: absolute; border: 1px solid var(--border-bright); border-radius: 50%; }
.platform-visual .ring.r1 { inset: 12%; }
.platform-visual .ring.r2 { inset: 26%; }
@keyframes float { 0%,100%{ transform: translateY(-10px) } 50%{ transform: translateY(10px) } }

/* hub-and-apps animation (one platform -> many apps) */
.hub-svg { width: 90%; height: 90%; overflow: visible; }
.hub-ring { fill: none; stroke: var(--border-bright); stroke-width: 1; }
.spokes line { stroke: rgba(142,81,255,.22); stroke-width: 1.4; }
.dots circle { fill: #54EFEA; opacity: .9; }
.sats circle { transform-box: fill-box; transform-origin: center; animation: hubSat 3.2s ease-in-out infinite; filter: drop-shadow(0 3px 8px rgba(142,81,255,.25)); }
.sats circle:nth-child(2){ animation-delay:.5s } .sats circle:nth-child(3){ animation-delay:1s }
.sats circle:nth-child(4){ animation-delay:1.5s } .sats circle:nth-child(5){ animation-delay:2s }
.sats circle:nth-child(6){ animation-delay:2.5s }
@keyframes hubSat { 0%,100%{ transform: scale(.9); opacity:.82 } 50%{ transform: scale(1.14); opacity:1 } }
.hub-core { transform-box: fill-box; transform-origin: center; animation: hubCore 4s ease-in-out infinite; filter: drop-shadow(0 10px 28px rgba(142,81,255,.45)); }
@keyframes hubCore { 0%,100%{ transform: scale(1) } 50%{ transform: scale(1.05) } }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center; border-radius: 28px; padding: 70px 32px;
  background: var(--grad-soft); border: 1px solid var(--border-bright);
  position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -1px; font-weight: 800; max-width: 20ch; margin: 0 auto; }
.cta-band p { color: var(--text-muted); margin: 16px auto 32px; max-width: 50ch; font-size: 18px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
footer.site {
  padding: 64px 0 40px; border-top: 1px solid var(--border); margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid .logo { margin-bottom: 16px; }
.footer-grid p.about { color: var(--text-muted); font-size: 15px; max-width: 36ch; }
.footer-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 15px; margin-bottom: 11px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-dim); font-size: 13.5px; }
.footer-bottom .badge-mdr { color: var(--tier-clinical); font-weight: 600; }

/* ============================================================
   SUBPAGE - Education
   ============================================================ */
.sub-hero { padding: 80px 24px 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.sub-hero h1 { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.02; letter-spacing: -2px; font-weight: 800; }
.sub-hero .sub { font-size: 21px; color: var(--text); font-weight: 600; margin-top: 22px; }
.sub-hero p.body { color: var(--text-muted); margin-top: 16px; font-size: 17px; max-width: 48ch; }
.sub-hero .hero-actions { margin-top: 32px; }

.stat-card {
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); padding: 36px; position: relative; overflow: hidden;
}
.stat-card .stat-visual {
  aspect-ratio: 16/11; border-radius: var(--radius-sm); margin-bottom: 28px;
  background: var(--grad-soft); border: 1px solid var(--border);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.stat-card .stat-visual.has-img { padding: 0; background: none; }
.stat-card .stat-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stat-card .stat-visual .heart {
  width: 46%; aspect-ratio: 1; border-radius: 48% 48% 44% 44%;
  background: var(--grad); transform: rotate(-8deg);
  box-shadow: 0 0 80px 12px rgba(142,81,255,.4); filter: blur(1px);
  animation: float 6s ease-in-out infinite;
}
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.stat { }
.stat .num { font-size: 52px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.stat .num.dim { color: var(--text-dim); }
.stat .num.bright { color: var(--cyan); }
.stat .lbl { font-size: 13.5px; color: var(--text-muted); margin-top: 8px; font-weight: 600; }
.stat .note { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: all .3s var(--ease);
}
.step:hover { transform: translateY(-5px); border-color: var(--border-bright); }
.step .step-no { font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.step .step-ic { margin: 18px 0 16px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); }
.step .step-ic svg { width: 22px; height: 22px; stroke: var(--cyan-soft); }
.step h4 { font-size: 19px; font-weight: 700; }
.step p { color: var(--text-muted); font-size: 14.5px; margin-top: 8px; }

/* compliance note */
.note-strip {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); padding: 22px 24px; margin-top: 40px;
}
.note-strip svg { width: 22px; height: 22px; stroke: var(--tier-edu); flex-shrink: 0; margin-top: 2px; }
.note-strip p { font-size: 14.5px; color: var(--text-muted); }
.note-strip p b { color: var(--text); }

/* breadcrumb */
.crumb { font-size: 14px; color: var(--text-dim); margin: 28px 0 0; }
.crumb a:hover { color: var(--text); }

/* ============================================================
   LIGHT THEME  (body.light)  - Clinical pages
   ============================================================ */
body.light {
  --bg:           #FFFFFF;
  --bg-2:         #FFFFFF;
  --surface:      #FFFFFF;
  --surface-2:    #F4F7FB;
  --border:       rgba(12, 22, 44, 0.10);
  --border-bright:rgba(12, 22, 44, 0.18);
  --text:         #0C1526;
  --text-muted:   #51607A;
  --text-dim:     #8492A8;
  --grad-soft:    linear-gradient(100deg, rgba(84,239,234,.10), rgba(142,81,255,.10));
  color: var(--text);
}
body.light::before {
  background:
    radial-gradient(800px 520px at 10% -8%, rgba(84,239,234,.10), transparent 60%),
    radial-gradient(720px 520px at 95% 4%, rgba(142,81,255,.10), transparent 55%),
    #FFFFFF;
}
body.light .eyebrow { color: #0F9BA8; }
body.light .eyebrow::before { background: var(--cyan); }
body.light .door .tagline { color: #7A3FE0; }

/* light nav */
body.light header.nav { background: rgba(255,255,255,.7); }
body.light .nav-links a { color: var(--text-muted); }
body.light .nav-links a:hover { color: var(--text); }
body.light .nav-links a.active { color: var(--cyan-ink); }
body.light .btn-ghost { background: #FFFFFF; color: var(--text); border-color: var(--border-bright); }
body.light .btn-ghost:hover { background: var(--surface-2); border-color: var(--cyan); }

/* light cards get a soft shadow instead of glass */
body.light .door,
body.light .step,
body.light .stat-card,
body.light .note-strip {
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(12,22,44,.04), 0 14px 40px -22px rgba(12,22,44,.18);
}
body.light .door:hover { background: #FFFFFF; box-shadow: 0 1px 2px rgba(12,22,44,.04), 0 22px 50px -20px rgba(84,239,234,.28); }
body.light .door-icon,
body.light .step-ic,
body.light .feature .fi { border-color: var(--border); }
body.light .door ul li { color: var(--text); }
body.light .door ul li svg,
body.light .door-icon svg,
body.light .step-ic svg,
body.light .feature .fi svg { stroke: #0F9BA8; }
body.light .door-link { color: #0F9BA8; }

/* light trusted / borders */
body.light .trusted { border-color: var(--border); }
body.light .trusted .logos span { color: var(--text-muted); }

/* light CTA band */
body.light .cta-band {
  background: linear-gradient(120deg, #F2FBFC 0%, #F4F2FF 100%);
  border-color: var(--border-bright);
}

/* light footer */
body.light footer.site { border-color: var(--border); }
body.light .footer-bottom { border-color: var(--border); }

/* ---------- Clinical-specific blocks ---------- */
.assurance {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.assurance .ac {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; background: var(--surface);
}
body.light .assurance .ac { box-shadow: 0 1px 2px rgba(12,22,44,.04), 0 14px 40px -24px rgba(12,22,44,.16); }
.assurance .ac .ai { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); margin-bottom: 16px; }
.assurance .ac .ai svg { width: 23px; height: 23px; stroke: #0F9BA8; }
.assurance .ac h4 { font-size: 17px; font-weight: 700; }
.assurance .ac p { color: var(--text-muted); font-size: 14.5px; margin-top: 6px; }

/* workflow split */
.wf-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wf {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 34px 30px; position: relative; overflow: hidden;
}
body.light .wf { box-shadow: 0 1px 2px rgba(12,22,44,.04), 0 16px 44px -24px rgba(12,22,44,.16); }
.wf .wf-tag { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #0F9BA8; }
.wf h3 { font-size: 26px; font-weight: 800; letter-spacing: -.6px; margin: 8px 0 12px; }
.wf p { color: var(--text-muted); font-size: 15.5px; }
.wf ul { list-style: none; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.wf ul li { display: flex; gap: 11px; font-size: 15px; }
.wf ul li svg { width: 18px; height: 18px; stroke: var(--cyan); flex-shrink: 0; margin-top: 4px; }

/* big MDR ribbon */
.mdr-ribbon {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  border: 1px solid var(--border-bright); border-radius: var(--radius);
  background: var(--grad-soft); padding: 26px 30px;
}
.mdr-ribbon .seal { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); flex-shrink: 0; box-shadow: 0 8px 24px -8px rgba(84,239,234,.5); }
.mdr-ribbon .seal svg { width: 30px; height: 30px; stroke: #fff; }
.mdr-ribbon .mr-text { flex: 1; min-width: 240px; }
.mdr-ribbon .mr-text h4 { font-size: 18px; font-weight: 800; }
.mdr-ribbon .mr-text p { color: var(--text-muted); font-size: 14.5px; margin-top: 3px; }

/* ---------- Regulatory page ---------- */
.reg-use { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.reg-use .ru {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 28px 26px;
}
body.light .reg-use .ru { box-shadow: 0 1px 2px rgba(12,22,44,.04), 0 14px 40px -24px rgba(12,22,44,.16); }
.reg-use .ru .ru-region { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #0F9BA8; margin-bottom: 12px; }
.reg-use .ru p { color: var(--text-muted); font-size: 14.5px; }
.reg-use .ru p.quote { color: var(--text); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.ifu-link { color: #2B7FFF; text-decoration: underline; font-weight: 600; }
.ifu-link:hover { color: #155DFC; }

.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cert {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); padding: 22px 22px;
}
body.light .cert { box-shadow: 0 1px 2px rgba(12,22,44,.04), 0 12px 34px -24px rgba(12,22,44,.14); }
.cert .cert-class { font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.cert .cert-body { font-size: 14px; color: var(--text-muted); margin-top: 3px; }
.cert .cert-status {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  font-size: 12.5px; font-weight: 700; color: #008257;
}
.cert .cert-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #008257; }

.std-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.std-block h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 16px; }
.std-block ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.std-block ul li { display: flex; gap: 11px; font-size: 15px; }
.std-block ul li svg { width: 18px; height: 18px; stroke: var(--cyan); flex-shrink: 0; margin-top: 4px; }

.country-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.country-tags span { font-size: 13px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); }
.coverage-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.coverage-head .cnum { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.coverage-head .cname { font-size: 17px; font-weight: 700; }

/* ---------- Workflow cards (homepage, refined) ---------- */
.workflows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wcard {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(12,22,44,.04);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.wcard:hover { transform: translateY(-6px); box-shadow: 0 26px 56px -30px rgba(12,22,44,.32); }
.wcard.is-clinical:hover { border-color: rgba(15,155,168,.45); }
.wcard.is-green:hover { border-color: rgba(16,185,129,.4); }
.wc-body { padding: 26px 30px 28px; display: flex; flex-direction: column; flex: 1; }
.wc-thumb { margin-top: auto; height: 144px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.wc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.wcard:hover .wc-thumb img { transform: scale(1.04); }

.wc-tier { display: inline-block; margin-bottom: 13px; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.wc-tier.cyan { color: var(--cyan-ink); }
.wc-tier.green { color: #0E8F62; }

.wc-ic { margin-bottom: 18px; }
.wc-ic svg { width: 30px; height: 30px; }
.wcard.is-clinical .wc-ic svg { stroke: var(--cyan-ink); }
.wcard.is-green .wc-ic svg { stroke: var(--green); }

.wcard h3 { font-size: 27px; font-weight: 800; letter-spacing: -.7px; }
.wc-sub { margin-top: 7px; font-size: 16.5px; font-weight: 600; color: var(--text); }
.wc-desc { margin-top: 14px; color: var(--text-muted); font-size: 15px; }
.wc-list { list-style: none; margin: 22px 0 28px; display: flex; flex-direction: column; gap: 11px; }
.wc-list li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--text-muted); }
.wc-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; }
.wcard.is-clinical .wc-list li::before { background: var(--cyan); }
.wcard.is-green .wc-list li::before { background: var(--green); }
.wc-link { margin-top: 28px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.wcard.is-clinical .wc-link { color: var(--cyan-ink); }
.wcard.is-green .wc-link { color: #0E8F62; }
.wc-link svg { width: 16px; height: 16px; transition: transform .2s; }
.wcard:hover .wc-link svg { transform: translateX(5px); }

/* ---------- Proof / evidence band ---------- */
.proof { margin-top: 0; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 40px; }
.proof-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 26px 24px;
  box-shadow: 0 1px 2px rgba(12,22,44,.04);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.proof-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -26px rgba(12,22,44,.3); }
.proof-card.is-clinical:hover { border-color: rgba(15,155,168,.45); }
.proof-card.is-green:hover { border-color: rgba(16,185,129,.4); }
.proof-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; margin-bottom: 16px; }
.proof-tag.cyan { color: var(--cyan-ink); background: rgba(84,239,234,.1); border: 1px solid rgba(84,239,234,.35); }
.proof-tag.green { color: #0E8F62; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); }
.proof-find { font-size: 16px; line-height: 1.5; color: var(--text); font-weight: 500; flex: 1; }
.proof-find b { font-weight: 800; }
.proof-src { margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; }
.proof-card.is-clinical .proof-src { color: var(--cyan-ink); }
.proof-card.is-green .proof-src { color: #0E8F62; }
.proof-src svg { width: 14px; height: 14px; transition: transform .2s; }
.proof-card:hover .proof-src svg { transform: translateX(4px); }
.proof-logos { border-top: 1px solid var(--border); padding-top: 30px; text-align: center; }
.proof-logos .plabel { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); display: block; margin-bottom: 18px; }
.proof-logos .logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; }
.proof-logos .logos span { font-size: 18px; font-weight: 600; color: var(--text-muted); opacity: .85; }

/* ---------- Platform foundation band ---------- */
.foundation {
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  margin-top: 24px; padding: 46px 50px; border-radius: 24px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(135% 190% at 0% 0%, rgba(142,81,255,.32), transparent 52%),
    radial-gradient(130% 200% at 100% 120%, rgba(236,0,239,.22), transparent 50%),
    radial-gradient(120% 160% at 60% 0%, rgba(84,239,234,.14), transparent 45%),
    #0B0A1F;
  color: #fff;
  transition: box-shadow .35s var(--ease);
}
.foundation:hover { box-shadow: 0 30px 70px -34px rgba(11,10,31,.7); }
.foundation::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.f-main { max-width: 60ch; position: relative; }
.f-eyebrow { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--cyan-soft); font-weight: 700; }
.foundation h3 { font-size: clamp(23px, 2.6vw, 31px); font-weight: 800; letter-spacing: -.6px; line-height: 1.18; margin: 13px 0 12px; }
.foundation p { color: rgba(255,255,255,.72); font-size: 15.5px; max-width: 58ch; }
.f-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.f-chips span { font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.88); }
.f-side { flex-shrink: 0; position: relative; }
.f-cta { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; color: #fff; padding: 15px 28px; border-radius: 999px; background: var(--green); box-shadow: 0 12px 32px -12px rgba(16,185,129,.6); transition: all .25s var(--ease); }
.f-cta svg { width: 16px; height: 16px; }
.foundation:hover .f-cta { background: var(--green-hover); transform: translateY(-2px); }

/* ---------- Architecture figure (full-width diagram) ---------- */
.arch-figure { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 16px 44px -26px rgba(12,22,44,.28); }
.arch-figure img { width: 100%; display: block; }
.stat-visual.diagram { background: #14222F; }
.stat-visual.diagram img { object-fit: contain; }
.prod-shot { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/11; background: #14222F; box-shadow: 0 16px 44px -26px rgba(12,22,44,.28); }
.prod-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-shot.contain img { object-fit: contain; }


/* ---------- Legal pages (imprint / privacy) ---------- */
.legal { max-width: 820px; }
.legal .lead { color: var(--text); font-size: 17px; margin-bottom: 8px; }
.legal h2 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; margin: 38px 0 12px; }
.legal h3 { font-size: 16px; font-weight: 700; margin: 22px 0 6px; }
.legal p { color: var(--text-muted); font-size: 15.5px; line-height: 1.7; margin-bottom: 10px; }
.legal ul { margin: 8px 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal li { color: var(--text-muted); font-size: 15.5px; line-height: 1.6; }
.legal a { color: var(--cyan-ink); font-weight: 600; }
.legal .addr { color: var(--text); font-size: 15.5px; line-height: 1.7; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 18px;
  }
  .nav-links .nav-platform { padding-left: 0; }
  .nav-links .nav-platform::before { display: none; }
  .has-dd { width: 100%; }
  .has-dd .dd-caret { display: none; }
  .has-dd .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; min-width: 0; margin: 8px 0 0; padding: 0 0 0 14px; gap: 12px; }
  .dropdown li a { padding: 0; }
  .doors { grid-template-columns: 1fr 1fr; }
  .workflows { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .foundation { flex-direction: column; align-items: flex-start; gap: 28px; padding: 36px 32px; }
  .platform { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .sub-hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .assurance { grid-template-columns: 1fr; }
  .wf-split { grid-template-columns: 1fr; }
  .reg-use { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .std-cols { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .cert-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .doors { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-cta { gap: 10px; }
  .nav-cta .btn { display: none; }            /* free space so the logo isn't squeezed */
  .lang-switch { font-size: 12.5px; }
  .lang-switch a { padding: 0 7px; }
  .logo { font-size: 20px; }
}

/* ---------- Cookie consent (brand overrides) ---------- */
#cc-main {
  --cc-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --cc-btn-primary-bg: #10B981;
  --cc-btn-primary-border-color: #10B981;
  --cc-btn-primary-hover-bg: #0EA372;
  --cc-btn-primary-hover-border-color: #0EA372;
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-hover-color: #fff;
  --cc-link-color: #0F9BA8;
  --cc-toggle-on-bg: #10B981;
  --cc-modal-border-radius: 18px;
  --cc-btn-border-radius: 999px;
}
