/* Countach Medical — site styles
   Palette taken from the company deck: deep navy + teal wordmark. */
:root {
  --navy-900: #071b30;
  --navy-800: #0a2540;
  --navy-700: #12365a;
  --teal-600: #267b88;   /* wordmark teal */
  --teal-400: #3fb0bf;   /* teal for use on navy */
  --teal-050: #e8f4f6;
  --ink: #14263a;
  --ink-soft: #4a5b6d;
  --line: #dbe3ea;
  --paper: #ffffff;
  --mist: #f3f6f8;
  --alert: #c8352b;
  --radius: 14px;
  --wrap: 1120px;
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy-800); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 300; }
h1 strong, h2 strong { font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 400; max-width: 22ch; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 8px; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-600); margin: 0 0 14px;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 58ch; }
.accent { color: var(--teal-600); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 27, 48, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { height: 20px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: #d7e3ee; text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav a:hover { color: #fff; }
.nav a.btn { color: var(--navy-900); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--teal-400); color: var(--navy-900); font-weight: 700; font-size: .95rem;
  text-decoration: none; border: 0; cursor: pointer;
}
.btn:hover { background: #63c6d3; }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--navy-800) url("../images/bg-navy.jpg") center / cover no-repeat;
}
.hero > .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; min-height: min(86vh, 760px); padding-block: 72px 0; }
.hero h1 { color: #fff; max-width: 13ch; }
.hero .eyebrow { color: var(--teal-400); }
.hero .lede { color: #c9d8e6; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 72px; }
.hero-art { align-self: end; justify-self: center; }
.hero-art img { height: min(76vh, 680px); width: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }

.caution {
  background: var(--navy-900); color: #c9d8e6; font-size: .84rem; line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,.1);
}
.caution .wrap { padding-block: 14px; }
.caution strong { color: #fff; letter-spacing: .04em; }

/* ---------- Sections ---------- */
section { padding-block: clamp(64px, 9vw, 112px); }
.tint { background: var(--mist); }
.dark { background: var(--navy-800); color: #dbe6f0; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: var(--teal-400); }
.dark .lede { color: #b9cadb; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

/* Need */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px 18px; text-align: center; }
.compare img { height: 340px; width: auto; margin: 0 auto 14px; }
.compare figcaption { font-weight: 700; font-size: .95rem; color: var(--navy-800); }
.compare figcaption span { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-soft); }

.zone { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(48px, 7vw, 88px); }
.zone-art { position: relative; justify-self: center; }
.zone-art img { height: 420px; width: auto; }
.zone-box { position: absolute; left: -14%; right: -14%; top: 49%; height: 21%; border: 2px solid var(--alert); border-radius: 6px; }
.zone-box span { position: absolute; top: -24px; left: -2px; background: var(--alert); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .1em; padding: 3px 8px; border-radius: 4px 4px 0 0; white-space: nowrap; }
.need-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.need-list li { padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.need-list h3 { margin-bottom: 4px; }
.need-list p { margin: 0; color: var(--ink-soft); }

/* Technology */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.feature { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 20px 22px; }
.feature h3 { margin-bottom: 4px; font-size: 1.05rem; }
.feature p { margin: 0; color: #b9cadb; font-size: .96rem; }
.flow-art { background: #fff; border-radius: var(--radius); padding: 28px; display: grid; place-items: center; }
.flow-art img { height: 460px; width: auto; }
.flow-art figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }
figure { margin: 0; }

.components { counter-reset: comp; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.components li { counter-increment: comp; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.components li::before { content: counter(comp); width: 30px; height: 30px; border-radius: 50%; background: var(--teal-600); color: #fff; font-weight: 700; font-size: .9rem; display: grid; place-items: center; }
.components strong { display: block; color: var(--navy-800); }
.components span { color: var(--ink-soft); font-size: .95rem; }
.today { display: grid; grid-template-columns: 130px 1fr; gap: 28px; align-items: center; background: var(--mist); border-radius: var(--radius); padding: 28px; }
.today img { height: 250px; width: auto; margin-inline: auto; }
.today p:last-child { margin: 0; }

/* Procedure */
.stepper { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: 40px; }
.stage { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.stage img { height: 500px; width: auto; margin: 0 auto; }
.stage-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.stage-controls button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy-800); font-size: 1.1rem; cursor: pointer; }
.stage-controls button:hover { background: var(--teal-050); }
.stage-controls output { font-size: .88rem; color: var(--ink-soft); min-width: 5.5em; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps button {
  width: 100%; text-align: left; font: inherit; color: var(--ink-soft); background: none; border: 0; cursor: pointer;
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: 12px;
}
.steps button::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.steps button:hover { background: rgba(38,123,136,.07); }
.steps button[aria-current="step"] { background: #fff; color: var(--navy-800); font-weight: 700; box-shadow: 0 6px 20px rgba(10,37,64,.08); }
.steps button[aria-current="step"]::before { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }

/* Clinical */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px 0 16px; }
.stat { border-top: 3px solid var(--teal-600); padding-top: 14px; }
.stat b { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 300; line-height: 1; color: var(--navy-800); letter-spacing: -0.03em; }
.stat span { color: var(--ink-soft); font-size: .95rem; }
.outcomes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.outcome { background: var(--navy-800); color: #c9d8e6; border-radius: var(--radius); padding: 26px 22px; }
.outcome b { display: block; font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--teal-400); margin-bottom: 10px; }
.outcome span { font-size: .95rem; }
.checks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.checks li { padding-left: 30px; position: relative; color: var(--ink-soft); }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain; }
.footnote { font-size: .82rem; color: var(--ink-soft); margin-top: 32px; max-width: 90ch; }

/* Progress */
.timeline { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
.timeline li { padding: 18px 0 18px 22px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal-600); box-shadow: 0 0 0 4px var(--mist); }
.timeline time { display: block; font-weight: 700; color: var(--teal-600); font-size: .9rem; letter-spacing: .04em; }
.timeline span { color: var(--navy-800); }

.path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.path article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.path p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.chain { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 6px; padding: 0; margin: 28px 0 0; }
.chain li { background: var(--teal-050); color: var(--navy-800); font-weight: 600; font-size: .88rem; padding: 8px 14px; border-radius: 999px; }
.chain li + li::before { content: "→"; margin: 0 10px 0 -22px; color: var(--teal-600); position: relative; left: -4px; }
.chain li + li { margin-left: 18px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; margin-top: 40px; }
.person { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center; }
.person img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: center top; background: #e9eef3; }
.person h3 { margin: 0; font-size: 1.05rem; }
.person .role { color: var(--teal-600); font-weight: 600; font-size: .9rem; margin: 2px 0 4px; }
.person p { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.45; }
.subhead { margin-top: 64px; font-size: 1.3rem; font-weight: 600; }

/* Contact + footer */
.contact { text-align: center; background: var(--navy-800) url("../images/bg-navy.jpg") center / cover no-repeat; color: #c9d8e6; }
.contact h2 { color: #fff; margin-inline: auto; max-width: 20ch; }
.contact .lede { margin-inline: auto; color: #c9d8e6; margin-bottom: 28px; }
.site-footer { background: var(--navy-900); color: #93a8bc; font-size: .82rem; line-height: 1.55; padding-block: 44px; }
.site-footer img { height: 18px; width: auto; margin-bottom: 18px; }
.site-footer p { max-width: 96ch; margin-bottom: .9em; }
.site-footer strong { color: #dbe6f0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero > .wrap, .split, .stepper { grid-template-columns: 1fr; }
  .hero > .wrap { padding-top: 56px; min-height: 0; }
  .hero-cta { margin-bottom: 32px; }
  .hero-art img { height: 420px; }
  .stats, .outcomes { grid-template-columns: repeat(2, 1fr); }
  .timeline, .path, .checks { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .stage img { height: 400px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--navy-900); padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; }
  .nav a.btn { width: auto; padding: 12px 22px; margin-top: 8px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .zone, .today { grid-template-columns: 1fr; }
  .zone-art img { height: 320px; }
  .features, .team { grid-template-columns: 1fr; }
  .compare img { height: 240px; }
  .chain li + li { margin-left: 0; }
  .chain li + li::before { content: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
