/* VMC med – Vector Mag Cardiac
   Colours and logo from the company deck. Only system fonts, nothing loaded from third parties. */

:root {
  --ink: #241B3D;          /* body text, deep violet-navy */
  --text: #3B3654;
  --muted: #6C6884;
  --violet: #6F2F9F;       /* deck headline purple */
  --magenta: #B21BB8;      /* deck accent magenta, used sparingly */
  --blue: #1A97E9;         /* logo gradient start */
  --indigo: #6A2CF5;       /* logo gradient end */
  --grad: linear-gradient(90deg, #1A97E9 0%, #6A2CF5 100%);
  --paper: #F4F8FC;        /* deck background */
  --mist: #E8F0F8;
  --line: #D9E2EE;
  --white: #FFFFFF;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --wide: 74rem;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
}
img, svg, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--violet); text-underline-offset: 0.18em; }
a:hover { color: var(--indigo); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.012em; }

/* Bilingual: elements with data-l are shown according to <html lang> */
html[lang="de"] [data-l="en"], html[lang="en"] [data-l="de"] { display: none !important; }

.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 37px; }
.wordmark { display: inline-flex; align-items: baseline; gap: .28rem; line-height: 1; }
.wordmark b {
  font-weight: 600; font-size: 1.45rem; letter-spacing: .01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark small { font-weight: 600; font-size: .82rem; color: var(--indigo); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(217,226,238,.8);
}
.site-header .bar {
  max-width: var(--wide); margin: 0 auto; padding: .8rem var(--gutter);
  display: flex; align-items: center; gap: 2rem;
}
.nav { margin-left: auto; display: flex; gap: 1.6rem; font-size: .95rem; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--violet); }
.lang { display: flex; gap: .2rem; font-size: .82rem; }
.lang button {
  font: inherit; color: var(--muted); background: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 999px; padding: .2rem .55rem;
}
.lang button[aria-pressed="true"] { color: var(--violet); border-color: #CDBBE6; background: #F5EFFC; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(106,44,245,.10), transparent 60%),
    radial-gradient(50rem 30rem at -10% 20%, rgba(26,151,233,.10), transparent 60%),
    var(--paper);
}
.hero-inner {
  max-width: var(--wide); margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 3rem; align-items: center;
}
.eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 1.1rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700;
  margin: 0 0 1.25rem; color: var(--violet); max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--magenta); }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text); max-width: 50ch; margin: 0 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-block; font: inherit; font-size: .98rem; font-weight: 500;
  padding: .72rem 1.3rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--grad); color: var(--white); box-shadow: 0 6px 18px -8px rgba(106,44,245,.55); }
.btn-primary:hover { color: var(--white); filter: brightness(1.07); }
.btn-ghost { border-color: #C9B6E4; color: var(--violet); background: rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }

.hero-figure { margin: 0; }
.hero-media {
  background: var(--white); border-radius: var(--radius); overflow: hidden; padding: .4rem;
  box-shadow: 0 30px 60px -30px rgba(36,27,61,.35), 0 0 0 1px rgba(36,27,61,.06);
}
.hero-media video, .hero-media img { width: 100%; height: auto; display: block; aspect-ratio: 842 / 376; }
.hero-figure figcaption, .caption { font-size: .82rem; color: var(--muted); margin-top: .6rem; }

/* ---------- Sections ---------- */
.section { border-top: 1px solid var(--line); }
.section.alt { background: var(--white); }
.section-inner { max-width: var(--wide); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head .eyebrow { margin-bottom: .7rem; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 700; margin: 0 0 1rem; color: var(--violet); }
.section h2 em { font-style: normal; color: var(--magenta); }
.section h3 { font-size: 1.2rem; font-weight: 650; margin: 0 0 .5rem; color: var(--ink); }
.section p { max-width: var(--measure); margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.split.top { align-items: stretch; }
.split.media-right > .media { order: 2; }

.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
}
.section.alt .panel { background: var(--paper); }
.panel .label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--magenta); font-weight: 600; margin: 0 0 .35rem; }
.panel p:last-child { margin-bottom: 0; }

/* Pregnancy timeline */
.timeline { margin: 1.4rem 0 .6rem; }
.timeline .track { position: relative; height: 8px; border-radius: 999px; background: var(--mist); }
.timeline .gain {
  position: absolute; left: 40%; width: 30%; top: 0; bottom: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--magenta), #8A3FD0);
}
.timeline .dot { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line); }
.timeline .dot.vmc { left: 40%; background: var(--magenta); }
.timeline .dot.today { left: 70%; background: #8D8AA3; }
.timeline .ticks { position: relative; height: 2.6rem; font-size: .8rem; color: var(--muted); }
.timeline .ticks > span { position: absolute; top: .55rem; transform: translateX(-50%); white-space: nowrap; text-align: center; line-height: 1.25; }
.timeline .ticks > span:first-child { transform: none; }
.timeline .ticks > span:last-child { transform: translateX(-100%); }
.timeline .ticks b { color: var(--ink); font-weight: 600; }
.timeline .ticks .v b { color: var(--magenta); }

.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.facts li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.section.alt .facts li { background: var(--paper); }
.facts strong { display: block; color: var(--violet); font-size: 1.05rem; margin-bottom: .25rem; }
.facts span { color: var(--muted); font-size: .95rem; }
.facts li::before {
  content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--grad); margin-bottom: .8rem;
}

.photos { display: grid; grid-template-columns: 1.4fr 1fr; gap: .8rem; margin: 0; max-width: 34rem; width: 100%; justify-self: end; }
.photos img { width: 100%; height: 100%; aspect-ratio: 3 / 3.4; object-fit: cover; border-radius: var(--radius); }
.photo { margin: 0; max-width: 26rem; width: 100%; justify-self: end; }
.photo img { width: 100%; border-radius: var(--radius); box-shadow: 0 24px 48px -28px rgba(36,27,61,.35); }
.photos figcaption { grid-column: 1 / -1; }

.quote {
  border-left: 3px solid var(--magenta); padding: .2rem 0 .2rem 1.2rem; margin: 1.5rem 0;
  color: var(--ink); font-size: 1.08rem;
}

.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.8rem 0 0; }
.steps.row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; margin-top: 3.5rem; }
.steps.row li { border-top: 2px solid var(--line); padding-top: 1.1rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; padding: .95rem 0; border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(s); width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center;
  font-size: .85rem; font-weight: 600; color: var(--white); background: var(--grad);
}
.steps strong { color: var(--ink); font-weight: 600; }
.steps p { margin: .15rem 0 0; color: var(--muted); }

.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.product { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.section.alt .product { background: var(--paper); }
.product img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.products + .caption { margin-top: 1rem; }
.product .body { padding: 1.25rem 1.35rem 1.4rem; }
.product .tag { display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--magenta); margin-bottom: .35rem; }
.product h3 { color: var(--violet); }
.product p { font-size: .96rem; margin: 0; }
/* Later application: visibly set back from the two initial devices */
.product.future { background: transparent; border-style: dashed; box-shadow: none; }
.section.alt .product.future { background: transparent; }
.product.future img { filter: grayscale(.85) contrast(.9); opacity: .45; }
.product.future .body { opacity: .55; }
.product.future .tag { color: var(--muted); }

.contact-line { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 600; margin: 1.2rem 0 .6rem; }
.contact-line a { text-decoration-color: var(--magenta); }
.placeholder { background: #FFF6D6; outline: 1px dashed #C9A227; padding: 0 .2em; }

.vision {
  background: var(--grad); color: var(--white); text-align: center;
}
.vision .section-inner { padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.vision p { margin: 0 auto; max-width: 30ch; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 650; line-height: 1.2; color: var(--white); }
.vision .eyebrow { color: rgba(255,255,255,.75); font-size: .78rem; font-weight: 400; margin-bottom: .8rem; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.person img {
  width: 100%; max-width: 13rem; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  border-radius: var(--radius); margin-bottom: 1.2rem;
  box-shadow: 0 20px 40px -26px rgba(36,27,61,.45), 0 0 0 1px rgba(36,27,61,.06);
}
.person h3 { font-size: 1.15rem; margin: 0 0 .25rem; }
.person .role { color: var(--magenta); font-weight: 600; font-size: .92rem; margin: 0 0 .9rem; }
.person p { font-size: .97rem; }
.tags { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font-size: .8rem; color: var(--violet); background: #F3EDFB; border-radius: 999px; padding: .22rem .7rem; }

/* ---------- Publications ---------- */
.publink { margin-top: 1.4rem; }
.publink a {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--violet);
  text-decoration: none; border-bottom: 2px solid #E3D3F3; padding-bottom: .15rem;
}
.publink a::after { content: ""; width: .5rem; height: .5rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.publink a:hover { color: var(--magenta); border-color: var(--magenta); }
.pubs { max-width: 52rem; margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--gutter) 5rem; }
.pubs h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--violet); margin: 0 0 1rem; }
.pubs h1 em { font-style: normal; color: var(--magenta); }
.pubs .lead { max-width: 60ch; margin: 0 0 2.5rem; }
.publist { list-style: none; counter-reset: p; padding: 0; margin: 0; }
.publist li {
  counter-increment: p; display: grid; grid-template-columns: 2.2rem 1fr; column-gap: .4rem;
  padding: 1rem 0; border-top: 1px solid var(--line);
}
.publist li:last-child { border-bottom: 1px solid var(--line); }
.publist li::before { content: counter(p) "."; color: var(--muted); font-variant-numeric: tabular-nums; grid-row: span 2; }
.publist a { color: var(--ink); font-weight: 500; text-decoration: none; line-height: 1.45; }
.publist a:hover { color: var(--violet); text-decoration: underline; }
.pubmeta { grid-column: 2; font-size: .82rem; color: var(--muted); margin-top: .2rem; }
.pub-empty { background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.5rem; color: var(--muted); }
.pubs .back { margin-top: 2.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); font-size: .9rem; }
.site-footer .bar {
  max-width: var(--wide); margin: 0 auto; padding: 2rem var(--gutter);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center;
}
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .spacer { margin-left: auto; }
.lock { display: inline-flex; align-items: center; gap: .4rem; }
.lock svg { width: 14px; height: 14px; }

/* ---------- Legal pages ---------- */
.page { max-width: 48rem; margin: 0 auto; padding: 4rem var(--gutter) 5rem; }
.page h1 { font-size: 2.3rem; color: var(--violet); margin: 0 0 2rem; }
.page h2 { font-size: 1.25rem; margin: 2.2rem 0 .5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .products { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .hero-inner, .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.media-right > .media { order: 0; }
  .facts { grid-template-columns: 1fr; }
  .steps.row { grid-template-columns: 1fr; margin-top: 2rem; }
  .photo, .photos { max-width: 29rem; justify-self: start; }
}
@media (max-width: 600px) {
  .products { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; gap: 3rem; }
  .timeline .ticks { font-size: .72rem; }
}
.nowrap { white-space: nowrap; }

/* Research notice under the hero text */
.research-note { margin: 1.1rem 0 0; padding: .6rem .9rem; border-left: 3px solid var(--magenta); background: rgba(255,255,255,.6); border-radius: 0 8px 8px 0; font-size: .9rem; color: var(--muted); max-width: 36rem; }

/* Who does what in the roadmap */
.who-tag { display: table; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: .05rem .4rem; margin-bottom: .3rem; }
.who-tag.vmc { color: var(--violet); border-color: #D9C8F0; background: #F5EFFC; }

/* Platform + AI statement */
.platform-ai { margin-top: 1rem; padding: .8rem 1rem; border-left: 3px solid var(--indigo); background: rgba(106,44,245,.05); border-radius: 0 10px 10px 0; }
.platform-ai strong { color: var(--ink); font-weight: 600; }
.ai-badge { display: inline-block; margin: .1rem 0 .7rem; padding: .2rem .65rem; font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--indigo); background: rgba(106,44,245,.08); border: 1px solid rgba(106,44,245,.25); border-radius: 999px; }
.facts { align-content: start; align-self: start; }
