/* MedSi homepage. Fonts are served from this site (SIL Open Font License, see /fonts/). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/inter-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #080f1b;
  --bg-alt: #0a1322;
  --card: #0d1526;
  --border: #1b2941;
  --text: #f5f5f5;
  --muted: #8899aa;
  --cyan: #00d4ff;
  --violet: #7b6ef6;
  --btn-text: #080e1a;
  --input: rgba(13, 21, 38, 0.8);
  --radius: 12px;
  --head: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.08; margin: 0 0 20px; letter-spacing: -0.01em; }
h1 { font-size: clamp(48px, 9vw, 96px); }
h2, .h2 { font-size: clamp(32px, 5vw, 48px); }
h3, .h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0 0 16px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--cyan); color: var(--btn-text); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.section { padding: 112px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin: 0 0 48px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-top { margin-top: 96px; align-items: start; }

.eyebrow { font: 400 12px/1.4 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--cyan); margin: 0 0 16px; }
.lead { font-size: 20px; font-weight: 300; max-width: 640px; }
.sub { font-size: 20px; font-weight: 300; color: var(--cyan); }
.small { font-size: 14px; }
.accent { color: var(--cyan); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 6px; font: 600 14px/1 var(--body); border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--cyan); color: var(--btn-text); }
.btn-primary:hover { box-shadow: 0 0 24px rgba(0, 212, 255, .35); }
.btn-outline { border-color: var(--border); color: var(--text); background: rgba(13, 21, 38, .6); }
.btn-outline:hover { border-color: var(--cyan); }
.btn-text { color: var(--cyan); padding: 0 8px; }
.btn-sm { min-height: 38px; padding: 0 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 36px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8, 15, 27, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark, .brand img { width: 40px; height: 34px; }
.brand-word { font: 500 26px/1 var(--head); letter-spacing: -0.01em; color: var(--text); }
.nav { display: flex; gap: 28px; margin: 0 auto; }
.nav a { color: #c3ccd6; font-size: 14px; }
.nav a:hover { color: var(--text); text-decoration: none; }
.menu-btn[hidden] { display: none !important; }
.menu-btn { display: none; background: none; border: 1px solid var(--border); border-radius: 6px; width: 42px; height: 38px; cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: var(--text); margin: 0 auto; position: relative; content: ""; }
.menu-bars::before { position: absolute; top: -6px; }
.menu-bars::after { position: absolute; top: 6px; }

/* hero */
.hero { position: relative; min-height: calc(100vh - 64px); display: flex; align-items: center; overflow: hidden; padding: 96px 0; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero-inner { position: relative; }
.hero h1 { margin-bottom: 28px; }

/* flows */
.flow { list-style: none; margin: 0 0 112px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 9px; height: 1px; background: linear-gradient(90deg, var(--cyan), var(--violet)); opacity: .5; }
.flow li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.flow-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 14px rgba(0, 212, 255, .45); margin-bottom: 10px; }
.flow li:nth-child(even) .flow-dot { border-color: var(--violet); box-shadow: 0 0 14px rgba(123, 110, 246, .45); }
.flow strong { font: 700 16px/1.3 var(--head); color: var(--text); }
.flow span:not(.flow-dot) { font-size: 13px; color: var(--muted); }
.flow-pipe { margin-bottom: 0; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--border); }
.steps li:last-child { border-bottom: 1px solid var(--border); }
.step-num { font: 700 36px/1 var(--mono); color: var(--cyan); }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; max-width: 760px; }

/* roundtable */
.roundtable { margin: 0; }
.roundtable svg { width: 100%; max-width: 460px; margin: 0 auto; overflow: visible; }
.rt-ring polygon { fill: none; stroke: var(--border); stroke-width: 1.5; stroke-dasharray: 4 6; }
.rt-spokes line { stroke: rgba(0, 212, 255, .35); stroke-width: 1.5; }
.rt-core { fill: rgba(0, 212, 255, .12); stroke: var(--cyan); stroke-width: 2; }
.rt-core-label { font: 700 14px var(--head); fill: var(--text); text-anchor: middle; }
.rt-node circle { fill: var(--bg); stroke: var(--violet); stroke-width: 2.5; }
.rt-node:nth-child(odd) circle { stroke: var(--cyan); }
.rt-node text { font: 500 12px var(--head); fill: var(--text); text-anchor: middle; }

/* checks and facts */
.checks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding: 16px 20px 16px 48px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 20px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(0, 212, 255, .6); }
.facts { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.facts li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; color: var(--muted); }
.facts strong { color: var(--text); font-weight: 600; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; scroll-margin-top: 96px; }
.card h3 { margin-bottom: 12px; }
.card-link { font-weight: 600; font-size: 14px; }

/* evidence trail */
.trail .note { font-size: 13px; color: var(--muted); border-left: 2px solid var(--violet); padding-left: 12px; }
.trail-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 18px; }
.trail-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; color: var(--text); font-size: 14px; }
.trail-list .bar { grid-column: 1 / -1; grid-row: 2; height: 6px; border-radius: 3px; background: var(--border); position: relative; overflow: hidden; }
.trail-list .bar::after { content: ""; position: absolute; inset: 0 auto 0 0; border-radius: 3px; }
.bar-strong::after { width: 85%; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.bar-moderate::after { width: 60%; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.grade { color: var(--cyan); font-size: 13px; font-weight: 600; }
.grade em { color: var(--muted); font-style: normal; font-weight: 400; }

/* responsible AI, tagline */
.statement { font: 700 clamp(26px, 3.4vw, 36px)/1.2 var(--head); color: var(--text); }
.tagline { padding: 80px 0; }
.tagline-text { font: 700 clamp(26px, 3.4vw, 40px)/1.2 var(--head); color: var(--text); }

/* faq */
.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font: 500 17px/1.4 var(--head); color: var(--text); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font: 400 22px/1 var(--body); color: var(--cyan); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 24px 20px; margin: 0; }

/* waitlist */
.waitlist { display: flex; gap: 12px; max-width: 520px; margin: 32px auto 16px; }
.waitlist input[type="email"] { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 6px; border: 1px solid rgba(26, 40, 64, 1); background: var(--input); color: var(--text); font: 400 16px var(--body); }
.waitlist input[type="email"]::placeholder { color: #5d6b7b; }
.waitlist input[type="email"]:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 212, 255, .2); }
.waitlist button[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 16px; }
.form-ok-title { font: 700 22px/1.3 var(--head); color: var(--cyan); margin-bottom: 6px; }
.form-err { color: #ff8a8a; margin-top: 12px; }

/* disclaimer and footer */
.disclaimer { padding: 80px 0; }
.disclaimer p { font-size: 14px; }
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-tag { margin-top: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; }
.footer-nav a { color: var(--muted); font-size: 14px; }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-legal p { font-size: 13px; margin-bottom: 6px; }

/* plain pages (thanks, oops, 404) */
.plain { min-height: 100vh; display: flex; align-items: center; padding: 48px 0; }
.plain .brand { margin-bottom: 40px; }

/* scroll reveal, only when the script is running */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.shown { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .nav { gap: 18px; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .section { padding: 80px 0; }
  .menu-btn { display: block; margin-left: auto; }
  .js .header-cta { display: none; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 20px 20px; gap: 0; }
  .nav.open a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
  .flow { grid-template-columns: 1fr; gap: 28px; margin-bottom: 80px; }
  .flow::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--cyan), var(--violet)); }
  .flow li { background: var(--bg); padding: 4px 0; }
  .section-alt .flow li { background: var(--bg-alt); }
  .steps li { grid-template-columns: 64px 1fr; gap: 16px; }
  .step-num { font-size: 28px; }
  .facts { grid-template-columns: 1fr; }
  .waitlist { flex-direction: column; }
  .split-top { margin-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
