/* Tanush LIMS — one-page product site.
   Same design language as tanushdigital.com (v4): light-weight Mona Sans display,
   night canvases, real product screens. The product colour is teal. */

:root {
  --night: #041915;
  --night-2: #062520;
  --teal: #14A08A;
  --teal-strong: #0B7A69;
  --teal-ink: #075C4F;
  --teal-wash: #E8F5F2;
  --teal-line: #BFE2D9;
  --gold: #D9A847;
  --ink: #0B0F14;
  --text: #0B0F14;
  --text-2: #4A5462;
  --text-3: #6B7480;
  --paper: #F5F6F5;
  --white: #FFFFFF;
  --line: #E3E7E6;
  --on-night: #EAF7F3;
  --on-night-2: #9FC2BA;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow-screen: 0 40px 80px -40px rgba(4, 25, 21, 0.45), 0 2px 8px rgba(4, 25, 21, 0.06);
  --max: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 999px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.section { padding: clamp(72px, 9vw, 128px) 0; }

/* Type */
.display {
  font-weight: 360;
  font-size: clamp(2.7rem, 1.4rem + 4.6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.title {
  font-weight: 400;
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.8rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--text-2); }
h3 { font-weight: 600; font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.25; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.97rem; white-space: nowrap; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-teal { background: #0F766E; color: #fff; } /* 5.5:1 with white text; --teal alone is 3.3:1 */
.btn-teal:hover { background: var(--teal-ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e9f3f0; }
button.btn { font-family: inherit; }
.btn-ghost { background: transparent; border-color: rgba(234, 247, 243, 0.28); color: var(--on-night); }
.btn-ghost:hover { border-color: rgba(234, 247, 243, 0.7); }
.btn-outline { border-color: #c9d3d0; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn .ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; margin-right: -10px; background: rgba(255,255,255,.18); transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translate(2px, -1px); }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent; color: var(--on-night);
}
.header.scrolled { background: rgba(255,255,255,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); color: var(--ink); }
.header .wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.1rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--teal); display: grid; place-items: center; }
.by { font-size: .84rem; opacity: .7; white-space: nowrap; }
.by a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: currentColor; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: .92rem; font-weight: 500; opacity: .8; transition: opacity .2s; }
.nav a:hover, .nav a[aria-current] { opacity: 1; }
.header .btn { height: 40px; padding: 0 18px; font-size: .9rem; }
@media (max-width: 960px) { .nav { display: none; } }
/* Six nav links: tighter between 961 and 1120px so nothing wraps */
.nav a { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1120px) { .nav a { padding: 8px 9px; } }
@media (min-width: 961px) and (max-width: 1060px) { .header .by { display: none; } }
.brand-wrap { display: flex; align-items: center; gap: 14px; min-width: 0; }
/* Small screens: "by Tanush Digital" sits under the product name so the demo button keeps its room */
@media (max-width: 560px) { .brand-wrap { flex-direction: column; align-items: flex-start; gap: 0; } .by { font-size: .74rem; margin-left: 44px; margin-top: -4px; } }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--on-night); min-height: 1060px;
  background:
    radial-gradient(900px 520px at 75% 10%, rgba(20,160,138,.30), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(217,168,71,.10), transparent 70%),
    var(--night);
}
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(130px, 14vw, 180px); }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; border: 1px solid rgba(234,247,243,.18); color: var(--on-night-2); }
.chip b { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(20,160,138,.25); }
.hero h1 { margin-top: 26px; max-width: 12.5ch; }
.hero .lead { margin-top: 28px; max-width: 44ch; color: var(--on-night-2); }
.hero .ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .made-by { margin-top: 22px; font-size: .9rem; color: var(--on-night-2); opacity: .85; }
/* Hero video: the product loop in a frame beside the headline (below it on phones) */
.hero { min-height: 0; padding-bottom: 80px; }
@media (min-width: 1100px) {
  .hero .wrap { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
}
.hero-video { position: relative; margin-top: 44px; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: #041915; box-shadow: 0 50px 100px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(234,247,243,.12); }
@media (min-width: 761px) { .hero-video { aspect-ratio: 16 / 9; } }
@media (min-width: 1100px) { .hero-video { margin-top: 30px; transform: perspective(1800px) rotateY(-6deg); } }
.hero-video video, .hero-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid-toggle { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; border: 0; background: rgba(4,25,21,.72); color: #eaf7f3; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.vid-toggle:hover { background: rgba(4,25,21,.9); }
@media (prefers-reduced-motion: reduce) { .hero-video video { display: none; } }

/* Product tour: the explainer on the page, right after the hero */
.tour { background: var(--night); color: var(--on-night); padding: 24px 0 88px; scroll-margin-top: 56px; }
.tour-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 48px; }
.tour-head .title { color: var(--on-night); max-width: 14ch; }
.tour-head .lead { max-width: 44ch; color: var(--on-night-2); }
.player { position: relative; margin-top: 36px; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 60px 120px -50px rgba(0,0,0,.9), 0 0 0 1px rgba(234,247,243,.12); }
.player video { display: block; width: 100%; height: 100%; object-fit: cover; }
.play-cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; border: 0; cursor: pointer; color: #fff; font: inherit; background: linear-gradient(180deg, rgba(4,25,21,.08), rgba(4,25,21,.55)); transition: background .3s var(--ease); }
.play-cover:hover { background: linear-gradient(180deg, rgba(4,25,21,.15), rgba(4,25,21,.65)); }
.play-btn { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: #0F766E; box-shadow: 0 0 0 10px rgba(15,118,110,.28), 0 20px 40px -10px rgba(0,0,0,.6); transition: transform .3s var(--ease); }
.play-cover:hover .play-btn { transform: scale(1.06); }
.play-btn span { width: 0; height: 0; margin-left: 6px; border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent #fff; }
.play-label { padding: 8px 16px; border-radius: 999px; background: rgba(4,25,21,.72); font-weight: 600; font-size: 1rem; }
.play-label b { margin-left: 6px; font-weight: 500; color: #9fded1; }
.player.playing .play-cover { display: none; }
.player-close { position: absolute; top: 12px; right: 12px; z-index: 3; display: none; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(4,25,21,.8); color: #fff; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.player-close:hover { background: rgba(4,25,21,.95); }
.player.playing .player-close { display: inline-flex; }
/* End card: what to do next once the tour has finished */
.player-end { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center; background: rgba(4,25,21,.88); backdrop-filter: blur(4px); }
.player-end[hidden] { display: none; }
.player-end p { margin: 0; font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); font-weight: 450; letter-spacing: -.01em; color: #fff; max-width: 26ch; }
.player-end-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
/* The floating WhatsApp button would sit on the video controls */
body.tour-playing .wa { opacity: 0; pointer-events: none; }
.wa { transition: opacity .25s var(--ease); }
/* Phones: the tour right after the hero is the page's video; no second loop above it */
@media (max-width: 760px) { .hero-video { display: none; } }
.chapters { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chapters button { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(234,247,243,.18); background: transparent; color: var(--on-night); font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.chapters button:hover { border-color: rgba(234,247,243,.5); }
.chapters button.on { background: rgba(20,160,138,.18); border-color: #14A08A; }
.chapters time { color: #8fb8ae; font-variant-numeric: tabular-nums; }
.tour-yt { margin-top: 16px; font-size: .88rem; color: var(--on-night-2); }
.tour-yt a { color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .tour { padding: 8px 0 64px; }
  .player { margin-top: 24px; border-radius: 16px; }
  .play-btn { width: 68px; height: 68px; box-shadow: 0 0 0 7px rgba(15,118,110,.28); }
  .play-btn span { border-width: 11px 0 11px 18px; margin-left: 4px; }
  .play-label { font-size: .88rem; padding: 6px 12px; }
  /* One swipeable row of chapters instead of three wrapped rows */
  .chapters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .chapters::-webkit-scrollbar { display: none; }
  .chapters button { white-space: nowrap; }
}

.btn .play { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-right: 2px; }

/* Standards strip */
.strip { background: var(--night); color: var(--on-night-2); padding: 0 0 72px; }
.strip p { font-size: .82rem; letter-spacing: .02em; color: #6f948b; }
.strip ul { list-style: none; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.strip li { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(234,247,243,.12); font-size: .9rem; }

/* Bento features */
.intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.intro .lead { max-width: 46ch; }
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tile { border-radius: 28px; background: var(--paper); padding: 34px; overflow: hidden; position: relative; }
.tile p { margin-top: 10px; color: var(--text-2); font-size: 1rem; line-height: 1.55; max-width: 44ch; }
.tile .k { font-weight: 360; font-size: 3.4rem; letter-spacing: -.04em; line-height: 1; color: var(--teal-strong); margin-bottom: 18px; }
.tile.big { grid-column: span 3; display: flex; flex-direction: column; min-height: 560px; }
.tile.big .shot { margin-top: auto; margin-bottom: -34px; translate: 0 10px; border-radius: 14px 14px 0 0; overflow: hidden; box-shadow: 0 -12px 50px -24px rgba(4,25,21,.4); transition: translate .7s var(--ease); }
.tile.big:hover .shot { translate: 0 0; }
.tile.small { grid-column: span 2; }
.tile.dark { background: var(--night-2); color: var(--on-night); }
.tile.dark p { color: var(--on-night-2); }
.tile.dark .k { color: #4fd1b8; }
.tile .k small { display: block; margin-top: 6px; font-size: .9rem; letter-spacing: 0; font-weight: 500; line-height: 1.3; color: inherit; opacity: .75; }
.tile.teal { background: var(--teal-wash); }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr; } .tile.big, .tile.small { grid-column: auto; } .tile.big { min-height: 0; } }

/* Workflow */
.flow { margin-top: 56px; display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 48px; align-items: start; }
.steps { display: flex; flex-direction: column; gap: 4px; }
.step { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid transparent; background: none; cursor: pointer; transition: background-color .25s; }
.step:hover { background: var(--paper); }
.step[aria-selected="true"] { background: var(--teal-wash); border-color: var(--teal-line); }
.step .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 600; border: 1px solid #c9d3d0; color: var(--text-2); }
.step[aria-selected="true"] .n { background: var(--teal); border-color: var(--teal); color: #fff; }
.step strong { display: block; font-weight: 600; }
.step span.role { font-size: .86rem; color: var(--text-3); }
.panel figure { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-screen); background: #fff; }
.panel img { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; } }
.panel .cap { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.panel .cap p { max-width: 58ch; color: var(--text-2); }
.panel .cap strong { color: var(--text); }
.status { font-size: .86rem; color: var(--text-3); white-space: nowrap; }
.status span { margin-left: 6px; padding: 3px 10px; border-radius: 999px; background: var(--teal-wash); border: 1px solid var(--teal-line); color: var(--teal-ink); font-weight: 600; }
.note { margin-top: 36px; max-width: 70ch; padding-left: 16px; border-left: 2px solid var(--teal); color: var(--text-2); }
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; gap: 24px; }
  .steps { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
  .step { flex: none; }
  .step span.role { display: none; }
}

/* Report */
.report { background: var(--paper); }
.report .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.sheet { position: relative; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-screen); border: 1px solid var(--line); }
.pin { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .72rem; font-weight: 600; display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(255,255,255,.95); }
.callouts { margin-top: 32px; list-style: none; display: grid; gap: 16px; counter-reset: c; }
.callouts li { display: flex; gap: 14px; }
.callouts li::before { counter-increment: c; content: counter(c); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .8rem; font-weight: 600; display: grid; place-items: center; margin-top: 2px; }
.callouts strong { display: block; }
.callouts span { color: var(--text-2); font-size: .97rem; }
.sticky { position: sticky; top: 110px; }
@media (max-width: 960px) { .report .grid { grid-template-columns: 1fr; gap: 40px; } .sticky { position: static; } }

/* Numbers */
.box { background: var(--night); color: var(--on-night); }
.box .lead { color: var(--on-night-2); }
.nums { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.nums div { border-top: 1px solid rgba(234,247,243,.14); padding-top: 22px; }
.nums b { display: block; font-weight: 360; font-size: clamp(3rem, 2rem + 3vw, 4.6rem); letter-spacing: -.045em; line-height: 1; color: #4fd1b8; }
.nums span { display: block; margin-top: 12px; color: var(--on-night-2); max-width: 26ch; }
.rel { margin-top: 80px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.rel h3 { color: var(--on-night); }
.rel p { margin-top: 8px; color: var(--on-night-2); font-size: .97rem; }
@media (max-width: 960px) { .nums { grid-template-columns: 1fr 1fr; } .rel { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .nums, .rel { grid-template-columns: 1fr; } }

/* Setup + FAQ */
.two { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; }
.go { margin-top: 36px; list-style: none; display: grid; gap: 28px; counter-reset: g; }
.go li { display: flex; gap: 16px; }
.go li::before { counter-increment: g; content: counter(g); flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--teal-line); background: var(--teal-wash); color: var(--teal-ink); font-weight: 600; font-size: .85rem; display: grid; place-items: center; }
.go p { color: var(--text-2); margin-top: 4px; }
.faq { margin-top: 36px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; background: #fff; transition: border-color .2s; }
.faq details[open] { border-color: #c9d3d0; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--text-2); }
@media (max-width: 960px) { .two { grid-template-columns: 1fr; gap: 56px; } }

/* Demo form */
.demo { background: radial-gradient(900px 500px at 80% 0%, rgba(20,160,138,.28), transparent 70%), var(--night); color: var(--on-night); }
.demo .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.demo .lead { color: var(--on-night-2); }
.demo .alt { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
form.card { background: #fff; color: var(--ink); border-radius: 28px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 16px; box-shadow: 0 40px 100px -40px rgba(0,0,0,.6); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
label small { font-weight: 400; color: var(--text-3); }
input, textarea { width: 100%; border: 1px solid #d6dedb; border-radius: 12px; padding: 12px 14px; font-size: 1rem; background: #fbfcfc; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,160,138,.18); }
textarea { min-height: 96px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-msg { font-size: .92rem; }
.form-msg.err { color: #b42318; }
.done { text-align: center; padding: 24px 8px; }
.done h3 { font-size: 1.5rem; }
.done p { color: var(--text-2); margin-top: 8px; }
.fine { font-size: .8rem; color: var(--text-3); text-align: center; }
@media (max-width: 960px) { .demo .grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: #020d0b; color: var(--on-night-2); padding: 56px 0 28px; font-size: .95rem; }
.footer .grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 1000px) { .footer .grid { grid-template-columns: 1fr 1fr; } }
.footer h2 { font-size: .9rem; color: var(--on-night); font-weight: 600; margin-bottom: 10px; }
.footer a:hover { color: var(--on-night); }
.footer ul { list-style: none; display: grid; gap: 6px; }
.footer .bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(234,247,243,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #6f948b; }
@media (max-width: 760px) { .footer .grid { grid-template-columns: 1fr; } }

/* Lab-type links: home section, inner pages */
.labs { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lab-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 22px; background: var(--paper); border: 1px solid transparent; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.lab-card:hover { border-color: var(--teal-line); background: var(--teal-wash); }
.lab-card h3 { font-size: 1.12rem; }
.lab-card p { color: var(--text-2); font-size: .96rem; line-height: 1.5; }
.lab-card .more { margin-top: auto; padding-top: 6px; color: var(--teal-ink); font-weight: 600; font-size: .92rem; }
.lab-card .more::after { content: "\00a0\2192"; }
.labs-note { margin-top: 28px; max-width: 72ch; color: var(--text-2); }
@media (max-width: 1100px) { .labs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .labs { grid-template-columns: 1fr; } }

/* Inner pages (one per kind of lab) */
.page-hero { color: var(--on-night); padding: clamp(118px, 13vw, 164px) 0 clamp(56px, 7vw, 88px);
  background: radial-gradient(900px 520px at 80% 0%, rgba(20,160,138,.28), transparent 70%), radial-gradient(700px 500px at 0% 100%, rgba(217,168,71,.08), transparent 70%), var(--night); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; font-size: .86rem; color: var(--on-night-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(234,247,243,.35); }
.crumbs a:hover { color: var(--on-night); }
.page-hero h1 { margin-top: 22px; font-weight: 360; font-size: clamp(2.3rem, 1.3rem + 3.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.04em; max-width: 19ch; text-wrap: balance; }
.page-hero .lead { margin-top: 24px; max-width: 60ch; color: var(--on-night-2); }
.page-hero .ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.page { padding: clamp(56px, 7vw, 96px) 0; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 72px; align-items: start; }
.prose { max-width: 70ch; }
.prose h2 { font-weight: 450; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.15; letter-spacing: -.025em; margin: 56px 0 14px; scroll-margin-top: 96px; text-wrap: balance; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text-2); font-size: 1.05rem; }
.prose p + p { margin-top: 14px; }
.prose ul { margin-top: 14px; padding-left: 1.2em; display: grid; gap: 8px; }
.prose li::marker { color: var(--teal); }
.prose ul + p { margin-top: 14px; }
.prose sub, .prose sup { line-height: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose figure { margin: 32px 0; }
.prose figure img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-screen); background: #fff; }
.prose figure.doc img { max-width: 520px; width: 100%; }
.prose figcaption { margin-top: 12px; font-size: .88rem; color: var(--text-3); }
.example { margin: 26px 0; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--teal-line); background: var(--teal-wash); }
.prose .example h3 { margin: 0 0 10px; }
.example table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.example th, .example td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--teal-line); }
.example th { width: 52%; font-weight: 500; color: var(--text-2); }
.example td { color: var(--text); font-weight: 600; }
.example tr:last-child th, .example tr:last-child td { border-bottom: 0; }
.verdict { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .86rem; font-weight: 600; }
.verdict.ok { background: #DDF3E6; color: #11663A; }
.verdict.bad { background: #FDE4E1; color: #A1251A; }
.page-aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.toc { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.toc-title { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.toc ol { list-style: none; margin-top: 12px; display: grid; gap: 9px; font-size: .93rem; line-height: 1.35; }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--teal-ink); }
.aside-cta { border-radius: 18px; padding: 22px; background: var(--night); color: var(--on-night); }
.aside-cta strong { display: block; font-size: 1.05rem; }
.aside-cta p { margin: 6px 0 16px; font-size: .93rem; color: var(--on-night-2); }
.aside-cta .btn { width: 100%; }
.page-faq { background: var(--paper); }
.page-faq .faq { max-width: 880px; }
.page-faq .faq details { background: #fff; }
@media (max-width: 960px) {
  .page-grid { grid-template-columns: 1fr; gap: 40px; }
  .page-aside { position: static; }
  .toc { display: none; }
}
@media (max-width: 520px) { .example { padding: 18px; } .example th { width: 50%; } }

/* Guides: hub, articles, and the links to them from other pages (tools/build_guides.py) */
.crumbs.chev li + li::before { content: "\203A"; }
.crumbs.chev ol { flex-wrap: nowrap; }
.crumbs.chev li { white-space: nowrap; }
.crumbs.chev li[aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--on-night); }
.guide-hero h1 { font-size: clamp(2.05rem, 1.25rem + 2.7vw, 3.7rem); line-height: 1.05; max-width: 22ch; }
.guide-hero .lead { max-width: 62ch; }
a.chip { transition: border-color .2s var(--ease), color .2s var(--ease); }
a.chip:hover { border-color: rgba(234,247,243,.45); color: var(--on-night); }
.guide-meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: .92rem; color: var(--on-night-2); }
.guide-meta span:not(:last-child)::after { content: "\00B7"; margin: 0 12px; opacity: .6; }
.g-tag { display: inline-flex; align-self: flex-start; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; letter-spacing: .01em; background: var(--teal-wash); border: 1px solid var(--teal-line); color: var(--teal-ink); white-space: nowrap; }

.guide-grid { grid-template-columns: minmax(0, 1fr) 280px; }
.guide-body { max-width: 70ch; min-width: 0; font-size: 1.075rem; line-height: 1.75; color: #2E3742; overflow-wrap: break-word; }
.guide-body p, .guide-body ul, .guide-body ol, .guide-body blockquote, .guide-body pre { margin: 0 0 18px; }
.guide-body h2 { font-weight: 450; font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2.1rem); line-height: 1.18; letter-spacing: -.025em; color: var(--ink); margin: 0 0 16px; scroll-margin-top: 96px; text-wrap: balance; }
.guide-body h3 { font-size: 1.2rem; color: var(--ink); margin: 32px 0 10px; scroll-margin-top: 96px; }
.guide-body h4 { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 24px 0 8px; }
.g-sec { margin-top: 56px; }
.g-intro + .g-sec, .g-toc-m + .g-sec { margin-top: 40px; }
.g-intro p:first-child { font-size: 1.16rem; line-height: 1.7; color: var(--ink); }
.guide-body ul, .guide-body ol { padding-left: 1.35em; display: grid; gap: 8px; }
.guide-body li > ul, .guide-body li > ol { margin: 8px 0 0; }
.guide-body li > p { margin: 0 0 8px; }
.guide-body li::marker { color: var(--teal-strong); }
.guide-body ol > li::marker { font-weight: 600; font-variant-numeric: tabular-nums; }
.guide-body strong { color: var(--ink); font-weight: 620; }
.guide-body a { color: var(--teal-ink); text-decoration: underline; text-decoration-color: rgba(7,92,79,.4); text-underline-offset: 3px; }
.guide-body a:hover { text-decoration-color: currentColor; }
.guide-body a.btn { color: var(--ink); text-decoration: none; }
.guide-body blockquote { padding: 2px 0 2px 18px; border-left: 3px solid var(--teal); color: var(--text-2); }
.guide-body blockquote > :last-child { margin-bottom: 0; }
.guide-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.guide-body code { font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--paper); }
.guide-body pre { padding: 16px 18px; border-radius: 14px; background: var(--paper); overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.guide-body pre code { padding: 0; background: none; }
.table-wrap { margin: 24px 0 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.table-wrap:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.5; }
.table-wrap th, .table-wrap td { min-width: 8.5em; padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap .wide { min-width: 15em; }
.table-wrap thead th { background: var(--paper); color: var(--ink); font-weight: 600; font-size: .88rem; }
.table-wrap td:first-child { color: var(--ink); font-weight: 500; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:nth-child(even) { background: #FAFBFB; }
.g-fit { padding: 30px 32px 14px; border-radius: 22px; background: var(--teal-wash); border: 1px solid var(--teal-line); }
.g-qa { padding-top: 6px; border-top: 1px solid var(--line); }
.g-qa + .g-qa { margin-top: 8px; }
.g-qa h3 { margin-top: 18px; }
.g-sources { font-size: .95rem; line-height: 1.65; color: var(--text-2); }
.g-sources a { overflow-wrap: anywhere; }
.g-sources h2 { font-size: 1.4rem; }
/* Mid-article box */
.g-cta { margin: 56px 0 0; padding: 28px 30px; border-radius: 22px; color: var(--on-night); background: radial-gradient(600px 300px at 90% 0%, rgba(20,160,138,.3), transparent 70%), var(--night); }
.guide-body .g-cta p { margin: 0; color: var(--on-night-2); font-size: 1rem; line-height: 1.6; }
.guide-body .g-cta .g-cta-title { margin-bottom: 8px; color: var(--on-night); font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); font-weight: 450; letter-spacing: -.015em; line-height: 1.3; }
.g-cta-actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.guide-body .g-cta-link { color: #9FDED1; font-weight: 600; font-size: .95rem; text-decoration-color: rgba(159,222,209,.4); }
.guide-body .g-cta-link:hover { color: #fff; }
/* On this page: sticky on desktop, a closed list on phones */
.guide-aside { max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.g-toc ol { counter-reset: t; }
.g-toc a { display: block; padding-left: 12px; margin-left: -12px; border-left: 2px solid transparent; transition: color .2s, border-color .2s; }
.g-toc a.on { color: var(--teal-ink); border-left-color: var(--teal); font-weight: 600; }
.g-toc-m { display: none; margin: 0 0 32px; border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; font-size: .97rem; }
.g-toc-m summary { list-style: none; cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; }
.g-toc-m summary::-webkit-details-marker { display: none; }
.g-toc-m summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease); }
.g-toc-m[open] summary::after { transform: rotate(45deg); }
.guide-body .g-toc-m ol { list-style: none; padding: 0 0 16px; margin: 0; gap: 10px; line-height: 1.35; }
.guide-body .g-toc-m a { color: var(--text-2); text-decoration: none; }
@media (max-width: 960px) {
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-aside { display: none; }
  .g-toc-m { display: block; }
}
@media (max-width: 560px) {
  .guide-body { font-size: 1.02rem; line-height: 1.72; }
  .g-sec { margin-top: 44px; }
  .g-fit { padding: 24px 20px 8px; border-radius: 18px; }
  .g-cta { padding: 24px 20px; border-radius: 18px; }
  .table-wrap { margin-inline: -4px; }
}
/* Guide cards: hub, related guides */
.g-cards { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.g-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 22px; background: var(--paper); border: 1px solid transparent; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.g-card:hover { border-color: var(--teal-line); background: var(--teal-wash); }
.g-card h3 { font-size: 1.1rem; line-height: 1.3; text-wrap: balance; }
.g-card p { color: var(--text-2); font-size: .95rem; line-height: 1.5; }
.g-card .g-foot { margin-top: auto; padding-top: 4px; font-size: .85rem; color: var(--text-3); }
.g-all { color: var(--teal-ink); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.g-all::after { content: "\00a0\2192"; }
.g-all:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) { .g-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g-cards { grid-template-columns: 1fr; } .g-card { padding: 20px; border-radius: 18px; } }
.g-related .title { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); }
.g-related-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.g-related { padding-top: 0; }
/* Hub */
.g-jump { list-style: none; margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.g-jump .chip span { color: #6f948b; font-variant-numeric: tabular-nums; }
.g-group + .g-group { margin-top: clamp(48px, 6vw, 72px); }
.g-group { scroll-margin-top: 90px; }
.g-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.g-group-head h2 { font-weight: 450; font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2.1rem); line-height: 1.15; letter-spacing: -.025em; }
.g-group-head h2 a { display: inline-flex; align-items: center; gap: 10px; transition: color .2s; }
.g-group-head h2 a:hover { color: var(--teal-ink); }
.g-arrow { flex: none; color: var(--teal); transition: transform .25s var(--ease); }
.g-group-head h2 a:hover .g-arrow { transform: translateX(3px); }
.g-group-sub { font-size: .92rem; color: var(--text-3); }
.g-group-sub a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; }
/* Home page: guides under "LIMS for your kind of lab" */
.home-guides { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.home-guides-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.home-guides-head h3 { font-size: 1.35rem; }
.home-guides-list { list-style: none; margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.home-guides-list a { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.home-guides-list a:hover { border-color: var(--teal-line); background: var(--teal-wash); }
.hg-title { font-weight: 600; line-height: 1.35; }
@media (max-width: 960px) { .home-guides-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .home-guides-list { grid-template-columns: 1fr; } }
/* Lab pages: Further reading */
.prose .further { margin-top: 56px; padding: 26px 28px; border-radius: 20px; background: var(--paper); }
.prose .further h2 { margin: 0 0 6px; font-size: 1.5rem; }
.prose .further ul { list-style: none; padding: 0; margin: 12px 0 18px; gap: 14px; }
.prose .further li { display: grid; gap: 2px; }
.prose .further li a { font-weight: 600; color: var(--ink); text-decoration-color: var(--teal-line); }
.prose .further li span { font-size: .95rem; color: var(--text-2); }
.prose .further .g-all { text-decoration: none; color: var(--teal-ink); }

/* WhatsApp */
.wa { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(37,211,102,.6); transition: transform .2s var(--ease); }
.wa:hover { transform: scale(1.06); }

/* Entrance (transform only for the headline, so LCP is never delayed) */
.rise { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { transform: translate3d(0, 18px, 0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Pages without a night hero (404): the header is always the solid light version */
.page-plain .header { background: rgba(255,255,255,.92); border-color: var(--line); color: var(--ink); }
