/* DeviceVigil marketing site
   Tokens: paper, mist, ink, slate, rule, vigil (teal), amber (data lag), recall (Class I only).
   One family: IBM Plex Sans 400/500/600, self-hosted. The FDA page illustration uses Arial on purpose. */

@font-face { font-family: "Plex"; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #FBFCFB;
  --mist: #EEF2F1;
  --ink: #13232B;
  --slate: #4A5A63;
  --rule: #D6DEDC;
  --vigil: #0E6B66;
  --vigil-deep: #0A4F4B;
  --vigil-tint: #E3F0EE;
  --amber: #8A5A12;
  --recall: #B3261E;
  --radius: 10px;
  --wrap: 1120px;
  --font: "Plex", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); font-variant-numeric: tabular-nums; }
img { display: block; max-width: 100%; }
a { color: var(--vigil); text-underline-offset: 3px; }
a:hover { color: var(--vigil-deep); }
:focus-visible { outline: 3px solid var(--vigil); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }

.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 30; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap-wide { width: min(100% - 32px, 1240px); }
.narrow { width: min(100% - 40px, 760px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; white-space: nowrap; border: 0; border-radius: 8px; background: var(--vigil); color: #fff; font-weight: 500; text-decoration: none; transition: background-color .12s ease-out; }
.btn:hover { background: var(--vigil-deep); color: #fff; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 15px; }
.link { font-weight: 500; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--rule); background: var(--paper); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(251, 252, 251, .78); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
}
[id] { scroll-margin-top: 84px; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 19px; text-decoration: none; letter-spacing: -0.01em; }
.site-header nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-header nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.site-header nav a:not(.btn):hover { color: var(--vigil); }

/* Hero */
.hero { padding: 80px 0 48px; }
.hero h1 { font-size: clamp(36px, 6vw, 76px); line-height: 1.02; max-width: 21ch; letter-spacing: -0.035em; }
.lede { margin-top: 24px; max-width: 50ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--slate); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.fineprint { margin-top: 16px; font-size: 14px; color: var(--slate); }

/* Demo: browser frame with an FDA-style record and the DeviceVigil panel */
.demo { margin: 64px 0 0; }
.browser { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px rgba(19, 35, 43, .35); }
.browser-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 14px; background: #F1F3F4; border-bottom: 1px solid #E1E4E6; }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #D3D7DA; }
.url { flex: 1; min-width: 0; height: 28px; line-height: 28px; padding: 0 14px; border-radius: 14px; background: #fff; color: #5F6368; font: 13px/28px Arial, Helvetica, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ext-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: #E3E6E8; }
.browser-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: 560px; }

.gov { padding: 22px 28px 32px; font: 13px/1.45 Arial, Helvetica, sans-serif; color: #222; }
.gov-crumb { color: #555; font-size: 12px; }
.gov-title { margin: 10px 0 16px; font: bold 20px/1.3 Arial, Helvetica, sans-serif; letter-spacing: 0; color: #1B3B6F; }
.gov-table { width: 100%; border-collapse: collapse; }
.gov-table th, .gov-table td { padding: 6px 10px; border: 1px solid #C9C9C9; vertical-align: top; text-align: left; }
.gov-table th { width: 34%; background: #E9ECEF; font-weight: bold; }
.gov-table u { color: #1A4FA0; }
.gov-table .hl { background: #FFF4C2; }

.panel { border-left: 1px solid var(--rule); background: var(--paper); font-size: 14px; line-height: 1.5; }
.panel-head { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--rule); font-weight: 600; font-size: 14px; }
.panel-sec { padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.panel-sec h3 { font-size: 13px; font-weight: 600; color: var(--slate); letter-spacing: 0; margin-bottom: 8px; }
.panel-lead { font-size: 15px; font-weight: 500; line-height: 1.45; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0; }
.facts div { min-width: 0; }
.facts dt { font-size: 12px; color: var(--slate); }
.facts dd { margin: 0; font-weight: 500; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 44px; margin-top: 14px; }
.spark .b { flex: 1; background: var(--vigil); border-radius: 2px 2px 0 0; opacity: .85; }
.src { margin-top: 8px; font-size: 12px; color: var(--slate); }
.src.lag { color: var(--amber); }
.related { list-style: none; margin: 0; padding: 0; }
.related li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.related li + li { border-top: 1px dashed var(--rule); }
.related b { font-weight: 600; }
.panel-actions { display: flex; gap: 8px; border-bottom: 0; }
.watch, .ghost { min-height: 36px; padding: 0 14px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.watch { border: 0; background: var(--vigil); color: #fff; }
.watch[aria-pressed="true"] { background: var(--vigil-tint); color: var(--vigil-deep); }
.ghost { border: 1px solid var(--rule); background: #fff; color: var(--ink); cursor: default; }
.demo figcaption { margin-top: 14px; font-size: 13px; color: var(--slate); text-align: center; }

/* The one orchestrated motion: the panel docks once on load */
@media (prefers-reduced-motion: no-preference) {
  .js .panel { transform: translateX(24px); opacity: 0; transition: transform .5s cubic-bezier(.2,.7,.2,1) .35s, opacity .4s ease-out .35s; }
  .js .panel.docked { transform: none; opacity: 1; }
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 700px) {
  .js .panel { transform: translateY(16px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Six tabs: drawn as browser tab strips (Chrome's light theme) */
.tabs-problem { padding: 112px 0 80px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.two-col.top { align-items: start; }
.tabs-problem h2, .features h2, .pricing h2, .join h2, .trust h2, .faq h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; }
.tabs-problem p { margin-top: 16px; color: var(--slate); max-width: 56ch; }
.tabs-visual { min-width: 0; }
.tabs-label { margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--slate); }
.tabstrip { display: flex; align-items: flex-end; min-width: 0; margin: 0 0 28px; padding: 8px 8px 0; list-style: none; background: #DEE1E6; border: 1px solid var(--rule); border-bottom: 10px solid #fff; border-radius: 12px 12px 0 0; box-shadow: 0 1px 0 var(--rule); }
.tabstrip:last-child { margin-bottom: 0; }
.tabstrip li, .tabstrip .tab { position: relative; display: flex; align-items: center; gap: 8px; flex: 1 1 0; min-width: 0; max-width: 220px; height: 34px; padding: 0 12px; border-radius: 8px 8px 0 0; font: 12px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #3C4043; }
.tabstrip li > span, .tabstrip .tab > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tabstrip li:not(.is-active):not(:last-child)::after { content: ""; position: absolute; right: 0; top: 10px; bottom: 10px; width: 1px; background: #AEB4BA; }
.tabstrip .is-active { background: #fff; color: #202124; }
.tabstrip-one { margin-bottom: 0; border-bottom: 0; box-shadow: none; }
.tab-page { display: grid; grid-template-columns: minmax(0, 1fr) 36%; height: 148px; background: #fff; border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 12px 12px; overflow: hidden; }
.tab-page-record { margin: 18px 20px; background: repeating-linear-gradient(to bottom, #E6EAEC 0 7px, transparent 7px 17px); }
.tab-page-panel { display: flex; flex-direction: column; gap: 9px; padding: 14px 16px; border-left: 1px solid var(--rule); background: var(--paper); }
.tab-page-panel i { display: block; height: 6px; width: 72%; border-radius: 3px; background: var(--rule); }
.tab-page-panel i:first-of-type { width: 88%; background: var(--ink); opacity: .7; }
.tab-page-panel .bars { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.tab-page-panel .bars span { flex: 1; height: 60%; border-radius: 1px 1px 0 0; background: var(--vigil); opacity: .85; }
.bars span:nth-child(2) { height: 72%; } .bars span:nth-child(3) { height: 55%; } .bars span:nth-child(4) { height: 80%; }
.bars span:nth-child(5) { height: 64%; } .bars span:nth-child(6) { height: 100%; } .bars span:nth-child(7) { height: 86%; }
.fav { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; background: #1B3B6F; }
.fav-ecfr { border-radius: 3px; background: #5F6B74; }
.fav-pdf { border-radius: 3px; background: #9AA0A6; }

/* Features: alternating rows, not cards */
.features { padding: 24px 0 64px; }
.feature > * { min-width: 0; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--rule); }
.feature:nth-child(even) .feature-text { order: 2; }
.feature-text p { margin-top: 14px; color: var(--slate); max-width: 56ch; }
.feature h2 { font-size: clamp(24px, 2.6vw, 30px); }
.feature-art { overflow-x: auto; min-height: 200px; display: flex; align-items: center; justify-content: center; padding: 28px; background: var(--mist); border-radius: 16px; }

.leads { width: 100%; max-width: 440px; margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; box-shadow: 0 16px 30px -22px rgba(19, 35, 43, .35); }
.leads div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 13px 18px; }
.leads div + div { border-top: 1px solid var(--rule); }
.leads dt { font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--vigil-deep); }
.leads dd { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }

.peek-demo { width: 100%; max-width: 380px; font: 14px/1.45 Arial, Helvetica, sans-serif; color: #222; }
.peek-line u { color: #1A4FA0; text-decoration-style: dotted; text-decoration-thickness: 2px; }
.peek { margin-top: 10px; padding: 14px 16px; background: #fff; border-radius: 10px; border: 1px solid var(--rule); box-shadow: 0 16px 30px -18px rgba(19, 35, 43, .4); font: 14px/1.5 var(--font); color: var(--ink); }
.peek p + p { margin-top: 2px; color: var(--slate); }
.peek-title { font-weight: 600; }
.peek-counts { display: flex; gap: 14px; padding-top: 8px; margin-top: 8px !important; border-top: 1px solid var(--rule); font-size: 13px; }

.digest { width: 100%; max-width: 420px; padding: 18px 20px; background: #fff; border: 1px solid var(--rule); border-radius: 10px; font-size: 14px; line-height: 1.5; }
.digest p + p { margin-top: 3px; }
.digest-head { font-weight: 600; margin-bottom: 8px; }
.digest-group { margin-top: 12px !important; font-weight: 500; color: var(--vigil-deep); }
.digest-foot { margin-top: 14px !important; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--slate); }

.csv { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; border: 1px solid var(--rule); }
.csv th, .csv td { padding: 7px 10px; border-bottom: 1px solid var(--rule); text-align: left; white-space: nowrap; }
.csv th { background: #F6F8F7; font-weight: 600; color: var(--slate); }
.csv th:nth-child(n+3), .csv td:nth-child(n+3) { background: var(--vigil-tint); }

/* Provenance band */
.provenance { padding: 96px 0; background: var(--ink); color: #E8EFED; }
.provenance h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; max-width: 20ch; color: #fff; }
.provenance p { margin-top: 20px; max-width: 58ch; font-size: 18px; color: #B9C7C4; }
.cite { margin: 0; border: 1px solid #2E4550; border-radius: 14px; overflow: hidden; }
.cite div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; padding: 12px 20px; border-top: 1px solid #2E4550; font-size: 15px; }
.cite dt { color: #8FA3A0; }
.cite dd { margin: 0; color: #E8EFED; }
.cite .cite-figure { display: block; border-top: 0; padding: 20px; background: #1B313A; }
.cite .cite-figure dt { font-size: 14px; }
.cite .cite-figure dd { margin-top: 4px; font-size: 40px; font-weight: 600; line-height: 1.1; color: #fff; letter-spacing: -0.02em; }

/* Pricing: a comparison table, not cards */
.pricing { padding: 96px 0 40px; }
.section-lede { margin-top: 14px; color: var(--slate); max-width: 62ch; }
.plans { margin-top: 40px; border-top: 2px solid var(--ink); }
.plans-row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.plans-row > span:not(:first-child) { color: var(--slate); }
.plans-head { padding: 18px 0; align-items: start; }
.plans-head b { display: block; font-size: 20px; color: var(--ink); }
.plans-head em { display: block; font-style: normal; font-size: 14px; color: var(--slate); }
.plans-head > span:nth-child(3) b { color: var(--vigil); }

/* Join: price test, waitlist, survey */
.join { padding: 72px 0 96px; }
.join-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.join-intro p { margin-top: 14px; color: var(--slate); }
.join-card { padding: 32px; background: #fff; border: 1px solid var(--rule); border-radius: 16px; }
.join-card fieldset { margin: 0; padding: 0; border: 0; }
.join-card legend { padding: 0; font-weight: 600; font-size: 19px; line-height: 1.35; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.choice { min-height: 46px; padding: 0 20px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); font-weight: 500; transition: border-color .12s, background-color .12s; }
.choice:hover { border-color: var(--vigil); }
.choice[aria-pressed="true"] { border-color: var(--vigil); background: var(--vigil-tint); color: var(--vigil-deep); }
.hint { margin-top: 14px; font-size: 14px; color: var(--slate); }
.join-card label[for="email"] { display: block; font-weight: 600; margin-bottom: 8px; }
.email-row { display: flex; gap: 10px; }
.email-row input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid #B9C4C1; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
.email-row input:focus-visible { outline-offset: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--slate); }
.check input { margin-top: 4px; accent-color: var(--vigil); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: 12px; color: var(--recall); font-size: 14px; }
.done { font-weight: 600; font-size: 18px; outline: none; }
[data-step="survey"] fieldset { margin-top: 24px; }
[data-step="survey"] legend { font-size: 16px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.opts label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 8px; font-size: 14px; cursor: pointer; }
.opts label:has(input:checked) { border-color: var(--vigil); background: var(--vigil-tint); }
.opts input { accent-color: var(--vigil); margin: 0; }
.wish-label { display: block; margin-top: 24px; font-weight: 600; font-size: 16px; }
.wish-label span { font-weight: 400; color: var(--slate); }
textarea { display: block; width: 100%; margin: 8px 0 20px; padding: 10px 12px; border: 1px solid #B9C4C1; border-radius: 8px; font: inherit; font-size: 15px; resize: vertical; }

/* Trust */
.trust { padding: 88px 0; background: var(--mist); }
.trust p { margin-top: 16px; color: var(--slate); max-width: 52ch; }
.trust-list { margin: 0; display: grid; gap: 0; border-top: 1px solid #C9D4D1; }
.trust-list div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid #C9D4D1; }
.trust-list dt { font-weight: 600; }
.trust-list dd { margin: 0; color: var(--slate); }

/* FAQ */
.faq { padding: 96px 0; }
.faq-list { min-width: 0; }
details { border-top: 1px solid var(--rule); }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { padding: 18px 0; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--vigil); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 0 20px; color: var(--slate); max-width: 64ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: 14px; color: var(--slate); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-row p:last-child { display: flex; gap: 20px; }

/* Privacy page */
.doc { padding: 64px 0 96px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.doc h2 { font-size: 22px; margin-top: 40px; }
.doc p, .doc li { color: var(--slate); max-width: 68ch; }
.doc p { margin-top: 12px; }
.doc ul { padding-left: 20px; margin-top: 12px; }
.doc li + li { margin-top: 6px; }
.doc .updated { margin-top: 12px; font-size: 14px; }

/* Responsive */
@media (max-width: 1000px) {
  .browser-body { grid-template-columns: minmax(0, 1fr) 320px; }
  .gov-table th { width: 40%; }
  .gov .opt { display: none; }
}
@media (max-width: 860px) {
  .site-header nav a:not(.btn) { display: none; }
  .hero { padding-top: 48px; }
  .browser-body { grid-template-columns: minmax(0, 1fr) 296px; min-height: 0; }
  .gov { padding: 18px 18px 24px; font-size: 12px; }
  .gov-title { margin: 8px 0 12px; font-size: 17px; }
  .gov-table th, .gov-table td { padding: 5px 8px; }
  .tabs-problem { padding: 80px 0 56px; }
  .plans-head { position: sticky; top: 68px; z-index: 1; background: var(--paper); }
  .two-col, .feature, .join-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .plans-row { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 10px; font-size: 13px; }
  .plans-head b { font-size: 16px; }
  .plans-head em { font-size: 12px; }
  .join-card { padding: 22px; }
  .email-row { flex-direction: column; }
  .trust-list div { grid-template-columns: 1fr; gap: 4px; }
  .feature-art { justify-content: flex-start; padding: 20px; }
  .cite div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 700px) {
  .browser-body { grid-template-columns: 1fr; }
  .gov .opt-m { display: none; }
  .gov { padding: 14px 16px 18px; }
  .panel { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .choices { display: grid; grid-template-columns: 1fr; }
  .csv .opt-m { display: none; }
  .csv th, .csv td { padding: 7px 8px; font-size: 12px; }
  .feature-art { padding: 14px; }
  .leads div { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 12px 14px; }
  .tabstrip li, .tabstrip .tab { padding: 0 9px; gap: 6px; }
  .tabstrip li:not(.is-active) > span { display: none; }
  .tabstrip li.is-active { flex-grow: 4; }
}
@media (max-width: 380px) {
  .brand { font-size: 17px; gap: 8px; }
  .btn-small { padding: 0 12px; font-size: 14px; }
  .leads div { grid-template-columns: 1fr; gap: 2px; }
  .feature-art { padding: 10px; }
  .csv th, .csv td { padding: 6px; font-size: 11px; }
}
@media (max-width: 420px) {
  .plans-row { grid-template-columns: 1fr 1fr 1fr; }
  .plans-row > span:first-child { grid-column: 1 / -1; font-weight: 500; color: var(--ink); }
  .plans-head > span:first-child { display: none; }
}
