/* Vitals Bio Live. Follows vitalsbio.pages.dev (site/css/kit.css): light 300-weight navy headlines whose second
 * sentence runs on in slate, a 1266 px column with hairline rails, 4 px buttons, Geist. The stage is night. */
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --font-sans: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --navy: #0A1A33; --slate: #5F6F86; --ink: #2A3547; --line: #E3E8EF; --rail: #EEF1F5; --soft: #F6F9FC;
  --blue: #2732D6; --blue-hover: #1F28B5; --blue-300: #A9B0FF; --blue-100: #E8EAFF;
  --night: #0B0C10; --night-2: #15171D; --snow: #F4F5F8; --snow-2: #C3C8D3; --snow-3: #A4ABB8;
  --ok: #1E6B42; --ok-bg: #E4F3E9; --watch: #7A4E00; --watch-bg: #FBF0D9;
  --radius: 4px; --card-r: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 300; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 60; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: 1266px; margin: 0 auto; padding: 0 32px; position: relative; }
@media (max-width: 760px) { .container { padding: 0 16px; } }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 22px 16px; border-radius: var(--radius); background: var(--blue); color: #fff; font-size: 16px; line-height: 1; border: 0; cursor: pointer; transition: background .15s; white-space: nowrap; }
.btn:hover { background: var(--blue-hover); color: #fff; }
.btn svg { width: 18px; height: 18px; }
.btn.ghost { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1px #C9CDF5; }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--blue); }
.btn.sm { padding: 10px 14px 11px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: default; }

.h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.15; letter-spacing: -0.02em; }
.h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.02em; max-width: 24em; }
.h1 .run, .h2 .run { color: var(--slate); }
.h3 { font-size: 20px; font-weight: 400; letter-spacing: -0.01em; }
.fine { font-size: 14px; color: var(--slate); margin-top: 22px; max-width: 62em; }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.8) blur(12px); -webkit-backdrop-filter: saturate(1.8) blur(12px); border-bottom: 1px solid var(--rail); }
.nav .container { height: 62px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); }
.brand svg { height: 19px; width: auto; }
.brand span { font-size: 15px; color: var(--slate); padding-left: 9px; border-left: 1px solid var(--line); line-height: 1; }
.nav-end { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.navlink { font-size: 15px; color: var(--navy); }
@media (max-width: 640px) { .navlink { display: none; } }

/* hero */
.hero .container { padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(28px, 3.5vw, 44px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--navy); margin-bottom: 22px; }
.kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-100); }
.hero .h1 { max-width: 15em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .status { margin-top: 18px; font-size: 14px; color: var(--slate); }

/* stage */
.stage-wrap .container { padding-bottom: clamp(48px, 6vw, 88px); }
.stage { position: relative; aspect-ratio: 16 / 9; background: var(--night); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(10,26,51,.45), 0 0 0 1px rgba(10,26,51,.06); }
.stage canvas#view { width: 100%; height: 100%; object-fit: contain; background: var(--night); }
.stage video#recorded { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--night); }
@media (max-width: 760px) { .stage { border-radius: 8px; aspect-ratio: 4 / 3; } }

.badges { position: absolute; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 3; pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--snow); background: rgba(11,12,16,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(244,245,248,.10); font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge b { font-weight: 600; }
.badge.mode::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--snow-3); }
.stage[data-state="live"] .badge.mode::before { background: #5BE08B; box-shadow: 0 0 0 3px rgba(91,224,139,.18); }
.stage[data-state="recorded"] .badge.mode { background: rgba(122,78,0,.85); }
.stage[data-state="recorded"] .badge.mode::before { background: #FBD38A; }

.veil { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; background: radial-gradient(120% 90% at 50% 60%, rgba(11,12,16,.35), rgba(11,12,16,.82)); transition: opacity .35s; }
.veil[hidden] { display: grid !important; opacity: 0; pointer-events: none; }
.veil-inner { text-align: center; padding: 20px; max-width: 30em; }
.veil-title { color: var(--snow); font-size: clamp(18px, 2.2vw, 24px); font-weight: 300; letter-spacing: -0.01em; }
.veil-sub { color: var(--snow-2); font-size: 14px; margin-top: 6px; }
.veil .btn { margin-top: 18px; }
.bar { width: min(320px, 70vw); height: 3px; border-radius: 3px; background: rgba(244,245,248,.14); margin: 18px auto 0; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--blue-300); transition: width .2s; }
.caption { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; color: var(--snow-2); font-size: 12.5px; line-height: 1.4; text-shadow: 0 1px 2px rgba(0,0,0,.6); pointer-events: none; }

.clips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 14px; }
.clip { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; border-radius: 6px; }
.clip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s, transform .15s; }
.clip span { display: block; font-size: 13.5px; color: var(--navy); margin-top: 6px; }
.clip small { display: block; font-size: 12.5px; color: var(--slate); }
.clip:hover img { transform: translateY(-1px); box-shadow: 0 0 0 1px #C9CDF5, 0 8px 20px -10px rgba(10,26,51,.35); }
.clip[aria-current="true"] img { box-shadow: 0 0 0 2px var(--blue); }
.clip.camera img { background: var(--soft); }
@media (max-width: 760px) { .clips { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .clip { scroll-snap-align: start; } }

.legend { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; font-size: 13.5px; color: var(--slate); }
.legend span { display: inline-flex; align-items: center; gap: 9px; }
.legend svg { width: 40px; height: 16px; background: #23262E; border-radius: 4px; }
.chip { display: inline-flex; border-radius: 999px; overflow: hidden; font-size: 11.5px; font-weight: 500; background: #23262E; color: var(--snow); }
.chip em { font-style: normal; font-weight: 600; background: var(--blue); padding: 2px 6px; }
.chip { padding-right: 7px; gap: 6px; }

/* bands */
.band { background: var(--soft); border-top: 1px solid var(--rail); border-bottom: 1px solid var(--rail); }
.band .container, .privacy .container, .how .container, .credits .container { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 34px; }
.cap { background: #fff; border-radius: var(--card-r); box-shadow: 0 0 0 1px var(--line); padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.cap h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.cap p { font-size: 14px; color: var(--ink); }
.cap .ev { color: var(--slate); font-size: 13.5px; }
.pill { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.live { color: var(--ok); background: var(--ok-bg); }
.pill.preview { color: var(--watch); background: var(--watch-bg); }
.cap .test { margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--slate); }

.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 1.6px solid var(--blue); border-bottom: 1.6px solid var(--blue); transform: rotate(-45deg); }
.netcard { background: var(--night); color: var(--snow); border-radius: 10px; padding: 26px 26px 24px; }
.netcard-k { font-size: 14px; color: var(--snow-2); }
.netcard-n { font-size: 64px; font-weight: 200; letter-spacing: -0.04em; line-height: 1.1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.netcard-s { font-size: 13px; color: var(--snow-3); margin-top: 10px; }

.how { border-top: 1px solid var(--rail); }
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; padding: 18px 18px 4px 0; display: grid; gap: 6px; align-content: start; }
.steps li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.steps b { font-weight: 500; color: var(--navy); }
.steps b::before { content: "0" counter(s) "  "; color: var(--blue); font-weight: 500; font-variant-numeric: tabular-nums; white-space: pre; }
.steps span { font-size: 14px; color: var(--slate); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

.credits { background: var(--soft); border-top: 1px solid var(--rail); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 22px; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.cols h3 { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--slate); }
.cols a { color: var(--blue); }

.foot { border-top: 1px solid var(--rail); }
.foot .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; padding-bottom: 28px; font-size: 13.5px; color: var(--slate); }
