/* Medbotics website styles. Colours checked for WCAG 2.2 AA (see brand.html). */
:root{
  --navy:#0B1F3A; --navy-2:#132C4F; --ink-2:#3D5068;
  --teal:#00A3A1;         /* decorative and large shapes only (2.95:1 on white) */
  --teal-text:#007A78;    /* teal for text and buttons (4.91:1 on white) */
  --teal-bright:#4DD4CE;  /* teal text on navy (9.14:1) */
  --sky:#DCEFF7; --white:#F7F9FB; --mint:#BFE8DA; --coral:#FF7A59;
  --line:#D5E2EA;
  --radius:20px; --radius-s:12px;
  --shadow:0 10px 30px rgba(11,31,58,.08),0 2px 6px rgba(11,31,58,.05);
  --font-head:"Avenir Next","Manrope","Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;
  --font-body:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--font-body);font-size:18px;line-height:1.6;color:var(--navy);background:#fff;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--teal-text);text-underline-offset:3px}
a:hover{color:var(--navy)}
h1,h2,h3,h4{font-family:var(--font-head);line-height:1.15;margin:0 0 .5em;font-weight:700;letter-spacing:-.01em}
h1{font-size:clamp(2.2rem,4.6vw,3.6rem)}
h2{font-size:clamp(1.7rem,3vw,2.4rem)}
h3{font-size:1.25rem}
p{margin:0 0 1em}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}
.skip{position:absolute;left:-999px;top:8px;background:var(--navy);color:#fff;padding:10px 16px;border-radius:8px;z-index:100}
.skip:focus{left:8px}
:focus-visible{outline:3px solid var(--coral);outline-offset:3px;border-radius:6px}
.eyebrow{display:inline-flex;align-items:center;gap:10px;font-family:var(--font-head);font-weight:600;font-size:.85rem;letter-spacing:.08em;text-transform:uppercase;color:var(--teal-text)}
.eyebrow::before{content:"";width:22px;height:2px;background:currentColor;border-radius:2px}
.on-dark .eyebrow{color:var(--teal-bright)}
.lead{font-size:1.2rem;color:var(--ink-2);max-width:40em}
.on-dark .lead{color:#C9D6E3}
.placeholder{background:#FFF1EC;color:#8A2E12;border:1px dashed #E9A08A;border-radius:6px;padding:0 6px;font-size:.92em;white-space:nowrap}
.on-dark .placeholder{background:rgba(255,122,89,.15);color:#FFD3C6;border-color:rgba(255,122,89,.5)}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.86);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid rgba(11,31,58,.06)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:76px}
.brand img{height:40px;width:auto}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:6px;align-items:center}
.nav a{display:block;padding:10px 14px;border-radius:999px;text-decoration:none;color:var(--navy);font-weight:500;font-size:.98rem}
.nav a:hover{background:var(--sky)}
.nav a[aria-current="page"]{background:var(--navy);color:#fff}
.nav .btn{margin-left:8px}
.menu-btn{display:none;background:none;border:1px solid var(--line);border-radius:10px;padding:10px 14px;font:inherit;color:var(--navy);cursor:pointer}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:10px;padding:14px 24px;border-radius:999px;font-family:var(--font-head);font-weight:600;font-size:1rem;text-decoration:none;border:2px solid transparent;transition:transform .2s ease,box-shadow .2s ease,background .2s}
.btn-primary{background:var(--teal-text);color:#fff}
.btn-primary:hover{background:var(--navy);color:#fff;transform:translateY(-1px);box-shadow:var(--shadow)}
.btn-ghost{border-color:currentColor;color:var(--navy);background:transparent}
.btn-ghost:hover{background:var(--navy);color:#fff}
.on-dark .btn-ghost{color:#fff}
.on-dark .btn-ghost:hover{background:#fff;color:var(--navy)}
.nav .btn{padding:10px 18px;color:#fff}
.btn .arrow{transition:transform .2s}
.btn:hover .arrow{transform:translateX(3px)}

/* Hero */
.hero{position:relative;overflow:hidden;color:#fff;background:
  radial-gradient(900px 500px at 78% 40%,rgba(0,163,161,.35),transparent 60%),
  radial-gradient(700px 400px at 10% 110%,rgba(77,212,206,.18),transparent 60%),
  linear-gradient(160deg,#0B1F3A 0%,#0E2A4C 55%,#0B3B52 100%)}
.hero::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:48px 48px;mask-image:radial-gradient(ellipse at 70% 40%,#000 0%,transparent 70%);-webkit-mask-image:radial-gradient(ellipse at 70% 40%,#000 0%,transparent 70%)}
.hero .wrap{position:relative;display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;min-height:640px;padding-top:56px;padding-bottom:56px}
.hero h1{color:#fff}
.hero h1 .hl{background:linear-gradient(90deg,#4DD4CE,#9FF0E6);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:28px}
.hero-visual{position:relative;display:flex;justify-content:center;align-items:flex-end;height:100%}
.hero-visual img{position:relative;z-index:2;max-height:560px;width:auto;filter:drop-shadow(0 30px 40px rgba(0,0,0,.35))}
.ring{position:absolute;z-index:1;left:50%;top:46%;width:440px;height:440px;margin:-220px 0 0 -220px;border-radius:50%;border:2px solid rgba(77,212,206,.55);box-shadow:0 0 60px rgba(0,163,161,.45),inset 0 0 60px rgba(0,163,161,.25);animation:breathe 5s ease-in-out infinite}
.ring.r2{width:560px;height:560px;margin:-280px 0 0 -280px;border-color:rgba(77,212,206,.18);box-shadow:none;animation-delay:1.2s}
@keyframes breathe{0%,100%{transform:scale(.97);opacity:.75}50%{transform:scale(1.02);opacity:1}}
.chip{position:absolute;z-index:3;display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:16px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);font-size:.9rem;color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.2)}
.chip .dot{width:10px;height:10px;border-radius:50%;background:var(--teal-bright);box-shadow:0 0 0 4px rgba(77,212,206,.25)}
.chip.c1{left:0;top:22%}
.chip.c2{right:-6px;top:56%}
.chip.c3{left:6%;bottom:8%}
.caption{font-size:.8rem;color:#9FB2C6;text-align:center;margin-top:10px}
.pulse-line{position:absolute;left:0;right:0;bottom:0;height:90px;z-index:0;opacity:.5}
.pulse-line path{stroke:var(--teal-bright);stroke-width:2;fill:none;stroke-dasharray:1400;stroke-dashoffset:1400;animation:draw 6s ease-in-out infinite}
@keyframes draw{0%{stroke-dashoffset:1400}60%,100%{stroke-dashoffset:0}}

/* Trust strip */
.trust{background:var(--navy);color:#fff;border-top:1px solid rgba(255,255,255,.08)}
.trust ul{list-style:none;margin:0;padding:22px 0;display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.trust li{display:flex;gap:12px;align-items:center;font-weight:500;font-size:.98rem}
.trust svg{flex:none;color:var(--teal-bright)}

/* Sections */
section{padding:96px 0}
.section-head{max-width:720px;margin-bottom:48px}
.bg-soft{background:linear-gradient(180deg,var(--white),#fff)}
.bg-sky{background:var(--sky)}
.on-dark{color:#fff}
.dark{background:linear-gradient(160deg,#0B1F3A,#0F2E50);color:#fff}

.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;counter-reset:s}
.step{position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:32px;box-shadow:var(--shadow)}
.step .num{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:14px;background:linear-gradient(135deg,var(--navy),var(--teal));color:#fff;font-family:var(--font-head);font-weight:700;font-size:1.2rem;margin-bottom:18px}
.step p{color:var(--ink-2);margin:0}

.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;transition:transform .25s,box-shadow .25s}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.card .icon{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--sky);color:var(--teal-text);margin-bottom:18px}
.card p{color:var(--ink-2);margin:0;font-size:.98rem}

.why{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.why .item{display:flex;gap:18px;padding:26px;border-radius:var(--radius);background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1)}
.why .item svg{flex:none;color:var(--teal-bright)}
.why p{color:#C9D6E3;margin:0}

.range{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,380px));justify-content:center;gap:24px}
.product{background:linear-gradient(180deg,#fff,var(--white));border:1px solid var(--line);border-radius:24px;overflow:hidden;display:flex;flex-direction:column}
.product .shot{height:340px;display:flex;align-items:flex-end;justify-content:center;padding-top:24px;background:radial-gradient(260px 200px at 50% 70%,var(--sky),transparent 70%)}
.product .shot img{max-height:310px;width:auto}
.product .body{padding:24px 26px 28px}
.product .tag{display:inline-block;font-size:.8rem;font-weight:600;color:var(--teal-text);background:#E3F5F4;border-radius:999px;padding:4px 12px;margin-bottom:10px}
.product p{color:var(--ink-2);font-size:.98rem;margin:0}
.small{font-size:.82rem;color:var(--ink-2)}

.split{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.split .visual{border-radius:28px;background:radial-gradient(400px 300px at 50% 60%,rgba(0,163,161,.18),transparent 70%),var(--white);border:1px solid var(--line);display:flex;justify-content:center;align-items:flex-end;padding:32px 20px 0;min-height:440px}
.split .visual img{max-height:420px;width:auto}
.ticks{list-style:none;padding:0;margin:0 0 1em}
.ticks li{position:relative;padding-left:34px;margin-bottom:12px}
.ticks li::before{content:"";position:absolute;left:0;top:5px;width:20px;height:20px;border-radius:6px;background:var(--teal-text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat}
.crosses li::before{background:#8A2E12 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 6l8 8M14 6l-8 8' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat}

.timeline{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:16px;counter-reset:t}
.timeline li{counter-increment:t;background:#fff;border:1px solid var(--line);border-radius:var(--radius-s);padding:22px;position:relative}
.timeline li::before{content:counter(t);display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--navy);color:#fff;font-weight:700;font-family:var(--font-head);margin-bottom:12px}
.timeline h3{font-size:1.05rem}
.timeline p{font-size:.95rem;color:var(--ink-2);margin:0}

.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:32px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}

details{border:1px solid var(--line);border-radius:var(--radius-s);padding:18px 22px;background:#fff;margin-bottom:12px}
summary{cursor:pointer;font-weight:600;font-family:var(--font-head);font-size:1.05rem}
details p{margin:12px 0 0;color:var(--ink-2)}

.cta{position:relative;overflow:hidden;border-radius:32px;padding:64px;color:#fff;background:radial-gradient(500px 300px at 85% 20%,rgba(77,212,206,.35),transparent 60%),linear-gradient(135deg,#0B1F3A,#0B3B52)}
.cta h2{color:#fff;max-width:18em}
.cta p{color:#C9D6E3;max-width:38em}

.page-hero{padding:88px 0 64px;color:#fff;background:radial-gradient(700px 400px at 85% 30%,rgba(0,163,161,.3),transparent 60%),linear-gradient(160deg,#0B1F3A,#0E2A4C)}
.page-hero h1{color:#fff;max-width:16em}

form .field{margin-bottom:18px}
label{display:block;font-weight:600;margin-bottom:6px}
input,textarea{width:100%;font:inherit;padding:14px 16px;border:1.5px solid #9DB0C2;border-radius:12px;background:#fff;color:var(--navy)}
input:focus,textarea:focus{border-color:var(--teal-text);outline:3px solid rgba(0,122,120,.25)}
.hint{font-size:.9rem;color:var(--ink-2);margin:-2px 0 6px}

/* Footer */
.site-footer{background:#081629;color:#B8C7D6;padding:64px 0 36px;font-size:.95rem}
.site-footer a{color:#fff;text-decoration:none}
.site-footer a:hover{text-decoration:underline}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px;margin-bottom:40px}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin-bottom:8px}
.site-footer h2{font-size:1rem;color:#fff;margin-bottom:14px}
.legal{border-top:1px solid rgba(255,255,255,.1);padding-top:24px;display:flex;flex-wrap:wrap;gap:12px 32px;justify-content:space-between}

/* Reveal on scroll */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .7s ease,transform .7s ease}
.reveal.in{opacity:1;transform:none}

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

/* Responsive */
@media (max-width:1020px){
  .hero .wrap{grid-template-columns:1fr;min-height:0;text-align:left}
  .hero-visual{min-height:460px}
  .hero-visual img{max-height:440px}
  .ring{width:340px;height:340px;margin:-170px 0 0 -170px}.ring.r2{width:430px;height:430px;margin:-215px 0 0 -215px}
  .cards{grid-template-columns:repeat(2,1fr)}
  .trust ul{grid-template-columns:repeat(2,1fr)}
  .range,.grid-3{grid-template-columns:1fr 1fr}
  .timeline{grid-template-columns:1fr 1fr}
  .split{grid-template-columns:1fr}
}
@media (max-width:820px){
  .menu-btn{display:block}
  .nav{position:absolute;left:0;right:0;top:76px;background:#fff;border-bottom:1px solid var(--line);display:none;padding:12px 24px 20px}
  .nav.open{display:block}
  .nav ul{flex-direction:column;align-items:stretch}
  .nav .btn{margin:8px 0 0;justify-content:center}
}
@media (max-width:640px){
  body{font-size:17px}
  section{padding:64px 0}
  .steps,.cards,.why,.range,.grid-2,.grid-3,.timeline,.foot-grid{grid-template-columns:1fr}
  .trust ul{grid-template-columns:1fr}
  .chip{display:none}
  .cta{padding:40px 26px;border-radius:24px}
  .hero-visual{min-height:380px}
  .hero-visual img{max-height:360px}
  .ring{width:280px;height:280px;margin:-140px 0 0 -140px}.ring.r2{display:none}
}

/* ---- 25 Nov additions: station robot lead, figures, video, form ---- */
.robot-fig{margin:0;position:relative;z-index:2;display:flex;flex-direction:column;align-items:center}
.hero-visual .robot-fig img{max-height:500px;width:auto;filter:drop-shadow(0 30px 40px rgba(0,0,0,.35))}
.hero-visual .caption{color:#9FB2C6}
.product .shot .robot-fig img{max-height:290px;width:auto}
.product .shot .caption{margin:6px 0 10px}
.split .visual .robot-fig img{max-height:420px;width:auto}
.caption{font-size:.8rem;color:var(--ink-2);text-align:center;margin-top:8px}
.video-fig{margin:0}
.video-fig video{width:100%;height:auto;display:block;border-radius:24px;border:1px solid var(--line);box-shadow:var(--shadow);background:#E3ECF1;aspect-ratio:16/9}
.timeline h3{margin-bottom:.4em}
ol.timeline{padding:0}
.form-status{margin:14px 0 0;font-weight:600;color:var(--teal-text)}
.contact-form .btn{border:0;cursor:pointer}
.legal p{margin:0}
.chip.c3{left:-4%}
.pulse-line{width:100%}
@media (prefers-reduced-motion:reduce){.pulse-line path{stroke-dashoffset:0}}
@media (max-width:1020px){.hero-visual .robot-fig img{max-height:420px}}
@media (max-width:640px){.hero-visual .robot-fig img{max-height:340px}.timeline{grid-template-columns:1fr!important}}

/* ---- video sound toggle ---- */
.video-wrap{position:relative}
.sound-btn{position:absolute;top:14px;right:14px;display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.4);background:rgba(11,31,58,.78);color:#fff;font:600 .9rem/1 var(--font-head);cursor:pointer;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.sound-btn:hover{background:var(--navy)}
.sound-btn[aria-pressed="false"] .w{opacity:.35}
/* sources block, superscripts and legal pages (text rewrite 25 Nov) */
sup.ref{font-size:.7em;line-height:0;margin-left:2px}
sup.ref a{color:inherit;text-decoration:underline}
.on-dark sup.ref a{color:var(--teal-bright)}
.sources{padding:32px 0 40px;background:#fff;border-top:1px solid var(--line)}
.sources h2{font-size:1rem;margin-bottom:8px}
.sources ol{margin:0;padding-left:20px;font-size:.85rem;color:var(--ink-2)}
.sources li{margin-bottom:4px}
select{width:100%;font:inherit;padding:14px 16px;border:1.5px solid #9DB0C2;border-radius:12px;background:#fff;color:var(--navy)}
select:focus{border-color:var(--teal-text);outline:3px solid rgba(0,122,120,.25)}
.legal-body h2{font-size:1.3rem;margin-top:1.4em}
.why .item h3{color:#fff}
.placeholder{white-space:normal;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.timeline.t3{grid-template-columns:repeat(3,1fr)}
@media (max-width:1020px){.timeline.t3{grid-template-columns:1fr 1fr}}
.hero h1{text-wrap:balance}
.product .tag-planned{background:#FFF1EC;color:#8A2E12}

/* generic illustrations and the abstract hero ground (5 Dec 2026) */
.illus{margin:0;border-radius:28px;overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow)}
.illus img{display:block;width:100%;height:auto}
.head-art{display:grid;grid-template-columns:1fr minmax(240px,340px);gap:48px;align-items:center;margin-bottom:28px}
.head-art .section-head{margin-bottom:0}
@media (max-width:820px){.head-art{grid-template-columns:1fr;gap:20px}.head-art .illus{max-width:420px}}
.page-hero.has-art{background-image:linear-gradient(90deg,rgba(11,31,58,.95) 0%,rgba(11,31,58,.82) 45%,rgba(11,31,58,.3) 100%),url(../img/hero-abstract.svg);background-size:cover;background-position:right center}
@media (max-width:700px){.page-hero.has-art{background-image:linear-gradient(180deg,rgba(11,31,58,.92),rgba(11,31,58,.78)),url(../img/hero-abstract.svg)}}
.photo img{aspect-ratio:4/3;object-fit:cover}
.panel .photo{margin:-8px -8px 20px;border-radius:16px;box-shadow:none}
.card .photo{margin:-12px -12px 20px;border-radius:14px;box-shadow:none}

/* partner area bar, tick-box field and hidden trap field (5 Dec 2026) */
.partner-bar{background:var(--navy);color:#fff;font-size:.85rem}
.partner-bar .wrap{display:flex;flex-wrap:wrap;gap:6px 20px;justify-content:space-between;align-items:center;padding-top:8px;padding-bottom:8px}
.partner-bar a{color:#fff;margin-left:18px}
.partner-bar .pb-links a:first-child{margin-left:0}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.field.check label{display:flex;gap:10px;align-items:flex-start;font-weight:400}
.field.check input{width:auto;margin-top:5px;flex:none}

/* ---- 5 Dec 2026: fixes that keep the existing look (contrast, tap targets, form errors). Nothing here changes layout at desktop width. ---- */
/* contrast: same hues, shade moved only as far as WCAG AA needs */
.bg-sky .eyebrow,.bg-sky a:not(.btn){color:#007674}                    /* teal on the pale blue band: 4.37 to 4.61:1 */
.page-hero a:not(.btn),.cta a:not(.btn),.hero a:not(.btn){color:var(--teal-bright)}     /* teal link on navy: 2.8 to 7.9:1 or better */
.page-hero a:not(.btn):hover,.cta a:not(.btn):hover,.hero a:not(.btn):hover{color:#fff}
.chip{background:rgba(11,31,58,.6);border-color:rgba(255,255,255,.28)} /* floating labels: darker glass so white text reads over the robot */
input,textarea,select{border-color:#7E95AB}                            /* field edge: 2.23 to 3.10:1 */
:focus-visible{box-shadow:0 0 0 3px var(--navy)}                       /* navy ring inside the coral one, so focus shows on white (coral alone is 2.57:1) */
.on-dark :focus-visible,.site-footer :focus-visible,.partner-bar :focus-visible{box-shadow:none}
/* form errors tied to their fields */
.field-error{margin:6px 0 0;font-size:.9rem;font-weight:600;color:#8A2E12}
[aria-invalid="true"]{border-color:#8A2E12}
/* tap targets on phones and tablets: bigger hit areas, same rhythm */
@media (max-width:820px){
  .brand{display:inline-flex;align-items:center;min-height:44px}
  .menu-btn{min-height:44px}
  .site-footer li{margin-bottom:0}
  .site-footer li a{display:inline-block;padding:4px 0}
  .partner-bar .wrap{padding-top:3px;padding-bottom:3px}
  .partner-bar a{display:inline-block;padding:5px 0}
  main sup.ref a{padding:7px 9px;margin:-7px -7px}
  .sources li a{padding:5px 0}
  main a:not(.btn){padding-top:4px;padding-bottom:4px}   /* text links: a 24px-high hit area without moving any text */
  .field.check input{width:24px;height:24px;margin-top:2px}
}
