/* Kalven Medical LLC - shared styles. No inline styles anywhere (CSP: style-src 'self'). */
:root {
  --ink: #14213d;
  --ink-soft: #4a5568;
  --brand: #0f6e74;
  --brand-dark: #0a4f54;
  --accent: #e8f3f3;
  --line: #dfe7ea;
  --bg: #ffffff;
  --warn-bg: #fff8e6;
  --warn-line: #f0dca3;
  --max: 1080px;
  --read: 720px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--brand); }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid #f5a623; outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 10px 0; gap: 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { display: block; height: 64px; width: auto; }
.logo svg { width: 34px; height: 34px; }
.logo span { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; }
.logo small { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; margin-left: 2px; }
nav ul { list-style: none; display: flex; gap: 26px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--ink); font-size: 0.95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--brand); }
nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
nav ul.lang { gap: 4px; padding-left: 22px; border-left: 1px solid var(--line); }
nav ul.lang a { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; border-bottom: 1px solid var(--line); }
nav ul.lang a:hover { border-color: var(--brand); }
nav ul.lang a[aria-current="true"] { background: var(--brand); color: #ffffff; border-color: var(--brand); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--accent) 0%, #ffffff 100%); padding: 96px 0 88px; }
.hero.small { padding: 64px 0 48px; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-dark); background: #ffffff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.15; max-width: 760px; margin-bottom: 20px; }
.hero.small h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.hero p { font-size: 1.15rem; color: var(--ink-soft); max-width: 680px; margin-bottom: 28px; }
.btn { display: inline-block; background: var(--brand); color: #ffffff; text-decoration: none; padding: 13px 26px; border-radius: 8px; font-weight: 600; }
.btn:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); margin-left: 10px; }
.btn-ghost:hover { background: var(--accent); }
.crumbs { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: 1.9rem; margin-bottom: 14px; line-height: 1.25; }
h3 { font-size: 1.1rem; margin-bottom: 8px; }
.lead { color: var(--ink-soft); max-width: 700px; margin-bottom: 36px; font-size: 1.05rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 28px; background: #ffffff; }
.card .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card .icon svg { width: 24px; height: 24px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }
.card a.more { display: inline-block; margin-top: 12px; font-weight: 600; text-decoration: none; }
.card a.more:hover { text-decoration: underline; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.facts { list-style: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.facts li:last-child { border-bottom: none; }
.facts li span:first-child { color: var(--ink-soft); }
.facts li span:last-child { font-weight: 600; text-align: right; }

.status { background: var(--accent); border-radius: 12px; padding: 32px; }
.status ol { margin: 18px 0 0 20px; color: var(--ink-soft); }
.status li { margin-bottom: 8px; }
.status li strong { color: var(--ink); }

/* Roadmap */
.steps { list-style: none; counter-reset: s; display: grid; gap: 16px; max-width: 760px; }
.steps li { counter-increment: s; position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px 20px 70px; background: #fff; }
.steps li::before {
  content: counter(s); position: absolute; left: 20px; top: 18px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--brand-dark); font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.steps li.done::before { background: var(--brand); color: #fff; content: "\2713"; }
.steps li strong { display: block; margin-bottom: 2px; }
.steps li span { color: var(--ink-soft); font-size: 0.97rem; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-left: 8px; vertical-align: middle; background: var(--accent); color: var(--brand-dark); }
.tag.now { background: #fff1d6; color: #7a4b00; }

/* Prose pages */
.prose { max-width: var(--read); }
.prose h2 { margin-top: 40px; font-size: 1.45rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 24px; }
.prose p { margin-bottom: 14px; color: #2d3748; }
.prose ul, .prose ol { margin: 0 0 16px 22px; color: #2d3748; }
.prose li { margin-bottom: 6px; }
.updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 24px; }

.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 12px; padding: 18px 22px; color: #5c4a12; font-size: 0.97rem; max-width: var(--read); }
.notice strong { color: #4a3a08; }

/* FAQ */
.faq { max-width: var(--read); display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 22px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 22px 18px; color: var(--ink-soft); }
.faq .answer p + p { margin-top: 10px; }

/* Contact */
.contact { text-align: center; }
.contact .lead { margin-left: auto; margin-right: auto; }
.contact-list { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.who { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 760px; margin: 0 auto 32px; text-align: left; }
.who li { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; background: #fff; font-size: 0.97rem; }
.cta-band { background: var(--accent); border-radius: 16px; padding: 40px; text-align: center; }
.cta-band p { color: var(--ink-soft); max-width: 560px; margin: 0 auto 22px; }

/* Footer */
footer { background: var(--ink); color: #c9d2dc; padding: 44px 0; font-size: 0.88rem; }
footer a { color: #dbe6ef; }
footer .row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
footer p + p { margin-top: 8px; }
footer ul { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.disclaimer { max-width: 620px; color: #9aa6b2; }

@media (max-width: 860px) {
  .grid, .grid.two { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .btn-ghost { margin-left: 0; margin-top: 10px; }
  section { padding: 56px 0; }
}
@media (max-width: 700px) {
  .nav { padding: 6px 0; }
  .logo img { height: 52px; }
  nav ul { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  header, .skip, .hero .btn, .cta-band { display: none; }
  body { font-size: 12pt; }
  a { color: #000; }
  footer { background: none; color: #000; }
}
