/* Bifocal — bifocal.orbit-biomed.com
   System type, the app's blue, light and dark. No scripts, no tracking. */

:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-3: #ececf0;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: #e2e2e6;
  --line-2: #d2d2d7;
  --accent: #3373f2;
  --accent-2: #2a5fd0;
  --accent-soft: #e8efff;
  --added: #22a447;
  --added-soft: #e3f4e6;
  --removed: #d9453f;
  --removed-soft: #fbe4e4;
  --changed-soft: #dfe9ff;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px -12px rgba(20,30,60,.22);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px -6px rgba(20,30,60,.14);
  --radius: 14px;
  --radius-lg: 22px;
  --nav-h: 60px;
  --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0e;
    --bg-2: #161619;
    --bg-3: #1f1f24;
    --text: #f5f5f7;
    --text-2: #a1a1a8;
    --text-3: #76767e;
    --line: #26262b;
    --line-2: #333339;
    --accent: #5c9cff;
    --accent-2: #7fb2ff;
    --accent-soft: #15213d;
    --added: #4cc66b;
    --added-soft: #16311d;
    --removed: #f0665f;
    --removed-soft: #3d1c1a;
    --changed-soft: #172544;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 48px -12px rgba(0,0,0,.7);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px -6px rgba(0,0,0,.6);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0; color: var(--text); }
h1 { font-size: clamp(40px, 6.5vw, 68px); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
code { font-size: .92em; background: var(--bg-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
pre { font-size: 14px; line-height: 1.6; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; margin: 16px 0; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
kbd { font-size: 14px; background: var(--bg-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; min-width: 0; }
body { overflow-x: hidden; }
.narrow { max-width: 760px; }
.muted { color: var(--text-2); }
.small { font-size: 15px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; height: 100%; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-size: 15px; font-weight: 500; padding: 7px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--bg-2); color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--bg-2); }
.nav-cta { margin-left: 8px; }
.nav-links a.btn-primary { color: #fff; background: var(--accent); }
.nav-links a.btn-primary:hover { background: var(--accent-2); }
@media (max-width: 640px) {
  .nav .wrap { gap: 16px; padding: 0 16px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 9px; font-size: 14px; }
  .nav-links .nav-cta { display: none; }
}
@media (max-width: 420px) {
  .nav .brand span { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 16px; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .12s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: var(--accent-2); }
.btn-secondary { background: var(--bg); color: var(--text); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--bg-2); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 0; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(40% 35% at 20% 30%, color-mix(in srgb, var(--added) 10%, transparent), transparent 70%),
    radial-gradient(40% 35% at 80% 30%, color-mix(in srgb, var(--removed) 9%, transparent), transparent 70%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 26px;
}
.hero h1 { max-width: 14ch; margin: 0 auto 22px; }
.hero .lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--text-2); max-width: 44ch; margin: 0 auto 32px; line-height: 1.5; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.hero-note { font-size: 14px; color: var(--text-3); margin-bottom: 56px; padding: 0 16px; }
.platforms { display: inline-flex; gap: 22px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.platforms span { display: inline-flex; align-items: center; gap: 7px; }
.platforms svg { width: 16px; height: 16px; opacity: .8; }

/* The window frame around screenshots */
.window {
  min-width: 0; max-width: 100%;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  background: var(--bg-2);
}
.window img { width: 100%; display: block; }
.hero .window { margin: 0 auto; max-width: 1040px; border-radius: 16px; }
.hero-shot { position: relative; padding-bottom: 0; }
.hero-shot::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { font-size: 19px; color: var(--text-2); margin: 16px 0 0; }
.kicker { display: block; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 26px 24px; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feature p { color: var(--text-2); font-size: 15.5px; margin: 0; line-height: 1.55; }
.tag { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; line-height: 1.5; vertical-align: middle; }
.tag.free { background: var(--added-soft); color: var(--added); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Showcase rows: copy beside a screenshot */
.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 48px 0; }
.showcase + .showcase { border-top: 1px solid var(--line); }
.showcase.flip .copy { order: 2; }
.showcase .copy h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.025em; margin-bottom: 14px; }
.showcase .copy p { color: var(--text-2); font-size: 17px; }
.showcase .copy ul { margin: 18px 0 0; padding: 0; list-style: none; }
.showcase .copy li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--text); font-size: 16px; }
.showcase .copy li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.showcase .copy li::after { content: ""; position: absolute; left: 5px; top: 12px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
@media (max-width: 860px) {
  .showcase { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 40px 0; }
  .showcase.flip .copy { order: 0; }
}

/* Devices band */
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.devices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.devices img { border-radius: var(--radius); }
.devices .copy h2 { margin-bottom: 14px; }
.devices .copy p { color: var(--text-2); font-size: 18px; }
@media (max-width: 860px) { .devices { grid-template-columns: minmax(0, 1fr); } }

/* Formats strip */
.formats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 900px; margin: 0 auto; }
.formats span { font-size: 13.5px; font-weight: 500; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 860px; margin: 0 auto; }
.plan { background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; }
.plan.pro { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-sm); }
.plan .name { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.plan .price { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-left: 6px; }
.plan .blurb { color: var(--text-2); margin: 12px 0 22px; font-size: 15.5px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; margin-bottom: 10px; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--added); }
.plan .btn { align-self: flex-start; }
@media (max-width: 700px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 17px; padding: 16px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; color: var(--text-3); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin: 0 0 18px; padding-right: 40px; }

/* Call to action strip */
.cta {
  text-align: center; padding: 80px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--bg-2)), var(--bg-2) 60%);
  border: 1px solid var(--line);
}
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--text-2); font-size: 18px; max-width: 48ch; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--text-2); font-size: 14.5px; }
.foot { display: flex; flex-wrap: wrap; gap: 32px 56px; justify-content: space-between; align-items: flex-start; }
.foot .brand { font-size: 17px; margin-bottom: 8px; }
.foot .brand img { width: 26px; height: 26px; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-cols h4 { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.foot-cols a { display: block; color: var(--text-2); margin-bottom: 8px; }
.foot-cols a:hover { color: var(--text); }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--text-3); }

/* ---------- Document pages (guide, support, privacy) ---------- */
.page { padding: 64px 0 96px; }
.page-head { margin-bottom: 40px; }
.page-head h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 14px; }
.page-head .lead { font-size: 20px; color: var(--text-2); max-width: 60ch; margin: 0; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); font-size: 14px; max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; }
.toc h4 { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.toc a { display: block; color: var(--text-2); padding: 5px 0 5px 12px; border-left: 2px solid var(--line); line-height: 1.35; }
.toc a:hover { color: var(--text); border-color: var(--line-2); text-decoration: none; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 28px; margin: 56px 0 14px; padding-top: 8px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 30px 0 8px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li strong { color: var(--text); }
.prose .tag { margin-left: 6px; font-size: 10.5px; }
.prose table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text-2); font-weight: 600; font-size: 13.5px; letter-spacing: .03em; text-transform: uppercase; }
.prose td[colspan] { padding-top: 22px; color: var(--text-2); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.prose td[colspan] strong { color: var(--text-2); }
.prose .callout { background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 14px 18px; margin: 18px 0; color: var(--text); }
.prose .callout p:last-child { margin: 0; }
.qa h3 { font-size: 18px; margin: 26px 0 6px; }
.qa p { color: var(--text-2); }
@media (max-width: 860px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; columns: 2 200px; }
  .toc h4 { column-span: all; }
}

/* Figures in the guide */
.prose figure { margin: 22px 0 28px; }
.prose figure .window { border-radius: 12px; }
.prose figcaption { color: var(--text-2); font-size: 14.5px; margin-top: 10px; line-height: 1.5; }
.prose figure.welcome .window { max-width: 720px; }
.prose .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .prose .two { grid-template-columns: minmax(0, 1fr); } }

/* Contact card on the support page */
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 28px; margin: 0 0 40px; }
.contact .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.contact .icon svg { width: 24px; height: 24px; }
.contact .text { flex: 1; min-width: 220px; }
.contact .text strong { display: block; font-size: 17px; margin-bottom: 2px; }
.contact .text span { color: var(--text-2); font-size: 15px; }

/* 404 */
.notfound { text-align: center; padding: 120px 24px; }
.notfound h1 { margin-bottom: 14px; }
.notfound p { color: var(--text-2); font-size: 19px; margin-bottom: 28px; }
