/* BioManager website. System fonts, the app's teal, light and dark. */

:root {
  --read: #2d2d30;        /* running text in the guide: near black, not grey */
  --bg: #ffffff;
  --bg-band: #f5f5f7;
  --fg: #1d1d1f;
  --fg-2: #515154;
  --fg-3: #86868b;
  --line: rgba(0, 0, 0, 0.09);
  --card: #ffffff;
  --accent: #0f8f7c;
  --accent-hover: #0b7268;
  --accent-soft: rgba(23, 163, 143, 0.12);
  --grad-a: #0b7268;
  --grad-b: #3ed0b2;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.10);
  --radius: 14px;
  --nav: rgba(255, 255, 255, 0.72);
}

@media (prefers-color-scheme: dark) {
  :root {
    --read: #dcdce0;
    --bg: #161618;
    --bg-band: #1d1d20;
    --fg: #f5f5f7;
    --fg-2: #c7c7cc;
    --fg-3: #8e8e93;
    --line: rgba(255, 255, 255, 0.10);
    --card: #232326;
    --accent: #2cc4a6;
    --accent-hover: #3ed0b2;
    --accent-soft: rgba(62, 208, 178, 0.14);
    --grad-a: #3ed0b2;
    --grad-b: #b5f5e6;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 48px rgba(0, 0, 0, 0.5);
    --nav: rgba(22, 22, 24, 0.72);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd {
  font: 0.86em ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--accent-soft);
  padding: 0.1em 0.4em;
  border-radius: 5px;
}
kbd { border: 1px solid var(--line); background: var(--card); }
h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 650; }
h4 { font-size: 1.05rem; font-weight: 650; margin-bottom: 0.3em; }
p { margin: 0 0 1em; color: var(--fg-2); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.grad {
  background: linear-gradient(100deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; color: var(--fg); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--fg-2); }
.nav-links a:hover { color: var(--fg); text-decoration: none; }
@media (max-width: 640px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  border-radius: 980px;
  font-weight: 600; font-size: 16px;
  color: var(--accent);
  background: var(--accent-soft);
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #06231e; } }
.btn-large { min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn-small { min-height: 32px; padding: 0 14px; font-size: 14px; }

/* ------------------------------------------------------------ hero */
.hero { text-align: center; padding: 64px 0 40px; overflow: hidden; }
/* No glow here: the icon already draws its own shadow, and a second one
   only fattens the halo round its edge. Never put a `filter` on the icon
   either — a filtered image is painted as a bitmap, and goes soft when the
   page is zoomed. */
.hero-icon { width: 96px; height: 96px; margin: 0 auto 22px; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 720px; margin: 0 auto 28px; color: var(--fg-2); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { font-size: 14px; color: var(--fg-3); margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px auto 44px; max-width: 820px; }
.chips span {
  font-size: 14px; padding: 6px 12px; border-radius: 980px;
  background: var(--bg-band); border: 1px solid var(--line); color: var(--fg-2);
}
.caption { font-size: 14px; color: var(--fg-3); margin-top: 14px; }

/* A macOS window around each screenshot. */
.window {
  margin: 0; border-radius: 12px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.window-bar {
  display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
  background: var(--bg-band); border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--fg-3);
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { flex: 1; text-align: center; margin-right: 50px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-shot { max-width: 1080px; margin: 0 auto; }

/* ------------------------------------------------------------ sections */
.section { padding: 88px 0; }
.band { background: var(--bg-band); }
.band.section, .band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 650; color: var(--accent); margin-bottom: 10px; }
.section h2 { max-width: 780px; }
.emoji { font-size: 30px; line-height: 1; margin-bottom: 12px; }

.trio { display: grid; gap: 28px; padding-top: 52px; padding-bottom: 52px; }
@media (min-width: 800px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.trio p { margin: 0; }

/* Alternating text / screenshot rows. */
.row { display: grid; gap: 28px; align-items: center; margin-top: 64px; }
@media (min-width: 900px) {
  .row { grid-template-columns: 5fr 7fr; gap: 56px; }
  .row.flip .row-text { order: 2; }
}
.row-text p { font-size: 17px; }
.tag { display: inline-block; margin-right: 4px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 26px; margin: 8px 0; color: var(--fg-2); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2317a38f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Phone section */
.phone-row { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .phone-row { grid-template-columns: 5fr 7fr; gap: 56px; } }
.phones { position: relative; padding-bottom: 24px; }
.card-sheet { border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); width: 86%; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 34%;
  padding: 7px; border-radius: 30px; background: #1d1d1f; box-shadow: var(--shadow);
}
.phone img { border-radius: 24px; }

/* Feature cards */
.grid { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.05rem; }
.card p { font-size: 15px; margin: 0; }
.duo { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; } }
.card.big { padding: 30px; }
.card.big p { font-size: 16px; margin-bottom: 20px; }

/* Downloads */
.downloads { display: grid; gap: 12px; margin: 36px auto 8px; max-width: 900px; }
@media (min-width: 560px) { .downloads { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .downloads { grid-template-columns: repeat(4, 1fr); } }
.dl {
  display: flex; flex-direction: column; gap: 2px; padding: 18px 20px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
  color: var(--fg); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.dl:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.dl.mine { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dl-os { font-weight: 650; font-size: 18px; }
.dl-os::after { content: " ↓"; color: var(--accent); }
.dl-sub { font-size: 14px; color: var(--fg-3); }

.steps { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: flex; gap: 14px; }
.step > span {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: var(--accent-soft); color: var(--accent);
}
.step p { font-size: 15px; margin: 0; }

.dl-alt u { cursor: pointer; color: var(--accent); text-decoration: none; }
.dl-alt u:hover { text-decoration: underline; }
.mobile-dl { max-width: 900px; margin: 28px auto 0; }
.cta.left { justify-content: flex-start; margin-bottom: 14px; }
[data-os].mine { box-shadow: 0 0 0 3px var(--accent-soft); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 28px; }
summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; font-size: 17px; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--accent); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { font-size: 16px; }

/* Footer */
.footer { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 12px; }
.footer p { font-size: 13px; color: var(--fg-3); margin: 0; max-width: 760px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ------------------------------------------------------------ user guide */
.guide { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 80px; }
@media (min-width: 960px) { .guide { grid-template-columns: 230px minmax(0, 1fr); gap: 56px; } }
.toc { font-size: 14.5px; line-height: 1.45; }
@media (min-width: 960px) { .toc { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; } }
@media (max-width: 959px) {
  .toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; background: var(--bg-band); }
}
.toc-title { font-weight: 650; color: var(--fg); margin: 0 0 8px; }
/* Not the FAQ's details: no rule above, no padding. */
.toc .toc-box { margin: 0; padding: 0; border: 0; }
.toc-box > summary { cursor: pointer; list-style: none; padding: 0; position: static; }
.toc-box > summary::-webkit-details-marker { display: none; }
.toc-box > summary::after { content: "+"; float: right; position: static; transform: none; font-size: 20px; line-height: 1;
  color: var(--accent); }
.toc-box[open] > summary::after { content: "–"; transform: none; }
.toc-box:not([open]) > summary { margin: 0; }
@media (min-width: 960px) {
  .toc-box > summary { pointer-events: none; }
  .toc-box > summary::after, .toc-box[open] > summary::after { content: none; }
}
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc ol ol { padding-left: 14px; }
.toc a { display: block; padding: 4px 8px; border-radius: 7px; color: var(--fg-2); }
.toc a:hover { text-decoration: none; background: var(--accent-soft); color: var(--fg); }
.toc a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* Reading type: 17px (the front page's size) at 1.7 line height, in one
   near-black for all running text, and lines kept to about 70 characters.
   Tables, pictures and code may use the full column. */
.guide-body {
  max-width: 760px; min-width: 0;
  font-size: 17px; line-height: 1.7; color: var(--read);
  text-rendering: optimizeLegibility; font-kerning: normal;
}
.guide-body p, .guide-body ul, .guide-body ol, .guide-body dl, .guide-body .note { max-width: 42em; }
.guide-body p { margin: 0 0 1em; text-wrap: pretty; }
.guide-body b, .guide-body strong { font-weight: 620; color: var(--fg); }
.guide-body h1 { font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.1; }
.guide-body section { padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--line); }
.guide-body section:first-of-type { border-top: 0; margin-top: 8px; }
.guide-body h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: 0.55em; color: var(--fg); }
.guide-body h3 { font-size: 1.28rem; font-weight: 650; margin: 1.9em 0 0.55em; color: var(--fg); }
.guide-body ul, .guide-body ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.guide-body li { margin: 0.45em 0; padding-left: 0.2em; }
.guide-body li::marker { color: var(--fg-3); }
.lede-left { font-size: 1.2rem; line-height: 1.6; color: var(--fg-2); }
.steps-list li::marker { color: var(--accent); font-weight: 700; }

.gtable { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 16px; line-height: 1.6; }
.gtable th, .gtable td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--line); }
.gtable tr:last-child th, .gtable tr:last-child td { border-bottom: 1px solid var(--line); }
.gtable th { width: 130px; color: var(--fg); font-weight: 620; }
.gtable td { color: var(--read); }
.gtable thead th { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-3);
  border-top: 0; padding-bottom: 8px; }
@media (max-width: 560px) { .gtable th { width: 96px; } .gtable th, .gtable td { padding: 10px 8px; } }

/* Definition lists: a hairline between terms, so a long one isn't a wall;
   on a wide screen the term sits in its own column. */
.gdl { margin: 14px 0 20px; }
.gdl dt { font-weight: 650; color: var(--fg); padding-top: 14px; border-top: 1px solid var(--line); }
.gdl dt:first-child { padding-top: 0; border-top: 0; }
.gdl dd { margin: 4px 0 14px; color: var(--read); }
@media (min-width: 700px) {
  .gdl { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: 20px; }
  .gdl dt, .gdl dd { padding-top: 14px; border-top: 1px solid var(--line); margin: 0; padding-bottom: 14px; }
  .gdl dt:first-child, .gdl dt:first-child + dd { padding-top: 0; border-top: 0; }
}

.note {
  margin: 18px 0; padding: 14px 18px; border-radius: 12px; font-size: 16px; line-height: 1.6; color: var(--read);
  background: var(--accent-soft); border-left: 3px solid var(--accent);
}
.note.warn { background: rgba(255, 159, 10, 0.12); border-left-color: #ff9f0a; }
.gshot { margin: 20px 0 12px; }
.gshot a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); cursor: zoom-in; }
.gshot figcaption { margin-top: 8px; font-size: 14px; color: var(--fg-3); text-align: center; }
.gshot-phone { max-width: 300px; margin-inline: auto; }
.gshot-phone a { border-radius: 24px; }
.nav-links a[aria-current="page"] { color: var(--fg); font-weight: 600; }

/* ------------------------------------------------------------ guide extras */
.guide-body pre {
  margin: 10px 0 14px; padding: 12px 14px; overflow-x: auto;
  background: var(--bg-band); border: 1px solid var(--line); border-radius: 10px;
  font: 13.5px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--fg);
}
.guide-body pre code { background: none; padding: 0; font-size: inherit; }
.guide-body li > pre { margin-top: 8px; }
.fine-left { font-size: 14px; color: var(--fg-3); }
.pill {
  display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 9px; border-radius: 980px;
  font-size: 12px; font-weight: 650; letter-spacing: 0; background: var(--accent-soft); color: var(--accent);
}
.opt-grid { display: grid; gap: 14px; margin: 18px 0; }
@media (min-width: 700px) { .opt-grid { grid-template-columns: 1fr 1fr; } }
.opt { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.opt h3 { margin: 2px 0 8px; font-size: 1.1rem; }
.opt p { font-size: 16px; }
.opt-kicker { font-size: 13px; font-weight: 650; color: var(--accent); margin: 0; }
.opt-meta { font-size: 14px; color: var(--fg-3); margin-top: -4px; }
.opt .opt-meta { margin: 0; }
.table-scroll { overflow-x: auto; margin: 12px 0; }
.gtable.compare { min-width: 640px; font-size: 14px; }
.gtable.compare th { white-space: normal; width: auto; }
.gtable.compare thead th { color: var(--fg-3); font-weight: 600; font-size: 13px; }
.gtable.compare tbody th { min-width: 170px; }
.gtable.compare tr.rec { background: var(--accent-soft); }
.gtable.layers th { width: 150px; white-space: normal; }
blockquote.req {
  margin: 12px 0; padding: 12px 16px; border-left: 3px solid var(--line); background: var(--bg-band);
  border-radius: 0 10px 10px 0; font-size: 16px; color: var(--read);
}
.prompt {
  white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0 10px; padding: 14px 16px; border-radius: 12px;
  border: 1px dashed var(--accent); background: var(--accent-soft);
  font: 14px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--fg);
}
.copy-btn { cursor: pointer; border: 0; }
/* Coming from Excel: the side-by-side map. */
.gtable.map th { width: 42%; white-space: normal; }
.map td b { color: var(--fg); }
.part { margin: 48px 0 0; padding-top: 18px; border-top: 2px solid var(--accent); }
.part-label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0; }
/* A part names a group of sections; the section right after it carries the
   big heading, so the part's own title is smaller. */
.guide-body .part h2 { margin-top: 4px; font-size: 1.35rem; font-weight: 650; color: var(--fg-2); }
.guide-body .part > p, .guide-body .part > ul { margin-top: 8px; }
.guide-body .part + section { border-top: 0; margin-top: 0; }
/* The contents: each part's name stands out in the accent colour, and its
   sections sit indented under it along a thin line, which turns teal
   beside the section being read. */
.toc .toc-part {
  margin: 22px 0 6px; padding-left: 8px; font-size: 12px; font-weight: 750; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
.toc .toc-part:first-child { margin-top: 4px; }
.toc ol:has(.toc-part) > li:not(.toc-part) { margin-left: 10px; padding-left: 8px; border-left: 1.5px solid var(--line); }
.toc ol:has(.toc-part) > li:not(.toc-part) a { padding: 5px 10px; border-radius: 6px; }
.toc ol:has(.toc-part) > li:not(.toc-part):has(a.on) { border-left-color: var(--accent); }
.wow { display: grid; gap: 12px; margin: 16px 0; }
@media (min-width: 700px) { .wow { grid-template-columns: 1fr 1fr; } }
.wow div { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.wow b { display: block; color: var(--fg); margin-bottom: 4px; }
.wow p { font-size: 16px; line-height: 1.6; margin: 0; }
/* Long commands and paths in running text wrap on a phone instead of widening the page. */
.guide-body :not(pre) > code { overflow-wrap: anywhere; }

/* A phone: a touch smaller, so a line still holds a sentence's worth. */
@media (max-width: 560px) {
  .guide-body { font-size: 16.5px; line-height: 1.65; }
  .guide-body h2 { font-size: 1.6rem; }
  .guide-body h3 { font-size: 1.18rem; }
}
