/* ============================================================
   LAB POTATO — styles
   Brief: looks like a funded B2B research platform.
   Reads like it was written at 1am. Both are intentional.
   ============================================================ */

:root {
  --bg: #fcfbf9;
  --bg-tint: #f2f4f8;
  --surface: #ffffff;
  --border: #e6e5e1;
  --border-soft: #efeeea;

  --text: #16181d;
  --text-muted: #5f636d;
  --text-faint: #8e929c;

  --brand-ink: #1d2433;
  --accent: #0a5fd0;
  --accent-hover: #0850b1;
  --accent-soft: #e8f0fc;

  --potato: #c58d52;
  --potato-deep: #9d6a2e;
  --gold: #d9a441;

  --ink: #14161c;
  --ink-2: #1c1f27;
  --ink-soft: #9aa0ae;

  --radius-xl: 22px;
  --radius: 16px;
  --radius-sm: 11px;

  --shadow-sm: 0 1px 2px rgba(22, 24, 29, .05), 0 2px 8px rgba(22, 24, 29, .035);
  --shadow-md: 0 10px 30px -12px rgba(22, 24, 29, .2);
  --shadow-lg: 0 26px 60px -24px rgba(22, 24, 29, .3);

  --header-h: 58px;
  --maxw: 1140px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-tint: #14171d;
    --surface: #181b21;
    --border: #272b33;
    --border-soft: #21242b;

    --text: #f1f2f4;
    --text-muted: #a0a4ad;
    --text-faint: #797d87;

    --brand-ink: #eceef2;
    --accent: #4d9bff;
    --accent-hover: #74b2ff;
    --accent-soft: #14243a;

    --ink: #0a0c10;
    --ink-2: #14171d;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
    --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .65);
    --shadow-lg: 0 26px 60px -24px rgba(0, 0, 0, .75);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  letter-spacing: -0.03em;
  line-height: 1.07;
  margin: 0;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

section { scroll-margin-top: calc(var(--header-h) + 10px); }

/* ---------------- header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.brand-mark {
  width: 27px;
  height: 27px;
  display: block;
  overflow: visible;
  transition: transform .45s var(--ease);
}

.brand-word {
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -0.035em;
  color: var(--brand-ink);
}

.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }

.main-nav { display: flex; gap: 24px; flex: 1; }

.main-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s var(--ease);
}

.main-nav a:hover { color: var(--text); }

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--text-muted);
  transition: background .2s var(--ease), color .2s var(--ease);
}

.icon-link:hover { background: var(--bg-tint); color: var(--text); }

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  text-align: center;
  padding: 48px 0 72px;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: -140px 0 auto;
  height: 660px;
  pointer-events: none;
  background:
    radial-gradient(36% 44% at 16% 30%, rgba(214, 156, 92, .3), transparent 70%),
    radial-gradient(32% 40% at 84% 24%, rgba(110, 130, 245, .24), transparent 70%),
    radial-gradient(38% 38% at 64% 70%, rgba(88, 186, 168, .2), transparent 72%),
    radial-gradient(34% 36% at 28% 76%, rgba(228, 140, 160, .16), transparent 72%);
  filter: blur(16px);
}

@media (prefers-color-scheme: dark) {
  .hero-mesh { opacity: .4; }
}

.hero-inner { position: relative; }

/* --- mascot figure --- */

.mascot-figure {
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Reserved space above the mascot so a caption can never be clipped
   by the hero's overflow, and the layout doesn't jump when it appears. */
.speech-slot {
  min-height: 62px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(92vw, 460px);
  margin-bottom: 6px;
}

.speech {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: 14px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 100%;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.speech::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--surface);
}

.speech.show { opacity: 1; transform: translateY(0); }

/* small floating aside for click-triggered easter eggs elsewhere on the page */
.egg-aside {
  position: fixed;
  z-index: 60;
  max-width: 240px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  pointer-events: none;
}
.egg-aside.show { opacity: 1; transform: translateY(0); }

.mascot {
  display: block;
  width: 204px;
  height: 212px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mascot svg { width: 100%; height: 100%; display: block; overflow: visible; }

.m-body { fill: url(#skin); }
.m-dimple { fill: #8d5c24; opacity: .28; }
.m-eye { fill: #2a2018; transform-box: fill-box; transform-origin: center; }
.m-eyebag { stroke: #2a2018; stroke-width: 2.4; stroke-linecap: round; fill: none; opacity: .34; }
.m-mouth { stroke: #2a2018; stroke-width: 4.5; stroke-linecap: round; fill: none; }
.m-shadow { fill: #2a2018; opacity: .1; }

/* regulation eye protection. Compliance is situational. */
.m-goggles { transform-box: fill-box; transform-origin: center; }
/* stroked ring, not a filled block — the eyes have to read through the lens */
.m-goggle-frame { fill: none; stroke: #3f4b57; stroke-width: 10; }
.m-lens { fill: #cfe6f2; fill-opacity: .3; }
.m-strap { stroke: #39444e; stroke-width: 14; stroke-linecap: round; fill: none; }
.m-vent { fill: #2b343d; }

/* wind up, then launch them across the room */
@keyframes goggles-yeet {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  16%  { transform: translate(-10px, 7px) rotate(-10deg); opacity: 1; }
  100% { transform: translate(240px, -160px) rotate(700deg); opacity: 0; }
}
/* and back on, innocently, before anyone notices */
@keyframes goggles-snap {
  0%   { transform: translate(140px, -100px) rotate(300deg); opacity: 0; }
  55%  { transform: translate(0, 0) rotate(0deg) scale(1.1); opacity: 1; }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
}
.m-goggles.thrown { animation: goggles-yeet .85s cubic-bezier(.32,.72,.48,1) forwards; }
.m-goggles.snap   { animation: goggles-snap .5s var(--ease); }

.m-coat { fill: #fbfcfe; stroke: #ccd4e0; stroke-width: 1.8; }
.m-lapel { stroke: #ccd4e0; stroke-width: 2; fill: none; stroke-linecap: round; }
.m-pocket { fill: none; stroke: #ccd4e0; stroke-width: 1.8; }
.m-pen { stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.m-button { fill: #ccd4e0; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-7px) rotate(-1deg); }
}
@keyframes shadowBreathe {
  0%, 100% { transform: scaleX(1); opacity: .1; }
  50%      { transform: scaleX(.9); opacity: .07; }
}
@keyframes blink {
  0%, 93%, 100% { transform: scaleY(1); }
  95%, 96.5%    { transform: scaleY(.08); }
}
@keyframes hop {
  0%   { transform: translateY(0) scale(1, 1); }
  28%  { transform: translateY(-24px) scale(.95, 1.06); }
  58%  { transform: translateY(0) scale(1.07, .92); }
  78%  { transform: translateY(-6px) scale(.99, 1.01); }
  100% { transform: translateY(0) scale(1, 1); }
}

.m-float { animation: bob 5.2s ease-in-out infinite; }
.m-shadow { transform-box: fill-box; transform-origin: center; animation: shadowBreathe 5.2s ease-in-out infinite; }
.m-eye { animation: blink 6s ease-in-out infinite; }

.mascot:hover .m-float { animation-duration: 3s; }
.mascot.hop .m-float { animation: hop .72s var(--ease); }

.mascot-caption {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-faint);
  max-width: 54ch;
  text-wrap: balance;
}

.fig-label {
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .01em;
  margin-right: 5px;
}

/* --- hero copy --- */

.eyebrow {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--potato-deep);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(36px, 6.4vw, 60px);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-lede {
  font-size: clamp(16px, 2.1vw, 18.5px);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 54ch;
  margin: 0 auto 30px;
}

.hero-actions {
  display: flex;
  gap: 11px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 570;
  border-radius: 10px;
  padding: 11px 20px;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 90%, transparent);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text-faint); transform: translateY(-1px); }

.hero-foot {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ---------------- trust strip ---------------- */

.trust-strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
  padding: 26px 0;
}

.trust-label {
  text-align: center;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 16px;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 38px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-logos li {
  font-size: 14px;
  font-weight: 640;
  letter-spacing: -0.015em;
  color: var(--text-faint);
  opacity: .82;
  cursor: pointer;
  transition: opacity .25s var(--ease), color .25s var(--ease);
}

.trust-logos li:hover { opacity: 1; color: var(--text-muted); }
.trust-logos li span { font-weight: 450; font-style: italic; }

/* ---------------- sections ---------------- */

.section { padding: 82px 0; }

.section-tint {
  background: var(--bg-tint);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-head {
  text-align: center;
  max-width: 58ch;
  margin: 0 auto 44px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 690;
  margin-bottom: 13px;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}

/* ---------------- tool cards ---------------- */

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.tool-card {
  --card: var(--accent);
  flex: 0 1 calc((100% - 54px) / 4);
  min-width: 0;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.tool-card::before {
  content: "";
  display: block;
  height: 4px;
  margin: 0 -24px 22px;
  background: linear-gradient(90deg, var(--card), color-mix(in srgb, var(--card) 40%, transparent));
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--card) 42%, var(--border));
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--card) 12%, transparent);
  color: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s var(--ease), background .3s var(--ease);
}

.tool-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-card:hover .tool-icon {
  transform: rotate(-6deg) scale(1.06);
  background: color-mix(in srgb, var(--card) 20%, transparent);
}

.tool-card h3 { font-size: 17.5px; font-weight: 660; }

.tool-tagline {
  margin: -8px 0 0;
  font-size: 12.5px;
  font-weight: 620;
  color: var(--card);
}

.tool-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.52;
  color: var(--text-muted);
}

/* What each tool can do: short checklist, cascades in when the card reveals */
.tool-features {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px dashed color-mix(in srgb, var(--card) 28%, var(--border));
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.tool-features li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  transition-delay: calc(var(--i) * 70ms + 180ms);
}
.tool-card.in .tool-features li { opacity: 1; transform: none; }
.tool-features svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--card);
  background: color-mix(in srgb, var(--card) 12%, transparent);
  border-radius: 999px;
  padding: 2px;
  width: 18px;
  height: 18px;
  transition: transform .3s var(--ease);
}
.tool-features li:hover svg { transform: scale(1.18) rotate(-8deg); }

/* "New in vX": what the latest release added, set apart from the key features */
.tool-new {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 11px 13px 12px;
  background: color-mix(in srgb, var(--card) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--card) 32%, transparent);
}
.tool-new::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, color-mix(in srgb, var(--card) 18%, transparent) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.tool-card.in .tool-new::after { animation: newSweep 1.4s .9s var(--ease) both; }
.tool-card:hover .tool-new::after { animation: newSweep 1.1s var(--ease); }
@keyframes newSweep { to { transform: translateX(120%); } }
.tool-new-h {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--card);
  margin-bottom: 6px;
}
.tool-new-h svg { animation: newTwinkle 2.6s ease-in-out infinite; }
@keyframes newTwinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.2) rotate(18deg); } }
.tool-new ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.tool-new li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  line-height: 1.42;
  font-weight: 560;
  color: var(--text);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  transition-delay: calc(var(--i) * 70ms + 180ms);
}
.tool-new li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--card);
}
.tool-card.in .tool-new li { opacity: 1; transform: none; }

.release-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 560;
  color: var(--text-muted);
  white-space: nowrap;
}
.release-date.fresh { color: var(--card); font-weight: 650; }
.new-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--card) 55%, transparent);
  animation: newPulse 1.8s ease-out infinite;
}
@keyframes newPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--card) 55%, transparent); }
  80%, 100% { box-shadow: 0 0 0 8px transparent; }
}

.tool-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 620;
  color: #fff;
  background: var(--card);
  border-radius: 10px;
  padding: 10px 18px;
  transition: filter .2s var(--ease), transform .2s var(--ease);
}

.tool-open:hover { filter: brightness(1.08); }
.tool-open:active { transform: scale(.98); }
.tool-open svg { transition: transform .25s var(--ease); }
.tool-open:hover svg { transform: translate(2px, -2px); }

.tool-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.version-pill {
  font-size: 11px;
  font-weight: 660;
  letter-spacing: .01em;
  color: var(--card);
  background: color-mix(in srgb, var(--card) 12%, transparent);
  border-radius: 6px;
  padding: 3.5px 9px;
}

.versions-detail { margin-top: -4px; }

.versions-detail summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-faint);
  list-style: none;
  transition: color .2s var(--ease);
  user-select: none;
}

.versions-detail summary:hover { color: var(--text-muted); }
.versions-detail summary::-webkit-details-marker { display: none; }
.versions-detail summary::after { content: " ›"; display: inline-block; transition: transform .25s var(--ease); }
.versions-detail[open] summary::after { transform: rotate(90deg); }

.versions-detail ul {
  margin: 10px 0 2px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.versions-detail li a {
  display: inline-block;
  font-size: 12px;
  font-weight: 620;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--card) 8%, transparent);
  border-radius: 7px;
  padding: 5px 10px;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.versions-detail li a:hover { background: color-mix(in srgb, var(--card) 18%, transparent); color: var(--card); }

/* ---------------- testimonials ---------------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.quote-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.quote-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.quote-stars {
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--gold);
}

.quote-card blockquote {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  letter-spacing: -0.014em;
  color: var(--text);
  flex: 1;
}

.quote-card blockquote::before { content: "\201C"; }
.quote-card blockquote::after { content: "\201D"; }

.quote-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border-soft);
  padding-top: 13px;
}

.quote-card figcaption strong { font-size: 13.5px; font-weight: 640; }
.quote-card figcaption span { font-size: 12.5px; color: var(--text-faint); }

/* ---------------- spec table ---------------- */

.specs-wrap { max-width: 880px; }

.spec-table {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(150px, 38%) 1fr;
  gap: 16px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--border-soft);
  transition: background .2s var(--ease);
}

.spec-row:last-child { border-bottom: none; }
.spec-row:hover { background: color-mix(in srgb, var(--bg-tint) 60%, transparent); }
.spec-row { cursor: pointer; }

.spec-row dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.spec-row dd {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.spec-note {
  text-align: center;
  margin: 20px 0 0;
  font-size: 12.5px;
  color: var(--text-faint);
  font-style: italic;
}

/* ---------------- feedback ---------------- */

.feedback-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
}

.feedback-card {
  --card: var(--accent);
  flex: 1 1 240px;
  max-width: 320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 580;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.feedback-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--card) 50%, var(--border));
  box-shadow: var(--shadow-md);
}

.feedback-card .bubble {
  flex-shrink: 0;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--card) 12%, transparent);
  color: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s var(--ease);
}

.feedback-card:hover .bubble { transform: rotate(-8deg) scale(1.1); }

.feedback-general {
  text-align: center;
  margin: 28px 0 0;
  font-size: 14.5px;
  color: var(--text-muted);
}

.feedback-general a { color: var(--accent); font-weight: 600; }
.feedback-general a:hover { text-decoration: underline; }

/* ---------------- about ---------------- */

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.about-card {
  --card: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--card) 40%, var(--border));
}

.about-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--card) 12%, transparent);
  color: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.about-icon svg { width: 20px; height: 20px; }

.about-card h3 { font-size: 16px; font-weight: 660; margin-bottom: 8px; }

.about-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------------- footer ---------------- */

.site-footer {
  background: var(--ink);
  color: #f1f2f4;
  padding: 54px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }

.footer-about h3 { font-size: 20px; font-weight: 660; margin-bottom: 10px; }
.footer-about p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--ink-soft); max-width: 48ch; }
.footer-about-links a { color: #f1f2f4; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.footer-about-links a:hover { text-decoration-color: currentColor; }

.footer-id {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.footer-mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  overflow: visible;
  margin-top: 4px;
}

.footer-id h3 { font-size: 20px; font-weight: 660; margin-bottom: 5px; }

.footer-role {
  margin: 0 0 13px;
  font-size: 13.5px;
  font-weight: 560;
  color: var(--potato);
}

.footer-blurb {
  margin: 0 0 17px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 54ch;
}

.footer-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.footer-mail,
.footer-support,
.footer-gh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  padding: 9px 16px;
  transition: transform .2s var(--ease), filter .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.footer-mail { color: var(--ink); background: var(--potato); }
.footer-mail:hover { transform: translateY(-2px); filter: brightness(1.07); }

.footer-support {
  color: var(--gold);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
}
.footer-support:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}

.footer-gh {
  color: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, .14);
  font-weight: 540;
}
.footer-gh:hover { color: #fff; border-color: rgba(255, 255, 255, .34); }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.footer-wink { font-style: italic; }

/* ---------------- scroll reveal ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------------- easter eggs ---------------- */

/* Compliance rows and trust-strip logos are quietly clickable — same
   affordance language as the header nav (cursor + a subtle brighten). */
.spec-row { cursor: pointer; }
.trust-logos li { cursor: pointer; }

/* Footer mascot, small and separately interactive from the hero one. */
.footer-spud {
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease);
}

.footer-spud:hover { transform: rotate(-6deg) scale(1.08); }
.footer-spud:active { transform: rotate(-3deg) scale(.95); }

@keyframes footer-nod {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-9deg); }
  60% { transform: rotate(7deg); }
}
.footer-spud.nod { animation: footer-nod .5s var(--ease); }

/* A floating toast for every click-driven aside that isn't the hero
   mascot's own speech bubble (which stays anchored above it). Fixed to
   the viewport so it reads the same regardless of scroll position. */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  z-index: 80;
  max-width: min(86vw, 380px);
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1.45;
  padding: 12px 18px;
  border-radius: 980px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  text-align: center;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Confetti spawned by the hidden "potato" keyword easter egg. */
.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -30px;
  width: 22px;
  height: 22px;
  color: var(--potato);
  opacity: 0;
  animation: confetti-fall 1.8s ease-in forwards;
}

@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(360deg); opacity: 0; }
}

/* ---------------- responsive ---------------- */

@media (max-width: 960px) {
  .tool-card { flex-basis: calc((100% - 18px) / 2); }
}
@media (max-width: 560px) {
  .tool-card { flex-basis: 100%; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .hero { padding: 32px 0 56px; }
  .mascot { width: 156px; height: 163px; }
  .main-nav { gap: 16px; }
  .spec-row { grid-template-columns: 1fr; gap: 3px; padding: 13px 18px; }
  .footer-id { gap: 16px; }
  .footer-mark { width: 36px; height: 36px; }
  .trust-logos { gap: 10px 22px; }
  .trust-logos li { font-size: 12.5px; }
}

@media (max-width: 460px) {
  .main-nav a:nth-child(3), .main-nav a:nth-child(4) { display: none; }
  .main-nav { gap: 12px; }
  .speech { font-size: 13px; }
}

/* ---------------- motion preferences ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .tool-features li, .tool-new li { opacity: 1; transform: none; }
}

/* ============================================================
   2026-10 refresh: cooler, calmer palette; a proper dark theme
   with a manual switch; the tools area uses most of the screen
   with wide, short cards.
   ============================================================ */

:root {
  --bg: #f6f7f9;
  --bg-tint: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --border: #e1e5eb;
  --border-soft: #eaedf1;
  --text: #111722;
  --text-muted: #4a5464;
  --text-faint: #7a8392;
  --brand-ink: #141a26;
  --accent: #2a62cc;
  --accent-hover: #2253b0;
  --accent-soft: #e8eefa;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
  --shadow-md: 0 8px 24px -12px rgba(16, 24, 40, .18);
  --shadow-lg: 0 18px 44px -20px rgba(16, 24, 40, .26);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1016;
    --bg-tint: #10151d;
    --surface: #141a23;
    --surface-2: #18202b;
    --border: #253041;
    --border-soft: #1d2531;
    --text: #e9eef5;
    --text-muted: #a9b3c2;
    --text-faint: #7f8a9b;
    --brand-ink: #eef2f8;
    --accent: #6aa5ff;
    --accent-hover: #8bb9ff;
    --accent-soft: #15233a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 10px 28px -12px rgba(0, 0, 0, .7);
    --shadow-lg: 0 22px 50px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1016;
  --bg-tint: #10151d;
  --surface: #141a23;
  --surface-2: #18202b;
  --border: #253041;
  --border-soft: #1d2531;
  --text: #e9eef5;
  --text-muted: #a9b3c2;
  --text-faint: #7f8a9b;
  --brand-ink: #eef2f8;
  --accent: #6aa5ff;
  --accent-hover: #8bb9ff;
  --accent-soft: #15233a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 10px 28px -12px rgba(0, 0, 0, .7);
  --shadow-lg: 0 22px 50px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="light"] .hero-mesh { opacity: .8; }
:root[data-theme="dark"] .hero-mesh { opacity: .32; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-mesh { opacity: .32; } }
.hero-mesh { opacity: .8; }

/* theme switch in the header */
.theme-switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.theme-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }

/* ---------- tools: wide area, two columns of wide, short cards ---------- */
.wrap-wide { max-width: none; width: min(88vw, 1720px); padding: 0; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.tool-card {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 28px;
  padding: 24px 26px 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.tool-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  height: auto;
  margin: 0;
  background: var(--card);
  opacity: .9;
}
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tc-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tc-head { display: flex; align-items: center; gap: 14px; }
.tc-title { min-width: 0; }
.tool-icon { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.tool-card h3 { font-size: 19px; font-weight: 680; letter-spacing: -0.02em; }
.tool-tagline { margin: 3px 0 0; font-size: 13px; font-weight: 600; color: var(--on-card); }
.tool-desc { font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }
.tc-foot { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.tool-open { padding: 9px 16px; border-radius: 10px; font-size: 14px; }
.tool-meta { gap: 10px; justify-content: flex-start; }
.version-pill { color: var(--on-card); background: color-mix(in srgb, var(--card) 12%, transparent); }
.release-date.fresh { color: var(--on-card); }
.versions-detail { margin-top: 0; }
.tc-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding-left: 26px;
  border-left: 1px solid var(--border-soft);
}
.tool-features { border-top: 0; padding: 0; flex: none; gap: 8px; }
.tool-features li { font-size: 14px; color: var(--text); }
.tool-features svg { color: var(--on-card); }
/* "New in vN": flat and quiet, an accent rule on the left instead of a shine */
.tool-new {
  margin-top: auto;
  background: color-mix(in srgb, var(--card) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--card) 20%, var(--border));
  border-left: 3px solid var(--card);
  border-radius: 10px;
  padding: 10px 14px 11px;
}
.tool-new::after { display: none; }
.tool-new-h { color: var(--on-card); font-size: 11px; }
.tool-new-h svg { animation: none; }
.tool-new li { font-size: 13.5px; font-weight: 550; }
.tool-new li::before { background: var(--on-card); }

/* calmer type and spacing for the rest of the page */
.section-head { margin-bottom: 36px; }
.section-head h2 { font-weight: 700; letter-spacing: -0.028em; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); }

@media (max-width: 1100px) {
  .tools-grid { grid-template-columns: minmax(0, 1fr); }
  .wrap-wide { width: min(92vw, 860px); }
}
@media (max-width: 640px) {
  .wrap-wide { width: auto; padding: 0 16px; }
  .tool-card { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 20px 18px 18px; }
  .tc-side { padding-left: 0; border-left: 0; padding-top: 16px; border-top: 1px solid var(--border-soft); }
  .theme-switch button { width: 26px; }
}

/* each card's own colour, darkened a touch for text in light mode and lifted in dark mode */
.tool-card, .feedback-card { --on-card: color-mix(in srgb, var(--card) 86%, #000); }
:root[data-theme="dark"] .tool-card, :root[data-theme="dark"] .feedback-card { --on-card: color-mix(in srgb, var(--card) 60%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tool-card, :root:not([data-theme="light"]) .feedback-card { --on-card: color-mix(in srgb, var(--card) 60%, #fff); } }
/* header lines up with the wide tools area */
@media (min-width: 1101px) { .site-header .wrap { max-width: none; width: min(88vw, 1720px); padding: 0; } }
/* phones: the nav scrolls sideways inside the bar instead of pushing the page wider */
@media (max-width: 640px) {
  .site-header .wrap { gap: 12px; padding: 0 14px; }
  .main-nav { flex: 1 1 auto; min-width: 0; gap: 16px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; }
  .brand-word { display: none; }
  .icon-link { flex: none; }
  .theme-switch { flex: none; }
}


.quick + .section { padding-top: 28px; }

/* ---------- quick launch: app icons like a phone home screen ---------- */
.quick { padding: 4px 0 36px; scroll-margin-top: calc(var(--header-h) + 10px); }
.quick-label { margin: 0 0 18px; font-size: 11px; font-weight: 680; letter-spacing: .11em; text-transform: uppercase; color: var(--text-faint); text-align: center; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, 112px); justify-content: center; gap: 22px 18px; }
.app { --on-card: color-mix(in srgb, var(--card) 86%, #000); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; outline: none; }
.app-icon {
  width: 68px; height: 68px; border-radius: 22.5%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
  color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--card) 72%, #fff) 0%, var(--card) 55%, color-mix(in srgb, var(--card) 82%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 6px 14px -6px color-mix(in srgb, var(--card) 70%, transparent), 0 2px 4px rgba(16, 24, 40, .12);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .2s var(--ease);
}
.app-icon svg { width: 34px; height: 34px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-name { font-size: 13px; font-weight: 620; line-height: 1.25; color: var(--text); }
.app-cap { font-size: 11px; line-height: 1.3; color: var(--text-faint); }
.app:hover .app-icon { transform: translateY(-3px) scale(1.04); filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 12px 22px -8px color-mix(in srgb, var(--card) 75%, transparent), 0 3px 6px rgba(16,24,40,.14); }
.app:active .app-icon { transform: scale(.94); }
.app:focus-visible .app-icon { outline: 2px solid var(--accent); outline-offset: 3px; }
:root[data-theme="dark"] .app-icon { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 16px -6px rgba(0,0,0,.8); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-icon { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 16px -6px rgba(0,0,0,.8); } }
@media (max-width: 640px) {
  .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 8px; }
  .app-icon { width: 58px; height: 58px; }
  .app-icon svg { width: 28px; height: 28px; }
  .app-name { font-size: 11.5px; }
  .app-cap { display: none; }
}

/* ---------- platform cards: at least three to a row ---------- */
.tools-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 18px; }
.tool-card { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px 22px 20px; }
.tc-side { padding-left: 0; border-left: 0; padding-top: 14px; border-top: 1px solid var(--border-soft); gap: 12px; }
.tool-desc { font-size: 14px; }
.tool-features li { font-size: 13.5px; }
@media (min-width: 1101px) { .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1700px) { .tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wrap-wide { width: min(94vw, 1000px); } }
@media (max-width: 700px) { .tools-grid { grid-template-columns: minmax(0, 1fr); } }
.tool-card { display: flex; flex-direction: column; }
.tc-main, .tc-side { display: contents; }
.tc-head { order: 1; }
.tool-desc { order: 2; }
.tool-features { order: 3; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.tool-new { order: 4; margin-top: 0; }
.tc-foot { order: 5; margin-top: auto; padding-top: 4px; }
.versions-detail { order: 6; }

/* ---------- app icons, refined ---------- */
.quick-grid { grid-template-columns: repeat(auto-fit, 116px); gap: 26px 20px; }
.app-icon {
  width: 66px; height: 66px; border-radius: 23%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 80%, #fff) 0%, var(--card) 62%, color-mix(in srgb, var(--card) 88%, #000) 100%);
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(16, 24, 40, .14), 0 6px 14px -8px rgba(16, 24, 40, .35);
  margin-bottom: 8px;
}
.app-icon svg { width: 46px; height: 46px; stroke-width: 0; filter: drop-shadow(0 .5px .5px rgba(0, 0, 0, .12)); }
.app-icon svg [fill="none"] { fill: none; }
.app:hover .app-icon { transform: translateY(-3px); filter: none; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.28), 0 2px 4px rgba(16,24,40,.14), 0 12px 22px -10px rgba(16,24,40,.42); }
:root[data-theme="dark"] .app-icon { box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.2), 0 8px 18px -8px rgba(0,0,0,.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-icon { box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.2), 0 8px 18px -8px rgba(0,0,0,.9); } }
.app-name { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
@media (max-width: 640px) { .app-icon { width: 60px; height: 60px; } .app-icon svg { width: 42px; height: 42px; } .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 6px; } }

/* the whole platform card launches its tool */
.tool-card { cursor: pointer; }
.tool-card .versions-detail, .tool-card .versions-detail * { cursor: auto; }
.tool-card .versions-detail summary { cursor: pointer; }
.tool-card:hover .tool-open { filter: brightness(1.08); }
.tool-card:hover .tool-open svg { transform: translate(2px, -2px); }
.app-icon svg { width: 58px; height: 58px; }
@media (max-width: 640px) { .app-icon svg { width: 52px; height: 52px; } }

/* the platform cards wear the same app icon as Quick launch, a size smaller */
.tool-card .tool-icon.app-icon { width: 48px; height: 48px; margin: 0; border-radius: 23%; color: #fff; }
.tool-card .tool-icon.app-icon svg { width: 42px; height: 42px; }
.tool-card:hover .tool-icon.app-icon { transform: none; }


/* ---------- Lab Potato house style (from Lab Entry): its colours and its system UI font ---------- */
:root{--bg:#edf1f6;--bg-tint:#e3e8ef;--surface:#ffffff;--border:#dce2eb;--border-soft:#dce2eb;--text:#121925;--text-muted:#2b3443;--text-faint:#566174;--brand-ink:#121925;--accent:#1f66cc;--accent-hover:#1a56ad;--accent-soft:#e6effb;--lp-ui:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Inter Variable",system-ui,"Segoe UI",Roboto,sans-serif;--lp-serif:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Inter Variable",system-ui,"Segoe UI",Roboto,sans-serif}
@media (prefers-color-scheme:dark){:root{--bg:#0e131a;--bg-tint:#222a36;--surface:#171d26;--border:#2a3442;--border-soft:#2a3442;--text:#eef2f7;--text-muted:#cfd7e3;--text-faint:#9aa7b9;--brand-ink:#eef2f7;--accent:#6aa8ff;--accent-hover:#8dbcff;--accent-soft:rgba(106,168,255,.16);--lp-ui:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Inter Variable",system-ui,"Segoe UI",Roboto,sans-serif;--lp-serif:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Inter Variable",system-ui,"Segoe UI",Roboto,sans-serif}}
body,button,input,select,textarea{font-family:var(--lp-ui)}
.section-head h2,.hero h1,.tool-name,.flow-node b{font-family:var(--lp-serif);letter-spacing:-.015em}

/* explicit theme choice from the page's own switch still wins over the system setting */
:root[data-theme="light"]{--bg:#edf1f6;--bg-tint:#e3e8ef;--surface:#fff;--border:#dce2eb;--border-soft:#dce2eb;--text:#121925;--text-muted:#2b3443;--text-faint:#566174;--brand-ink:#121925;--accent:#1f66cc;--accent-hover:#1a56ad;--accent-soft:#e6effb}
:root[data-theme="dark"]{--bg:#0e131a;--bg-tint:#222a36;--surface:#171d26;--border:#2a3442;--border-soft:#2a3442;--text:#eef2f7;--text-muted:#cfd7e3;--text-faint:#9aa7b9;--brand-ink:#eef2f7;--accent:#6aa8ff;--accent-hover:#8dbcff;--accent-soft:rgba(106,168,255,.16)}
body{font-family:var(--lp-ui)}
.hero h1{letter-spacing:-.025em}

/* ===================== INTEGRATIONS: how the tools hand results to each other ===================== */
.flow{display:grid;grid-template-columns:1fr auto 1.3fr auto 1fr;align-items:center;gap:12px;margin:8px auto 0;max-width:1120px}
.flow-col{display:grid;gap:10px}
.flow-node{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:14px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-sm);color:inherit;text-decoration:none;transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
.flow-node:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);text-decoration:none}
.flow-node .app-icon{width:38px;height:38px;flex:none;border-radius:10px;display:grid;place-items:center}
.flow-node .app-icon svg{width:30px;height:30px}
.flow-node b{display:block;font-size:15px;line-height:1.2}.flow-node small{display:block;color:var(--text-faint);font-size:12px;line-height:1.35;margin-top:2px}
.flow-arrow{font-size:22px;color:var(--text-faint);text-align:center}
.flow-arrow small{display:block;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;margin-top:2px}
.flow-room{border-style:dashed}
.flow-notes{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:1120px;margin:22px auto 0}
.flow-notes div{padding:12px 14px;border-radius:12px;background:var(--bg-tint);font-size:13.5px;line-height:1.5;color:var(--text-muted)}
.flow-notes b{color:var(--text)}
@media (max-width:980px){.flow{grid-template-columns:1fr}.flow-arrow{transform:rotate(90deg);height:22px}.flow-arrow small{display:none}.flow-notes{grid-template-columns:1fr}}
/* shorter cards: the "New in" box is one line until opened */
details.tool-new>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:6px}
details.tool-new>summary::-webkit-details-marker{display:none}
details.tool-new>summary::after{content:"▸";margin-left:auto;font-size:12px;opacity:.7;transition:transform .2s var(--ease)}
details.tool-new[open]>summary::after{transform:rotate(90deg)}
details.tool-new:not([open]){padding-bottom:0}
details.tool-new>ul{margin-top:8px}
.tool-new-n{font-weight:500;opacity:.75;text-transform:none;letter-spacing:0;font-size:11.5px}


/* ---------------- usage (end of the homepage) ---------------- */
:root{--use-quiet:#c9ccd3;--use-none:#e7e9ee;--use-ramp:#cde2fb #86b6ef #3987e5 #1c5cab #0d366b}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--use-quiet:#4a505b;--use-none:#2a2e35;--use-ramp:#184f95 #256abf #3987e5 #6da7ec #b7d3f6}}
:root[data-theme="dark"]{--use-quiet:#4a505b;--use-none:#2a2e35;--use-ramp:#184f95 #256abf #3987e5 #6da7ec #b7d3f6}
#usage .wrap{max-width:1100px}
.use-tools{display:flex;justify-content:center;margin:0 0 18px}
.use-seg{display:inline-flex;background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:3px;gap:2px}
.use-seg button{border:0;background:none;font:inherit;font-size:14px;font-weight:600;color:var(--text-muted);padding:7px 16px;border-radius:999px;cursor:pointer}
.use-seg button:hover{color:var(--text)}.use-seg button[aria-pressed="true"]{background:var(--accent);color:#fff}
.use-note{margin:0 auto 14px;padding:12px 16px;border-radius:12px;background:var(--surface);border:1px solid var(--border);color:var(--text-muted);font-size:14px;line-height:1.5}
.use-note b{color:var(--text)}
.use-retry{margin-left:8px;border:1px solid var(--border);background:var(--bg-tint);border-radius:8px;padding:4px 10px;font:inherit;font-size:13px;cursor:pointer;color:var(--text)}
#usage.loading .use-panel,#usage.loading .use-list{opacity:.5;transition:opacity .2s}
#usage.use-off .use-panel:not(.use-geo):not(.use-src){display:none}
.use-panel{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:16px 18px;margin:0 0 12px}
.use-panel-h{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:0 0 8px}
.use-panel h3{margin:0;font-size:15px;font-weight:650}
.use-sub{font-size:13px;color:var(--text-muted)}
.use-legend{display:flex;flex-wrap:wrap;gap:4px}
.use-legend button{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);background:var(--bg);color:var(--text-muted);font:inherit;font-size:12.5px;font-weight:550;padding:4px 10px;border-radius:999px;cursor:pointer}
.use-legend button i{width:9px;height:9px;border-radius:50%}
.use-legend button[aria-pressed="true"]{color:var(--text);border-color:var(--text-faint);background:var(--surface)}
.use-chart{position:relative}
.use-svg{display:block;width:100%;height:auto;overflow:visible}
.use-ax{font-size:12px;fill:var(--text-faint);font-variant-numeric:tabular-nums}
.use-dl{font-size:12.5px;font-weight:600;fill:var(--text)}
.use-tip{position:absolute;z-index:3;pointer-events:none;min-width:150px;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px rgba(20,22,28,.12);padding:8px 10px;font-size:12.5px;color:var(--text)}
.use-tip b{display:block;margin-bottom:4px}.use-tip div{display:flex;align-items:center;gap:6px;color:var(--text-muted)}.use-tip div span{margin-left:auto;padding-left:12px;color:var(--text);font-variant-numeric:tabular-nums;font-weight:600}
.use-tip i{width:8px;height:8px;border-radius:50%;flex:none}.use-tip .use-tip-hi{color:var(--text);font-weight:600}
.use-list{display:flex;flex-direction:column;gap:8px;margin:0 0 12px}
.use-row{display:grid;grid-template-columns:22px 44px minmax(150px,1.2fr) minmax(70px,1fr) 84px 160px 78px;align-items:center;gap:14px;padding:10px 14px;background:var(--surface);border:1px solid var(--border);border-radius:14px;color:inherit;text-decoration:none;transition:border-color .15s,transform .15s,box-shadow .15s}
.use-row:hover,.use-row.on{border-color:color-mix(in srgb,var(--card) 55%,var(--border));box-shadow:0 6px 18px rgba(20,22,28,.07)}
.use-row:hover{transform:translateY(-1px)}
.use-rank{font-weight:700;color:var(--text-faint);text-align:center;font-variant-numeric:tabular-nums}
.use-row .use-icon{width:44px;height:44px;border-radius:12px;background:var(--card);display:grid;place-items:center;color:#fff}
.use-row .use-icon svg{width:30px;height:30px}
.use-name{display:flex;flex-direction:column;min-width:0}.use-name b{font-size:15px}.use-name small{color:var(--text-muted);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.use-bar{height:8px;border-radius:999px;background:var(--bg-tint);overflow:hidden}.use-bar i{display:block;height:100%;border-radius:inherit;background:var(--card)}
.use-all,.use-now{display:flex;flex-direction:column;align-items:flex-end;font-variant-numeric:tabular-nums}.use-all b{font-size:18px}
.use-all small,.use-now small{font-size:11px;color:var(--text-faint);font-weight:500;white-space:nowrap}
.use-now b{font-weight:650}.use-now.up b::before{content:"▲ ";font-size:10px;color:#139171}.use-now.down b::before{content:"▼ ";font-size:10px;color:#c94b6d}
.use-spark{width:100%;height:52px;display:block;overflow:visible}
.use-sx{font-size:9.5px;fill:var(--text-faint);font-variant-numeric:tabular-nums}
.use-demo{display:grid;gap:12px}
.use-geo-body{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(220px,1fr);gap:18px;align-items:start}
.use-mapbox{position:relative}
.use-map{display:block;width:100%;height:auto}
.use-map path{stroke:var(--surface);stroke-width:.6}.use-map path:hover{stroke:var(--text);stroke-width:1}
.use-map .use-dot{stroke:var(--surface);stroke-width:1.5}.use-map .use-dot:hover{stroke:var(--text)}
.use-key{display:flex;align-items:center;gap:4px;font-size:11.5px;color:var(--text-faint);margin-top:6px}
.use-key i{width:22px;height:8px;border-radius:2px;display:inline-block}.use-key-none{margin-left:12px;display:inline-flex;align-items:center;gap:4px}
.use-bl{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.use-bl li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 10px;font-size:13px}
.use-bl li .use-bl-b{grid-column:1/-1}
.use-bl-n{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text)}
.use-bl-b{height:6px;border-radius:999px;background:var(--bg-tint);overflow:hidden}.use-bl-b i{display:block;height:100%;border-radius:inherit;background:var(--accent)}
.use-bl-v{text-align:right;color:var(--text-muted);font-variant-numeric:tabular-nums}
.use-src-body{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.use-src h4{margin:0 0 8px;font-size:12px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:var(--text-faint)}
.use-bl-n small{color:var(--text-faint);font-size:11.5px;margin-left:4px}
@media (max-width:760px){.use-src-body{grid-template-columns:1fr;gap:16px}}
.use-wait{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);margin:0;padding:7px 14px;border-radius:999px;background:var(--surface);border:1px solid var(--border,#d9dee6);color:var(--text-muted);font-size:13px;white-space:nowrap;box-shadow:0 2px 8px rgba(15,23,42,.08);pointer-events:none}
.use-empty{margin:6px 0;color:var(--text-muted);font-size:13.5px}
.use-foot{text-align:center;color:var(--text-muted);font-size:13px;margin:16px auto 0;max-width:760px}
.use-debug{margin:14px auto 0;font-size:12px;color:var(--text-muted)}
.use-debug ol{max-height:260px;overflow:auto;padding-left:22px}.use-debug li.bad{color:#c94b6d}.use-debug code{font-size:11.5px}
@media (max-width:860px){.use-geo-body{grid-template-columns:1fr}}
@media (max-width:760px){.use-row{grid-template-columns:22px 40px 1fr 70px;grid-template-areas:"r i n a" "s s s t";row-gap:10px}
  .use-rank{grid-area:r}.use-icon{grid-area:i}.use-name{grid-area:n}.use-all{grid-area:a}.use-bar{display:none}.use-spark{grid-area:s}.use-now{grid-area:t}
  .use-seg button{padding:7px 12px}.use-panel{padding:12px}}

/* ---- connected to Lab Entry ---- */
.le-hub{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,1fr);gap:18px;max-width:1120px;margin:8px auto 0;align-items:stretch}
.le-list{display:grid;gap:8px}
.le-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 14px;border-radius:14px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-sm);color:inherit;text-decoration:none;transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
.le-row:hover{transform:translateX(3px);box-shadow:var(--shadow-md);text-decoration:none}
.le-row .app-icon,.le-card .app-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center}
.le-row .app-icon svg,.le-card .app-icon svg{width:30px;height:30px}
.le-name b{display:block;font-size:15px;line-height:1.2}
.le-name small{display:block;color:var(--text-muted);font-size:12.5px;line-height:1.4;margin-top:2px}
.le-how{font-size:11.5px;font-weight:650;white-space:nowrap;padding:4px 9px;border-radius:999px;background:var(--bg-tint);color:var(--text-muted);border:1px solid var(--border)}
.le-centre{display:flex;flex-direction:column;gap:12px;padding:18px;border-radius:18px;border:1.5px dashed var(--border);background:var(--surface)}
.le-card{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}
.le-card b{font-size:18px}.le-card small{display:block;color:var(--text-faint);font-size:12.5px}
.le-card .app-icon{width:48px;height:48px}.le-card .app-icon svg{width:38px;height:38px}
.le-card span + b{margin-right:auto}
.le-facts{list-style:none;padding:0;margin:0;display:grid;gap:8px;font-size:13.5px;line-height:1.5;color:var(--text-muted)}
.le-facts b{color:var(--text)}
.le-steps{counter-reset:le;list-style:none;padding:0;margin:18px auto 0;max-width:1120px;display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.le-steps li{counter-increment:le;position:relative;padding:12px 14px 12px 44px;border-radius:12px;background:var(--surface);border:1px solid var(--border);font-size:13.5px;line-height:1.5;color:var(--text-muted)}
.le-steps li::before{content:counter(le);position:absolute;left:12px;top:12px;width:22px;height:22px;border-radius:50%;background:var(--accent,#0a5fd0);color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center}
.le-steps b{color:var(--text)}
@media (max-width:980px){.le-hub{grid-template-columns:1fr}.le-steps{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.le-steps{grid-template-columns:1fr}.le-row{grid-template-columns:38px minmax(0,1fr)}.le-how{display:none}}

/* ============================================================
   POLISH LAYER: same layout, more finish. Depth, light and motion
   on top of everything above; every colour comes from the theme
   variables, so light and dark both follow.
   ============================================================ */
:root { --glow: color-mix(in srgb, var(--accent) 22%, transparent); --hair: color-mix(in srgb, var(--text) 9%, transparent); }

/* page: a faint graph-paper grid behind the top of the page, fading out */
body { position: relative; background:
  radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1.2px) 0 0 / 22px 22px,
  var(--bg); }
body::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, transparent 0, transparent 240px, var(--bg) 900px); }
.section-tint { background: color-mix(in srgb, var(--bg-tint) 82%, transparent); backdrop-filter: blur(2px); }

/* header: frosted glass with a hairline glow */
.site-header { background: color-mix(in srgb, var(--surface) 70%, transparent); border-bottom-color: var(--hair);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--surface) 60%, transparent) inset, 0 8px 24px -18px rgba(16, 24, 40, .25); }
.main-nav a { position: relative; transition: color .2s var(--ease); }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.main-nav a:hover::after { transform: scaleX(1); }

/* hero: livelier colour fields that drift slowly, and a gradient on the last line */
.hero-mesh { filter: blur(28px) saturate(130%); animation: lp-drift 22s ease-in-out infinite alternate; }
@keyframes lp-drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-2%, 2%, 0) scale(1.04); } 100% { transform: translate3d(2%, -1%, 0) scale(1.02); } }
.hero h1 { font-weight: 750; letter-spacing: -0.035em; }
.h1-accent { background: linear-gradient(100deg, var(--potato-deep) 0%, var(--potato) 30%, var(--accent) 75%, color-mix(in srgb, var(--accent) 70%, #8b5cf6) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: lp-sheen 9s ease-in-out infinite alternate; }
@keyframes lp-sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid color-mix(in srgb, var(--potato) 35%, var(--border));
  box-shadow: 0 4px 14px -8px color-mix(in srgb, var(--potato) 60%, transparent); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--potato); box-shadow: 0 0 0 3px color-mix(in srgb, var(--potato) 25%, transparent); }
.mascot svg { filter: drop-shadow(0 18px 24px rgba(120, 80, 30, .18)); }
.mascot-caption { display: inline-block; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--hair); }

/* buttons: depth, a light edge and a sheen that sweeps across on hover */
.btn { position: relative; overflow: hidden; }
.btn-primary { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff) 0%, var(--accent) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(16, 24, 40, .2), 0 10px 24px -10px color-mix(in srgb, var(--accent) 85%, transparent); }
.btn-primary::after, .tool-open::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .7s var(--ease); pointer-events: none; }
.btn-primary:hover::after, .tool-card:hover .tool-open::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 4px rgba(16, 24, 40, .2), 0 16px 32px -12px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn-ghost { background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(8px); box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }

/* quick launch: the icons sit on a frosted shelf */
.quick .wrap > .quick-grid, .quick .quick-grid { max-width: 1160px; margin: 0 auto; padding: 26px 22px 22px; border-radius: 26px;
  background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--hair); box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent), 0 24px 50px -30px rgba(16, 24, 40, .35); }
.app-icon { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s var(--ease); }
.app:hover .app-icon { transform: translateY(-5px) scale(1.06); }

/* section headings: the small label becomes a soft pill */
.section-tag { padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.section-head h2 { font-weight: 750; letter-spacing: -0.032em; }

/* tool cards: no side bar; a lit top edge, a gradient border and a coloured glow on hover */
.tool-card { border-radius: 20px; border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(160deg, color-mix(in srgb, var(--card) 30%, var(--border)), var(--border) 45%, var(--border)) border-box;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 60%, transparent), 0 1px 2px rgba(16, 24, 40, .05), 0 12px 28px -22px rgba(16, 24, 40, .3);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease); }
.tool-card::before { inset: 0 0 auto 0; width: auto; height: 3px; opacity: 1; border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, transparent, var(--card) 30%, color-mix(in srgb, var(--card) 60%, #fff) 70%, transparent); }
.tool-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px 160px at 20% 0%, color-mix(in srgb, var(--card) 14%, transparent), transparent 70%); transition: opacity .35s var(--ease); }
.tool-card:hover { transform: translateY(-5px);
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(160deg, var(--card), color-mix(in srgb, var(--card) 35%, var(--border)) 50%, var(--border)) border-box;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 60%, transparent), 0 2px 4px rgba(16, 24, 40, .06), 0 28px 50px -28px color-mix(in srgb, var(--card) 70%, rgba(16, 24, 40, .5)); }
.tool-card:hover::after { opacity: 1; }
.tool-card > * { position: relative; z-index: 1; }
.tool-card .tool-icon.app-icon { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 16px -8px color-mix(in srgb, var(--card) 80%, transparent); }
.tool-open { position: relative; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--card) 85%, #fff), var(--card)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 18px -10px color-mix(in srgb, var(--card) 90%, transparent); }
.tool-new { border-left-width: 1px; border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--card) 9%, var(--surface)), var(--surface)); }
.version-pill { border: 1px solid color-mix(in srgb, var(--card) 22%, transparent); }

/* the other cards (integrations, reviews, support, usage) share the same finish */
.quote-card, .feedback-card, .use-panel, .use-row, .integ-card, .flow-node, .le-row {
  border-radius: 18px; box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent), 0 1px 2px rgba(16, 24, 40, .05), 0 12px 28px -24px rgba(16, 24, 40, .35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.quote-card:hover, .feedback-card:hover, .le-row:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent), 0 22px 40px -26px rgba(16, 24, 40, .45); }
.quote-card { position: relative; overflow: hidden; }
.quote-card::before { content: "\201C"; position: absolute; right: 18px; top: -18px; font: 700 120px/1 Georgia, serif; color: color-mix(in srgb, var(--potato) 16%, transparent); pointer-events: none; }
.use-seg { box-shadow: 0 8px 20px -14px rgba(16, 24, 40, .35); }

/* usage: when the numbers were read, and when they are read next */
.use-fresh { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; width: fit-content; max-width: 100%;
  margin: -12px auto 18px; padding: 8px 16px; border-radius: 999px; font-size: 13.5px; color: var(--text-muted);
  background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--border); box-shadow: 0 6px 16px -12px rgba(16, 24, 40, .35); }
.use-fresh b { color: var(--text); font-weight: 650; }
.use-fresh-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a36b; box-shadow: 0 0 0 0 rgba(22, 163, 107, .45); animation: lp-pulse 2.2s ease-out infinite; }
.use-fresh-dot.late { background: #d29b1f; animation: none; }
.use-fresh-sep { width: 1px; height: 14px; background: var(--border); }
@keyframes lp-pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 107, .45); } 80%, 100% { box-shadow: 0 0 0 8px rgba(22, 163, 107, 0); } }
@media (max-width: 640px) { .use-fresh { border-radius: 14px; } .use-fresh-sep { display: none; } }

/* footer: a soft glow line on top */
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--potato) 70%, transparent), color-mix(in srgb, var(--accent) 70%, transparent), transparent); }

/* dark: fewer white highlights, deeper shadows */
:root[data-theme="dark"] .tool-card, :root[data-theme="dark"] .quote-card, :root[data-theme="dark"] .feedback-card, :root[data-theme="dark"] .use-panel, :root[data-theme="dark"] .use-row, :root[data-theme="dark"] .le-row { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 16px 32px -22px rgba(0, 0, 0, .8); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tool-card, :root:not([data-theme="light"]) .quote-card, :root:not([data-theme="light"]) .feedback-card, :root:not([data-theme="light"]) .use-panel, :root:not([data-theme="light"]) .use-row, :root:not([data-theme="light"]) .le-row { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 16px 32px -22px rgba(0, 0, 0, .8); } }
:root[data-theme="dark"] .quick .quick-grid { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 50px -30px rgba(0, 0, 0, .9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .quick .quick-grid { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 50px -30px rgba(0, 0, 0, .9); } }

@media (prefers-reduced-motion: reduce) { .hero-mesh, .h1-accent, .use-fresh-dot { animation: none; } .btn-primary::after, .tool-open::after { display: none; } }

/* ============================================================
   PREMIUM PASS: larger type, tighter spacing, more motion, and
   lab-glassware illustrations. Sits on top of the polish layer.
   ============================================================ */
/* type: a step up everywhere */
body { font-size: 17.5px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.04; margin-bottom: 16px; }
.hero-lede { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.5; max-width: 56ch; margin-bottom: 26px; }
.eyebrow { font-size: 12px; }
.btn { font-size: 15.5px; padding: 12px 22px; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 42px); margin-bottom: 12px; }
.section-head p { font-size: 17px; }
.tool-card h3 { font-size: 20.5px; }
.tool-tagline { font-size: 13.5px; }
.tool-desc { font-size: 15px; line-height: 1.5; }
.tool-features li { font-size: 14.5px; }
.tool-new li { font-size: 14px; }
.tool-open { font-size: 15px; padding: 10px 18px; }
.app-name { font-size: 13.5px; }
.app-cap { font-size: 11.5px; }
.quote-card blockquote, .quote-card p { font-size: 16.5px; line-height: 1.5; }
.use-fresh { font-size: 14px; }
.footer-blurb, .footer-about p { font-size: 15px; }

/* spacing: no dead air between blocks */
.hero { padding: 28px 0 44px; }
.mascot-figure { margin-bottom: 8px; }
.section { padding: 60px 0; }
.quick { padding: 4px 0 24px; }
.quick + .section { padding-top: 20px; }
.section-head { margin-bottom: 26px; }
.tools-grid { gap: 16px; }
.tool-card { gap: 12px; padding: 20px 20px 18px; }
.tc-foot { margin-top: 0; padding-top: 2px; }
.versions-detail { margin-bottom: auto; }
.tool-features { padding-top: 10px; gap: 6px; }
.use-tools { margin-bottom: 14px; }
.site-footer { padding: 44px 0 20px; }
.footer-base { margin-top: 32px; padding-top: 16px; }

/* hero: everything rises in, one after the other, when the page opens */
@keyframes lp-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.mascot-figure, .hero .eyebrow, .hero h1, .hero-lede, .hero-actions, .hero-foot { animation: lp-rise .8s var(--ease) both; }
.mascot-figure { animation-delay: .05s; }
.hero .eyebrow { animation-delay: .2s; }
.hero h1 { animation-delay: .3s; }
.hero-lede { animation-delay: .42s; }
.hero-actions { animation-delay: .54s; }
.hero-foot { animation-delay: .66s; }

/* hero: glassware drifting around the mascot (decoration only; off on phones) */
.hero-float { position: absolute; inset: 0; pointer-events: none; }
.hf { position: absolute; width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  color: var(--accent); opacity: .3; filter: drop-shadow(0 10px 14px rgba(16, 24, 40, .12)); animation: lp-floaty 9s ease-in-out infinite both; }
.hf-flask { left: 8%; top: 12%; color: var(--potato-deep); animation-duration: 10s; }
.hf-dna { right: 8%; top: 10%; width: 84px; height: 84px; animation-duration: 12s; animation-delay: -4s; }
.hf-petri { left: 6%; top: 54%; width: 80px; height: 80px; color: #139171; animation-duration: 11s; animation-delay: -2s; }
.hf-pipette { right: 8%; top: 56%; color: #6a55d6; animation-duration: 9.5s; animation-delay: -6s; }
.hf-tube { left: 20%; top: 34%; width: 44px; height: 44px; color: #c94b6d; animation-duration: 8s; animation-delay: -3s; }
@keyframes lp-floaty { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); } 50% { transform: translate3d(6px, -16px, 0) rotate(5deg); } }
@media (max-width: 1100px) { .hero-float { display: none; } }

/* section corner illustrations */
.section .wrap { position: relative; }
.sec-art { position: absolute; right: 8px; top: -34px; width: 150px; height: 150px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  color: var(--accent); opacity: .18; pointer-events: none; animation: lp-floaty 14s ease-in-out infinite both; }
#integrations .sec-art { color: var(--potato-deep); }
#reviews .sec-art { color: #c94b6d; }
#usage .sec-art { color: #139171; }
@media (max-width: 900px) { .sec-art { display: none; } }

/* cards come in one after another as you scroll to them */
.tools-grid .tool-card:nth-child(2), .quote-grid .quote-card:nth-child(2), .feedback-grid .feedback-card:nth-child(2) { transition-delay: .08s; }
.tools-grid .tool-card:nth-child(3), .quote-grid .quote-card:nth-child(3), .feedback-grid .feedback-card:nth-child(3) { transition-delay: .16s; }
.tools-grid .tool-card:nth-child(4), .quote-grid .quote-card:nth-child(4), .feedback-grid .feedback-card:nth-child(4) { transition-delay: .24s; }
.tools-grid .tool-card:nth-child(5), .quote-grid .quote-card:nth-child(5), .feedback-grid .feedback-card:nth-child(5) { transition-delay: .32s; }
.tools-grid .tool-card:nth-child(6), .quote-grid .quote-card:nth-child(6), .feedback-grid .feedback-card:nth-child(6) { transition-delay: .4s; }
.tools-grid .tool-card:nth-child(7), .feedback-grid .feedback-card:nth-child(7) { transition-delay: .48s; }
.tools-grid .tool-card:nth-child(8), .feedback-grid .feedback-card:nth-child(8) { transition-delay: .56s; }
.quick-grid .app { opacity: 0; transform: translateY(10px); animation: lp-rise .6s var(--ease) both; }
.quick-grid .app:nth-child(1) { animation-delay: .5s; } .quick-grid .app:nth-child(2) { animation-delay: .56s; } .quick-grid .app:nth-child(3) { animation-delay: .62s; } .quick-grid .app:nth-child(4) { animation-delay: .68s; }
.quick-grid .app:nth-child(5) { animation-delay: .74s; } .quick-grid .app:nth-child(6) { animation-delay: .8s; } .quick-grid .app:nth-child(7) { animation-delay: .86s; } .quick-grid .app:nth-child(8) { animation-delay: .92s; }

/* tool cards: a light that travels around the border while you hover */
@property --lp-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes lp-spin { to { --lp-a: 360deg; } }
.tool-card:hover {
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              conic-gradient(from var(--lp-a), var(--card) 0deg, color-mix(in srgb, var(--card) 25%, var(--border)) 70deg, var(--border) 180deg, color-mix(in srgb, var(--card) 25%, var(--border)) 290deg, var(--card) 360deg) border-box;
  animation: lp-spin 3.2s linear infinite; }
.tool-card:hover .tool-icon.app-icon { transform: translateY(-2px) rotate(-4deg); }

/* usage: lines draw themselves, bars grow, the live dot breathes */
@keyframes lp-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.use-hi { stroke-dasharray: 1; stroke-dashoffset: 0; animation: lp-draw 1.6s var(--ease) both; }
@keyframes lp-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.use-bar i { transform-origin: left; animation: lp-grow 1.2s var(--ease) both; }
.use-row { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.use-row:hover { transform: translateX(4px); }

/* reviews: the stars twinkle in, the quote mark settles after them */
@keyframes lp-twinkle { from { opacity: 0; transform: scale(.6) rotate(-8deg); letter-spacing: .3em; } to { opacity: 1; transform: none; letter-spacing: .04em; } }
.reveal.in .quote-stars { display: inline-block; transform-origin: left center; animation: lp-twinkle .7s var(--ease) both; }

/* theme switch and the header potato: a small nod */
.theme-switch button { transition: transform .2s var(--ease), background .2s var(--ease); }
.theme-switch button:hover { transform: scale(1.12); }

@media (prefers-reduced-motion: reduce) {
  .mascot-figure, .hero .eyebrow, .hero h1, .hero-lede, .hero-actions, .hero-foot, .quick-grid .app, .hf, .sec-art, .use-hi, .use-bar i, .quote-stars { animation: none; opacity: 1; transform: none; }
  .tool-card:hover { animation: none; }
}

/* uniform panels: tool cards match the others in their row, reviews and support cards all match; the launch row and the reviewer line sit on the bottom edge */
.tools-grid { grid-auto-rows: auto; align-items: stretch; }
.quote-grid, .feedback-grid { grid-auto-rows: 1fr; align-items: stretch; }
.tool-card { height: 100%; }
.tool-card .tc-foot { margin-top: auto; }
.tool-card .versions-detail { margin-bottom: 0; }
.quote-card, .feedback-card { height: 100%; display: flex; flex-direction: column; }
.quote-card figcaption, .quote-card .quote-who { margin-top: auto; }

/* headline: one phrase per line, each line kept whole */
.hero h1 .h1-line { display: block; white-space: nowrap; }
@media (max-width: 420px) { .hero h1 { font-size: clamp(30px, 9vw, 40px); } }

/* ===== Four tools to a row, but only once a card is wide enough for it ===== */
@media (min-width: 980px) {
  #tools .wrap-wide, .wrap-wide:has(> .tools-grid), .wrap-wide:has(#tools-grid) { width: min(94vw, 1720px); }
}
@media (min-width: 1400px) { .tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (min-width: 980px) and (max-width: 1399px) { .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }

/* ===== A step smaller: the premium pass read a little too large ===== */
body { font-size: 16px; }
.hero { padding: 18px 0 34px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 56px); }
.hero-lede { font-size: clamp(16px, 1.8vw, 18px); margin-bottom: 22px; }
.mascot { width: 168px; height: auto; }
.btn { font-size: 14.5px; padding: 10px 19px; }
.section { padding: 52px 0; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); }
.section-head p { font-size: 15.5px; }
.tool-card { padding: 18px 18px 16px; gap: 10px; }
.tool-card h3 { font-size: 18px; }
.tool-tagline { font-size: 12.5px; }
.tool-desc { font-size: 14px; }
.tool-features li { font-size: 13.5px; }
.tool-new li { font-size: 13px; }
.tool-open { font-size: 14px; padding: 9px 16px; }
.tool-card .tool-icon.app-icon { width: 42px; height: 42px; }
.app-icon { width: 58px; height: 58px; }
.app-name { font-size: 12.5px; }
.app-cap { font-size: 11px; }
.quote-card blockquote, .quote-card p { font-size: 15px; }
.use-fresh { font-size: 13px; }
.footer-blurb, .footer-about p { font-size: 14px; }
.hf { width: 52px; height: 52px; } .hf-dna, .hf-petri { width: 68px; height: 68px; } .hf-tube { width: 38px; height: 38px; }
@media (min-width: 1101px) {
  .wrap-wide, .site-header .wrap { width: min(90vw, 1480px); }
  #tools .wrap-wide, .wrap-wide:has(> .tools-grid), .wrap-wide:has(#tools-grid) { width: min(92vw, 1480px); }
}
@media (max-width: 640px) { .app-icon { width: 54px; height: 54px; } .mascot { width: 140px; } }

/* usage: the homepage's own row leads the list */
.use-row.use-home{background:linear-gradient(90deg,color-mix(in srgb,#c58d52 10%,var(--surface)),var(--surface) 60%);border-color:color-mix(in srgb,#c58d52 35%,var(--border));margin-bottom:6px}
.use-row.use-home .use-icon{background:color-mix(in srgb,#c58d52 16%,var(--surface))}
.use-row.use-home .use-icon svg{width:34px;height:24px}
.use-row.use-home .use-rank{color:#c58d52;font-size:15px}

/* ===== Recently updated: a glowing star until the new version is opened in this browser ===== */
.tool-card { position: relative; }
.tool-card .upd-star { display: none; }
.tool-card.updated .upd-star, .tool-card.just-seen .upd-star {
  display: grid; place-items: center; position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; z-index: 2; pointer-events: auto; cursor: help;
}
.seen-wait .upd-star, .seen-wait .nt-new { visibility: hidden; }
.upd-star svg { width: 100%; height: 100%; fill: #ffc21a; stroke: #e39b00; stroke-width: 1; stroke-linejoin: round; }
.tool-card.updated .upd-star svg { animation: lp-star-glow 2.2s ease-in-out infinite, lp-star-turn 9s linear infinite; }
.tool-card.updated { border-color: color-mix(in srgb, #ffc21a 55%, var(--border)) !important; animation: lp-card-glow 2.6s ease-in-out infinite; }
@keyframes lp-star-glow { 0%,100% { filter: drop-shadow(0 0 2px rgba(255,194,26,.55)) drop-shadow(0 0 6px rgba(255,194,26,.35)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 6px rgba(255,194,26,.95)) drop-shadow(0 0 16px rgba(255,170,0,.6)); transform: scale(1.12); } }
@keyframes lp-star-turn { to { rotate: 360deg; } }
@keyframes lp-card-glow { 0%,100% { box-shadow: 0 0 0 1px rgba(255,194,26,.25), 0 8px 22px -12px rgba(255,170,0,.35); } 50% { box-shadow: 0 0 0 2px rgba(255,194,26,.45), 0 10px 30px -10px rgba(255,170,0,.55); } }
/* opened: the star bursts and fades, the card is back to normal */
.tool-card.just-seen .upd-star svg { animation: lp-star-pop 1.1s ease-out forwards; }
@keyframes lp-star-pop { 0% { transform: scale(1); opacity: 1; } 35% { transform: scale(1.6); opacity: 1; filter: drop-shadow(0 0 14px rgba(255,194,26,1)); } 100% { transform: scale(.2) rotate(90deg); opacity: 0; } }
/* quick launch: a small star on the icon */
.app .app-icon { position: relative; }
.app .upd-star { display: none; }
.app.updated .upd-star, .app.just-seen .upd-star { display: block; position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; }
.app.updated .upd-star svg { animation: lp-star-glow 2.2s ease-in-out infinite; }
.app.just-seen .upd-star svg { animation: lp-star-pop 1.1s ease-out forwards; }
@media (prefers-reduced-motion: reduce) { .tool-card.updated, .tool-card.updated .upd-star svg, .app.updated .upd-star svg { animation: none; filter: drop-shadow(0 0 4px rgba(255,194,26,.8)); } }
.tool-card.updated .tc-head, .tool-card.just-seen .tc-head { padding-right: 34px; }

/* ===== Launch prep: phone hint, citation, research-use line ===== */
.phone-hint{position:fixed;left:12px;right:12px;bottom:12px;z-index:900;display:flex;gap:10px;align-items:center;padding:12px 12px 12px 14px;border-radius:16px;
  background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(12px);border:1px solid var(--border);box-shadow:0 14px 34px -12px rgba(16,24,40,.35);
  font-size:13.5px;line-height:1.4;color:var(--text);transform:translateY(130%);transition:transform .35s cubic-bezier(.2,.9,.3,1.2)}
.phone-hint.in{transform:none}
.phone-hint .ph-text{flex:1;min-width:0}
.phone-hint .ph-btns{display:flex;gap:6px;align-items:center;flex:none}
.phone-hint .ph-send{border:0;border-radius:10px;padding:10px 12px;font-weight:600;font-size:13px;line-height:1;font-family:inherit;background:var(--accent);color:#fff;cursor:pointer;min-height:40px}
.phone-hint .ph-x{border:0;background:none;color:var(--text-muted,#667);font-size:16px;width:36px;height:40px;border-radius:10px;cursor:pointer}
.footer-ruo{font-size:13px;color:var(--text-muted,#556)}
.footer-cite{margin:6px 0 10px;font-size:13.5px}
.footer-cite summary{cursor:pointer;font-weight:600;color:var(--accent)}
.footer-cite .cite-text{margin:8px 0;padding:10px 12px;border-radius:10px;background:var(--surface-2,rgba(0,0,0,.04));border:1px solid var(--border);font-size:13px;user-select:all}
.footer-cite .cite-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.footer-cite .cite-btn{border:1px solid var(--border);background:var(--surface);border-radius:9px;padding:7px 11px;font-weight:600;font-size:12.5px;line-height:1;font-family:inherit;color:var(--text);cursor:pointer}
.footer-cite .cite-btn:hover{border-color:var(--accent);color:var(--accent)}
.footer-cite .cite-note{font-size:12px;color:var(--text-muted,#667)}
.footer-cite .cite-bib{margin-top:8px;padding:10px 12px;border-radius:10px;background:var(--surface-2,rgba(0,0,0,.04));font-size:12px;white-space:pre-wrap}
.feedback-easy{margin-top:8px;text-align:center;font-size:14px}

/* ===== Top bar, simplified: Tools menu, Feedback, one theme button ===== */
.main-nav { align-items: center; gap: 6px !important; overflow: visible !important; mask-image: none !important; }
.main-nav > a, .nav-tools-btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; line-height: 1; font-family: inherit; color: var(--text-muted, #556); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.main-nav > a:hover, .nav-tools-btn:hover, .nav-tools-btn[aria-expanded="true"] { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.main-nav > a::after { display: none !important; }
.nav-tools { position: relative; }
.nav-tools-btn svg { transition: transform .2s var(--ease, ease); }
.nav-tools-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-tools-menu { position: absolute; top: calc(100% + 10px); left: -8px; z-index: 1000; width: min(560px, calc(100vw - 24px)); padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 24px 60px -20px rgba(16,24,40,.35), 0 2px 6px rgba(16,24,40,.06); animation: nt-in .18s var(--ease, ease) both; }
@keyframes nt-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.nt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.nt-item { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 12px; color: var(--text) !important; text-decoration: none !important; outline: none; }
.nt-item:hover, .nt-item:focus-visible { background: color-mix(in srgb, var(--card) 9%, transparent); }
.nt-ic.app-icon { width: 36px !important; height: 36px !important; flex: none; border-radius: 10px; }
.nt-ic.app-icon svg { width: 26px; height: 26px; }
.nt-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nt-t b { font-size: 14px; font-weight: 650; }
.nt-t small { font-size: 12px; color: var(--text-muted, #667); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-new { margin-left: auto; font-weight: 700; font-size: 10.5px; line-height: 1; font-family: inherit; font-style: normal; letter-spacing: .04em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; color: #8a5a00; background: #fff1c7; }
.nt-all { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 11px 12px; border-radius: 12px; border-top: 1px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--accent) !important; text-decoration: none !important; }
.nt-all:hover, .nt-all:focus-visible { background: var(--accent-soft); outline: none; }
.theme-switch.collapsed { padding: 0; border: 0; background: none; box-shadow: none; }
.theme-switch.collapsed > button[data-theme-set] { display: none; }
.theme-cycle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted, #556); cursor: pointer; }
.theme-cycle:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 25%, var(--border)); }
.theme-cycle svg { width: 17px; height: 17px; }
@media (max-width: 640px) {
  .nav-tools-menu { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; max-height: calc(100vh - 80px); overflow: auto; }
  .nt-grid { grid-template-columns: minmax(0, 1fr); }
  .main-nav > a { padding: 8px 9px; }
}
.nav-tools-menu a::after, .nav-tools-menu a::before { display: none !important; content: none !important; }
.nav-tools-menu a { font-size: inherit; letter-spacing: normal; }

/* the menu's items are never caught by the older "hide the 3rd and 4th header link" rules */
.nav-tools-menu .nt-item { display: flex !important; }
.nav-tools-menu .nt-all { display: flex !important; }

/* ===== Tool icon micro-animations: each icon does its own small lab action when pointed at
   (and once as the cards scroll into view). Colonies grow, gel bands run, notebook lines get
   written, Gibson fragments anneal, image panels light up, protein bars rise, a highlight sweeps,
   vials drop into the box. ===== */
.app-icon svg [class^="g-"] { transform-box: fill-box; }
.app-icon svg .g-arc, .app-icon svg .g-seal { transform-box: view-box; transform-origin: 24px 24px; }
.g-pop { transform-origin: center; }
.g-bar { transform-origin: 50% 100%; }
.g-hl { transform-origin: 0 50%; }
.g-write { stroke-dasharray: 14; }
:is(.app:hover, .app:focus-visible, .tool-card:hover, .tool-card.play, .nt-item:hover, .nt-item:focus-visible, .le-row:hover) .app-icon {
  --d: calc(var(--i, 0) * 70ms);
}
:is(.app:hover, .app:focus-visible, .tool-card:hover, .tool-card.play, .nt-item:hover, .nt-item:focus-visible, .le-row:hover) .app-icon .g-pop { animation: g-pop .55s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
:is(.app:hover, .app:focus-visible, .tool-card:hover, .tool-card.play, .nt-item:hover, .nt-item:focus-visible, .le-row:hover) .app-icon .g-bar { animation: g-rise .6s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(var(--i, 0) * 90ms); }
:is(.app:hover, .app:focus-visible, .tool-card:hover, .tool-card.play, .nt-item:hover, .nt-item:focus-visible, .le-row:hover) .app-icon .g-band { animation: g-run .7s cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(var(--i, 0) * 45ms); }
:is(.app:hover, .app:focus-visible, .tool-card:hover, .tool-card.play, .nt-item:hover, .nt-item:focus-visible, .le-row:hover) .app-icon .g-hl { animation: g-sweep .6s ease-out both; }
:is(.app:hover, .app:focus-visible, .tool-card:hover, .tool-card.play, .nt-item:hover, .nt-item:focus-visible, .le-row:hover) .app-icon .g-write { animation: g-write .8s ease-out both; }
:is(.app:hover, .app:focus-visible, .tool-card:hover, .tool-card.play, .nt-item:hover, .nt-item:focus-visible, .le-row:hover) .app-icon .g-tab { animation: g-tab .6s cubic-bezier(.3,1.6,.5,1) both; }
:is(.app:hover, .app:focus-visible, .tool-card:hover, .tool-card.play, .nt-item:hover, .nt-item:focus-visible, .le-row:hover) .app-icon .g-join { animation: g-join .7s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes g-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes g-rise { 0% { transform: scaleY(.1); } 100% { transform: scaleY(1); } }
@keyframes g-run { 0% { transform: translateY(-9px); opacity: 0; } 100% { transform: translateY(0); } }
@keyframes g-sweep { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes g-write { 0% { stroke-dashoffset: 14; } 100% { stroke-dashoffset: 0; } }
@keyframes g-tab { 0% { transform: translateY(-6px); } 100% { transform: translateY(0); } }
/* Gibson: the three fragments swing in, then the joins seal and the plasmid is closed.
   Both end on transform:none, so the finished icon is exactly the static artwork. */
@keyframes g-close { 0% { transform: rotate(-46deg); opacity: 0; } 35% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes g-seal { 0% { transform: scale(.45); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .app-icon [class^="g-"] { animation: none !important; } }

/* ===== Tool cards: column steps and even cards =================================
   Before this the grid went straight from 4 narrow columns (282px at 1280) to 2 very
   wide ones (473px at 1024), so cards were either cramped or oversized. Now the
   column count follows the space, and the parts of a card have a settled height so
   every card in a row ends at the same place instead of leaving a ragged gap. */
.tools-grid { gap: 20px; }
@media (max-width: 639px)  { .tools-grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 640px)  { .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px)  { .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }

.tool-card { padding: 20px 20px 16px; gap: 11px; }
.tc-head { align-items: center; min-height: 52px; }
.tool-card h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-tagline { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tool-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(3 * 1.55em); margin: 0; }
.tool-features { padding-top: 9px; gap: 7px; }
.tool-features li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 8px; }
.tool-features li > span, .tool-features li > p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Quick launch: a two-line name box so every caption sits on the same line. */
.app .app-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }

/* ============================================================
   Neutral page, colour where it means something, and a friendlier first screen. Same outline as before:
   mascot hero, quick launch, tool cards, Lab Entry links, reviews,
   feedback, support, footer. Only colour, fit and findability change.
   ============================================================ */
:root, :root[data-theme="light"] {
  --bg: #f8f9fb; --bg-tint: #f0f2f5; --surface: #ffffff; --border: #dfe3e9; --border-soft: #e8ebf0;
  --text: #14171e; --text-muted: #434a57; --text-faint: #5d6675;
  --brand-ink: #14171e; --accent: #1f66cc; --accent-hover: #1a56ad; --accent-soft: #e8f0fb;
  --ink: #12151b; --ink-2: #1b1f28; --ink-soft: #a3abb9;
  --deep: #9d6a2e; --teal: #0e9aa6;
  --shadow-sm: 0 1px 2px rgba(22, 24, 29, .05), 0 2px 8px rgba(22, 24, 29, .035);
  --shadow-md: 0 10px 30px -12px rgba(22, 24, 29, .2);
  --shadow-lg: 0 26px 60px -24px rgba(22, 24, 29, .3);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1116; --bg-tint: #14181f; --surface: #181c24; --border: #2a303b; --border-soft: #222730;
    --text: #f1f3f6; --text-muted: #c9cfd9; --text-faint: #99a2b1;
    --brand-ink: #f1f3f6; --accent: #6aa8ff; --accent-hover: #8dbcff; --accent-soft: rgba(106, 168, 255, .16);
    --ink: #090b0f; --ink-2: #12151b; --ink-soft: #9aa0ae; --deep: #e0b07a; --teal: #5fd9c9;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1116; --bg-tint: #14181f; --surface: #181c24; --border: #2a303b; --border-soft: #222730;
  --text: #f1f3f6; --text-muted: #c9cfd9; --text-faint: #99a2b1;
  --brand-ink: #f1f3f6; --accent: #6aa8ff; --accent-hover: #8dbcff; --accent-soft: rgba(106, 168, 255, .16);
  --ink: #090b0f; --ink-2: #12151b; --ink-soft: #9aa0ae; --deep: #e0b07a; --teal: #5fd9c9;
}

/* ---- hero: the mesh, the tag and the floating glyphs keep their own mixed colours; the slogan's last line runs potato to blue to teal ---- */
.h1-accent { background-image: linear-gradient(100deg, var(--deep) 0%, var(--potato) 26%, var(--accent) 68%, var(--teal) 100%); }

/* the first screen: the mascot, the promise, both buttons and the row of tools */
.hero { padding: 12px 0 26px; }
.speech-slot { min-height: 44px; margin-bottom: 2px; }
.mascot svg { width: clamp(118px, 10.5vw, 150px); height: auto; }
.mascot-caption { margin-top: 4px; }
.hero .eyebrow { margin-bottom: 10px; }
.hero h1 { font-size: clamp(32px, 4.3vw, 50px); margin-bottom: 12px; }
.hero-lede { max-width: 76ch; font-size: clamp(16px, 1.4vw, 18px); margin-bottom: 18px; }
.hero-actions { margin-bottom: 10px; }
.quick { padding-bottom: 30px; }
.quick-label { margin-bottom: 12px; }

/* buttons: the main one is blue; each tool's launch button is that tool's colour, darkened until white reads on it */
.btn-primary { color: #fff !important; background: linear-gradient(180deg, #2468d0 0%, #174fae 100%) !important; }
.tool-open { color: #fff !important; background: linear-gradient(180deg, color-mix(in srgb, var(--card) 84%, #000) 0%, color-mix(in srgb, var(--card) 70%, #000) 100%) !important; }
.btn-primary:hover, .tool-open:hover { filter: brightness(1.08); }
.btn:focus-visible, .tool-open:focus-visible, .main-nav a:focus-visible, .nav-tools-btn:focus-visible, .le-row:focus-visible, .feedback-card:focus-visible, .tool-find input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- quick launch: all nine on one row ---- */
@media (min-width: 1080px) { .quick .wrap > .quick-grid, .quick .quick-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 18px 6px; } }
@media (min-width: 641px) and (max-width: 1079px) { .quick .wrap > .quick-grid, .quick .quick-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 640px) { .quick .wrap > .quick-grid, .quick .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.app-cap { color: var(--text-faint); }

/* ---- tool cards: nothing cut off; one blue for the action ---- */
.tool-tagline, .tool-features li > span, .tool-features li > p { display: block; -webkit-line-clamp: unset; overflow: visible; }
.tool-card.updated { border-color: color-mix(in srgb, var(--card) 38%, var(--border)) !important; animation: none; filter: none; }
.tool-card[hidden] { display: none !important; }
.section-tag { color: var(--accent-hover); }

/* ---- find a tool ---- */
.tool-find { display: flex; align-items: center; gap: 10px; max-width: 620px; margin: 22px auto 0; padding: 0 14px; height: 46px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); text-align: left; }
.tool-find:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.tool-find svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--text-faint); stroke-width: 2; stroke-linecap: round; }
.tool-find input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: none; outline: none; font: inherit; font-size: 15px; color: var(--text); }
.tool-find input::placeholder { color: var(--text-faint); }
.tool-find-n { flex: none; font-size: 12.5px; color: var(--text-faint); white-space: nowrap; }
.tool-find-tips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px auto 0; padding: 0; list-style: none; }
.tool-find-tips button { --c: var(--accent); font: inherit; font-size: 12.5px; font-weight: 560; color: color-mix(in srgb, var(--c) 78%, #000); background: color-mix(in srgb, var(--c) 11%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.tool-find-tips button:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.tool-find-tips button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:root[data-theme="dark"] .tool-find-tips button { color: color-mix(in srgb, var(--c) 45%, #fff); background: color-mix(in srgb, var(--c) 20%, var(--surface)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tool-find-tips button { color: color-mix(in srgb, var(--c) 45%, #fff); background: color-mix(in srgb, var(--c) 20%, var(--surface)); } }
.tool-none { grid-column: 1 / -1; margin: 6px auto 0; padding: 18px 22px; max-width: 560px; text-align: center; font-size: 15px; color: var(--text-muted); border: 1px dashed var(--border); border-radius: 16px; background: var(--surface); }
.tool-none a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---- footer: navy; the potato colour stays on the role line and the mail button ---- */
.site-footer .footer-cite summary, .site-footer details > summary { color: #9cc4ff; }
@media (max-width: 640px) { .main-nav a[href="#integrations"], .main-nav a[href="#reviews"] { display: none; } }

/* ---- the mascot nods off when left alone; a click wakes it ---- */
.mascot { position: relative; }
.zzz { position: absolute; right: 8%; top: 4%; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); }
.zzz i { position: absolute; right: 0; top: 0; font: 800 18px/1 inherit; font-style: normal; color: var(--text-muted); opacity: 0; }
.zzz i:nth-child(2) { font-size: 14px; }
.zzz i:nth-child(3) { font-size: 11px; }
@keyframes zzz-rise { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 20% { opacity: .9; } 100% { transform: translate(22px, -46px) scale(1.15); opacity: 0; } }
.asleep .zzz { opacity: 1; }
.asleep .zzz i { animation: zzz-rise 2.7s ease-out infinite; }
.asleep .zzz i:nth-child(2) { animation-delay: .9s; }
.asleep .zzz i:nth-child(3) { animation-delay: 1.8s; }
.asleep .m-eye { animation: none; transform: scaleY(.08); }

/* asleep, the potato sinks into a mound of soil with its goggles and coat off; woken, it climbs
   back out the way it does on the Instagram card */
.pit { display: block; position: relative; }
.asleep .pit, .waking .pit { clip-path: inset(-120% -120% 0 -120%); }   /* only the bottom edge clips: that is the ground */
.pit > svg { transition: transform .9s cubic-bezier(.45, 0, .55, 1); }
.asleep .pit > svg { transform: translateY(30%); }
.half .pit > svg { transform: translateY(13%); transition: transform .7s cubic-bezier(.34, 1.6, .5, 1); }
.waking:not(.asleep):not(.half) .pit > svg { transition: transform .5s cubic-bezier(.34, 1.7, .5, 1); }
.asleep .m-shadow, .waking .m-shadow { opacity: 0; }
.asleep .m-float { animation: snooze 6.5s ease-in-out infinite; }
.waking .m-float { animation: none; }
@keyframes snooze { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(2px) scale(1.015, .985); } }
.half:not(.eyes) .m-eye { animation: none; transform: scaleY(.08); }
.eyes .m-eye { animation: blink-once .5s ease .25s; }
@keyframes blink-once { 0%, 100% { transform: scaleY(1); } 40%, 60% { transform: scaleY(.08); } }
.m-goggles, .m-coat, .m-lapel, .m-pocket, .m-pen, .m-button { transition: opacity .35s var(--ease); }
.asleep .m-goggles, .half:not(.gog) .m-goggles { opacity: 0; animation: none; }
.gog .m-goggles { animation: goggles-drop .55s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes goggles-drop { 0% { transform: translateY(-90px); opacity: 0; } 30% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.asleep :is(.m-coat, .m-lapel, .m-pocket, .m-pen, .m-button), .half :is(.m-coat, .m-lapel, .m-pocket, .m-pen, .m-button) { opacity: 0; }
.soil { position: absolute; left: 4%; right: 4%; bottom: 0; height: 22%; pointer-events: none; opacity: 0; transform: scaleY(.2); transform-origin: 50% 100%; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.soil::before { content: ""; position: absolute; inset: 0; border-radius: 50% 50% 8px 8px / 100% 100% 8px 8px; background: radial-gradient(ellipse at 50% 30%, #7a5233, #5c3b24 70%); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .08); }
.asleep .soil, .half .soil { opacity: 1; transform: none; }
.waking:not(.asleep):not(.half) .soil { opacity: 0; transform: scaleY(.2); transition: opacity .4s ease .25s, transform .5s ease .2s; }
.soil i { position: absolute; left: 50%; top: 20%; width: 9px; height: 9px; border-radius: 50%; background: #5c3b24; opacity: 0; }
@keyframes pit-shake { 0%, 100% { translate: 0 0; } 25% { translate: -4px 0; } 75% { translate: 4px 0; } }
.waking.asleep .pit { animation: pit-shake .09s linear 4; }
@keyframes crumb { 0% { transform: translate(0, 0); opacity: 1; } 55% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
.half .soil i { animation: crumb .7s cubic-bezier(.2, .7, .4, 1) both; }
.soil i:nth-child(1) { --dx: -54px; --dy: -46px; } .soil i:nth-child(2) { --dx: -22px; --dy: -70px; width: 7px; height: 7px; }
.soil i:nth-child(3) { --dx: 8px; --dy: -80px; } .soil i:nth-child(4) { --dx: 34px; --dy: -62px; width: 6px; height: 6px; } .soil i:nth-child(5) { --dx: 60px; --dy: -40px; }
.guide-pot .soil i { width: 5px; height: 5px; }
.asleep .zzz { z-index: 2; }

/* ---- the companion: a small mascot that follows the pointer once the big one has scrolled away ---- */
.guide { position: fixed; left: 0; top: 0; z-index: 70; width: 84px; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); will-change: translate; }
.guide.on { opacity: 1; pointer-events: auto; }
.guide-pot.mascot { display: block; width: 84px; height: auto; transform-origin: 50% 90%; }
.guide-pot.mascot svg { width: 84px; height: auto; filter: drop-shadow(0 10px 14px rgba(120, 80, 30, .25)); }
.guide-pot .m-body { fill: var(--potato); }
.guide-pot .zzz { right: 2%; top: -6%; }
.guide-pot .zzz i { font-size: 13px; }
/* its speech: dark on light pages, light on dark ones, so it never blends into a tool card */
.guide-say { position: absolute; left: 0; bottom: calc(100% + 11px); width: max-content; max-width: 236px; border: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); padding: 9px 13px; border-radius: 14px; background: var(--text); color: var(--bg); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .45); font-size: 13px; font-weight: 550; line-height: 1.4; opacity: 0; transform: translateY(6px) scale(.96); transform-origin: 20% 100%; transition: opacity .2s var(--ease), transform .25s var(--ease); pointer-events: none; }
.guide-say::after { content: ""; position: absolute; top: 100%; left: 30px; border: 7px solid transparent; border-top-color: var(--text); }
.guide-say.show { opacity: 1; transform: none; }
.guide-say { left: var(--peek, 0px); }
@media (max-width: 1600px) { .guide-say { max-width: 204px; } }   /* narrow margins: a slimmer speech bubble covers less */
.guide.flip .guide-say { left: auto; right: var(--peek, 0px); transform-origin: 80% 100%; }
.guide.flip .guide-x { right: auto; left: -9px; }
.guide.flip .guide-say::after { left: auto; right: 30px; }
.guide.under .guide-say { bottom: auto; top: calc(100% + 11px); }
.guide.under .guide-say::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--text); }
.guide-x { position: absolute; z-index: 2; right: -9px; top: -7px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font: 600 13px/1 inherit; cursor: pointer; opacity: 0; transition: opacity .2s var(--ease); }
.guide:hover .guide-x, .guide-x:focus-visible { opacity: 1; }

/* more life: eyes that follow the pointer, a mouth that moves, scurrying, stalking, chewing, begging */
.mascot .m-eye { translate: var(--ex, 0px) var(--ey, 0px); transition: translate .14s linear; }
.asleep .m-eye, .half:not(.eyes) .m-eye { translate: 0 0; }
.m-open { fill: #2a2018; opacity: 0; transform-box: fill-box; transform-origin: center; }
@keyframes yap { 0%, 100% { opacity: 0; transform: scale(.6, .2); } 50% { opacity: 1; transform: scale(1, 1); } }
.talk .m-open { animation: yap .26s ease-in-out 5; }
@keyframes wiggle { 0%, 100% { transform: translateX(-3px) scale(1.03, .95); } 50% { transform: translateX(3px) scale(1.03, .95); } }
.guide-pot.stalk .m-float { animation: wiggle .26s ease-in-out infinite; }
@keyframes chew { 0%, 100% { transform: scale(1.7, 1.5); } 50% { transform: scale(1.7, .35); } }
.chomp .m-open { opacity: 1; animation: chew .3s ease-in-out infinite; }
.chomp .m-mouth { opacity: 0; }
.chomp .m-float { animation: wiggle .2s ease-in-out infinite; }
@keyframes beg { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-13px) scale(.96, 1.06); } }
.beg .m-float { animation: beg .36s ease-in-out infinite; }
.beg .m-eye { animation: none; transform: scale(1.32); }
/* a different small gesture with every new speech bubble, and the bubble pops in */
@keyframes g-nod { 0%, 100% { transform: none; } 25%, 65% { transform: translateY(5px) rotate(5deg); } 45%, 85% { transform: translateY(0) rotate(-2deg); } }
@keyframes g-tilt { 0%, 100% { transform: none; } 30%, 70% { transform: rotate(-11deg); } }
@keyframes g-jump { 0%, 100% { transform: none; } 30% { transform: translateY(-18px) scale(.95, 1.07); } 60% { transform: translateY(0) scale(1.08, .92); } 80% { transform: translateY(-5px); } }
@keyframes g-shake { 0%, 100% { transform: none; } 15%, 45%, 75% { transform: translateX(-5px) rotate(-3deg); } 30%, 60%, 90% { transform: translateX(5px) rotate(3deg); } }
@keyframes g-squash { 0%, 100% { transform: none; } 30% { transform: scale(1.12, .84); } 60% { transform: scale(.93, 1.1); } 80% { transform: scale(1.03, .98); } }
@keyframes g-lean { 0%, 100% { transform: none; } 35%, 70% { transform: translateX(6px) rotate(9deg) scale(1.05); } }
@keyframes g-twirl { 0% { transform: none; } 50% { transform: translateY(-10px) scaleX(-1); } 100% { transform: translateY(0) scaleX(1); } }
.mascot:is(.g-nod, .g-tilt, .g-jump, .g-shake, .g-squash, .g-lean, .g-twirl) .m-float { transform-box: fill-box; transform-origin: 50% 88%; }
.mascot.g-nod .m-float { animation: g-nod .8s ease-in-out; }
.mascot.g-tilt .m-float { animation: g-tilt .9s ease-in-out; }
.mascot.g-jump .m-float { animation: g-jump .7s var(--ease); }
.mascot.g-shake .m-float { animation: g-shake .7s ease-in-out; }
.mascot.g-squash .m-float { animation: g-squash .7s var(--ease); }
.mascot.g-lean .m-float { animation: g-lean .9s ease-in-out; }
.mascot.g-twirl .m-float { animation: g-twirl .7s ease-in-out; }
@keyframes say-pop { 0% { transform: scale(.6) translateY(8px); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: none; } }
.guide-say.pop { animation: say-pop .32s var(--ease); }
html.lp-eaten, html.lp-eaten * { cursor: none !important; }
@media (max-width: 900px), print { .guide { display: none; } }
@media (prefers-reduced-motion: reduce) { .guide-say.pop { animation: none; } .pit > svg, .soil { transition: none; } .half .soil i, .waking.asleep .pit, .gog .m-goggles, .eyes .m-eye { animation: none; } .asleep .zzz i { animation: none; opacity: .8; } .asleep .zzz i:nth-child(2) { transform: translate(9px, -14px); } .asleep .zzz i:nth-child(3) { transform: translate(18px, -28px); } }

/* ---------- the notebook section, folded (open it to see what reaches Lab Entry) ---------- */
.section-fold { padding: 34px 0; }
.fold { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); overflow: hidden; }
.fold-sum { display: flex; align-items: center; gap: 18px; padding: 18px 22px; cursor: pointer; list-style: none; }
.fold-sum::-webkit-details-marker { display: none; }
.fold-sum .fold-art { position: static; flex: none; width: 58px; height: 58px; margin: 0; color: var(--potato-deep); animation: none; opacity: 1; transform: none; }
.fold-t { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: 1; min-width: 0; }
.fold-t > b { font-family: var(--lp-serif); font-size: 22px; line-height: 1.2; letter-spacing: -.015em; color: var(--text); }
.fold-t small { color: var(--text-muted); font-size: 14px; }
.fold-chev { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--text-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.fold[open] .fold-chev { transform: rotate(180deg); }
.fold-sum:hover .fold-chev { stroke: var(--accent); }
.fold-sum:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 18px; }
.fold-body { padding: 0 22px 22px; border-top: 1px solid var(--border); }
.fold-lead { color: var(--text-muted); margin: 18px 0 20px; }
@media (max-width: 900px) { .fold-sum .fold-art { display: none; } }

/* ---------- where the tools end up: shaded map and leaderboard, no numbers ---------- */
#reach .sec-art { color: #139171; }
.reach-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
@media (max-width: 900px) { .reach-grid { grid-template-columns: minmax(0, 1fr); } }
/* the two panels end level: the map panel's country ranking and the tool list each take up their panel's spare height */
.reach-panel { margin: 0; display: flex; flex-direction: column; }
.reach-panel .reach-board { flex: 1; justify-content: space-between; }
.reach-geo { flex: 1; display: flex; flex-direction: column; min-height: 0; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.reach-geo-h { margin: 0 0 6px; font-size: 12.5px; font-weight: 650; color: var(--text-muted); }
.reach-countries { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(22px, 1fr)); grid-auto-flow: column; gap: 0 26px; }
.reach-c { display: grid; grid-template-columns: 14px minmax(0, 1fr) minmax(44px, 36%); align-items: center; gap: 8px; padding: 0 6px; border-radius: 8px; font-size: 12.5px; color: var(--text); }
.reach-c:not(.idle):hover { background: var(--bg-tint); }
.reach-c-rank { font-size: 11.5px; font-weight: 700; color: var(--text-faint); text-align: center; font-variant-numeric: tabular-nums; }
.reach-c-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.reach-c-bar { height: 5px; border-radius: 999px; background: var(--bg-tint); overflow: hidden; }
.reach-c-bar i { display: block; height: 100%; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 14%, transparent); }
.reach-c.idle .reach-c-name, .reach-c.idle .reach-c-rank { color: var(--text-faint); opacity: .6; font-weight: 400; }
#reach-map .use-map .hot { stroke: var(--text); stroke-width: 1.2; }
@media (max-width: 520px) { .reach-countries { gap: 0 14px; } .reach-c { grid-template-columns: 12px minmax(0, 1fr) 30px; gap: 6px; padding: 0 2px; } }   /* phones: room for the country's whole name */
.reach-tools { display: flex; justify-content: center; margin: -8px 0 20px; }
.reach-note { margin: 8px 0 0; font-size: 13px; color: var(--text-muted); }
.reach-row.idle .reach-tier { opacity: .7; }
.reach-row.idle .reach-rank { color: var(--text-muted); }
.reach-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.reach-row { display: grid; grid-template-columns: 20px 38px minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 7px 8px; border-radius: 12px; text-decoration: none; color: inherit; transition: background-color .15s; }
.reach-row:hover { background: var(--bg-tint); }
.reach-rank { font-size: 13px; font-weight: 700; color: var(--text-faint); text-align: center; }
.reach-row.podium .reach-rank { color: var(--card); }
.reach-row .app-icon.reach-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--card); display: grid; place-items: center; color: #fff; grid-row: span 2; box-shadow: none; }
.reach-row .app-icon.reach-ic svg { width: 26px; height: 26px; }
.reach-name { min-width: 0; }
.reach-name b { display: block; font-size: 14px; font-weight: 650; color: var(--text); }
.reach-name small { display: block; font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reach-tier { font-size: 11.5px; font-weight: 650; padding: 2px 9px; border-radius: 999px; background: var(--bg-tint); color: var(--text-muted); white-space: nowrap; }
.reach-row.podium .reach-tier { background: color-mix(in srgb, var(--card) 16%, transparent); color: var(--text); }
.reach-bar { grid-column: 3 / -1; height: 6px; border-radius: 999px; background: var(--bg-tint); overflow: hidden; }
.reach-bar i { display: block; height: 100%; border-radius: inherit; background: var(--card); }
.reach-rank { grid-row: span 2; }

/* the plain tool list in the page itself (search engines and no-script readers); the script replaces it with the cards */
.tools-static { margin: 0; padding-left: 20px; color: var(--text-muted); line-height: 1.7; grid-column: 1 / -1; }
.tools-static a { font-weight: 650; }

/* ---------- bench work: what the mascot does when it is left alone (ACTS in app.js) ----------
   The props live inside the mascot's drawing and stay hidden until a routine's class is on the button.
   Each routine's keyframes run once; the lengths match ACTS. */
.m-props .p { opacity: 0; translate: 0 18px; transition: opacity .22s var(--ease), translate .22s var(--ease); pointer-events: none; }
.m-props .p-lens { translate: 0 64px; }
.m-props .p:not(.p-lens) { scale: 1.22; transform-origin: 125px 238px; }   /* drawn a little large, so they read at the small potato's size too */
.act-notes .p-notes, .act-pipette .p-pipette, .act-mug .p-mug, .act-flask .p-flask, .act-lens .p-lens, .act-shrink .p-shrink { opacity: 1; translate: 0 0; }
.pr-hand { fill: var(--potato); stroke: #8d5c24; stroke-opacity: .5; stroke-width: 1.6; }
.pr-paper { fill: #fbfcfe; stroke: #b3bfce; stroke-width: 1.8; }
.pr-clip { fill: #6f7d8e; }
.pr-glass { fill: rgba(224, 238, 248, .6); stroke: #7f94aa; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pr-rim { stroke: #7f94aa; stroke-width: 3.2; stroke-linecap: round; fill: none; }
/* while it works it watches its hands, not you */
.mascot.act .m-eye { translate: -1.5px 3px; }
.mascot.act-lens .m-eye, .mascot.act-yawn .m-eye { translate: var(--ex, 0px) var(--ey, 0px); }

/* peeking in from the window edge, the small potato works on the side you can see: the props swap sides */
.guide-pot.peek-r .m-props .p:not(.p-notes):not(.p-lens), .guide-pot.peek-l .m-props .p-notes { scale: -1.22 1.22; }
.guide-pot.peek-r .m-props .p-lens { scale: -1 1; transform-origin: 124px 113px; }
.mascot.peek-r.act-lens .m-eye + .m-eye { animation: none; }
.mascot.peek-r.act-lens .m-eye:not(.m-eye + .m-eye) { animation: pl-eye 4.7s ease-in-out .3s both; }

/* notes: the pen leaves the pocket and four lines get written */
.pn-lines { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.pn-stick { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.act-notes .m-pen { opacity: 0; }
.act-notes .pn-lines { animation: pn-draw 4.5s linear .45s both; }
.act-notes .pn-pen { animation: pn-pen 4.5s linear .45s both; }
@keyframes pn-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes pn-pen {
  0% { transform: translate(0, 0); } 27.4% { transform: translate(30px, -3px); } 27.5% { transform: translate(1px, 9px); }
  54.9% { transform: translate(31px, 6px); } 55% { transform: translate(2px, 18px); } 75.1% { transform: translate(24px, 15px); }
  75.2% { transform: translate(3px, 27px); } 100% { transform: translate(30px, 24px); }
}

/* pipetting: down into the tube, press, up, twice; the tube fills */
.pp-liq { fill: #3987e5; }
.pp-tip { fill: #f4f7fa; stroke: #9fb0c2; stroke-width: 1.2; stroke-linejoin: round; }
.pp-body { fill: #55677c; }
.pp-plunger { fill: var(--accent); }
.pp-fill { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(.15); }
.act-pipette .pp-pip { animation: pp-dip 5.2s cubic-bezier(.45, 0, .3, 1) .4s both; }
.act-pipette .pp-plunger { animation: pp-press 5.2s ease-in-out .4s both; }
.act-pipette .pp-fill { animation: pp-fill 5.2s ease-in-out .4s both; }
@keyframes pp-dip { 0%, 100% { transform: translateY(-15px); } 16%, 34% { transform: translateY(0); } 46%, 58% { transform: translateY(-15px); } 68%, 86% { transform: translateY(0); } }
@keyframes pp-press { 0%, 20%, 32%, 72%, 84%, 100% { transform: none; } 25%, 28%, 77%, 80% { transform: translateY(7px); } }
@keyframes pp-fill { 0%, 24% { transform: scaleY(.15); } 30%, 76% { transform: scaleY(.6); } 82%, 100% { transform: scaleY(1); } }

/* coffee: up to the mouth, a long sip with the eyes shut, back down */
.pm-handle { fill: none; stroke: #b3bfce; stroke-width: 4; stroke-linecap: round; }
.pm-coffee { fill: #6b4423; }
.pm-steam { fill: none; stroke: var(--text-faint); stroke-width: 2.2; stroke-linecap: round; opacity: 0; }
.pm-move { transform-box: fill-box; transform-origin: 30% 70%; }
.act-mug .pm-move { animation: pm-sip 4.8s cubic-bezier(.45, 0, .3, 1) .4s both; }
.act-mug .pm-steam { animation: pm-steam 1.6s ease-in-out infinite; }
.mascot.act-mug .m-eye { animation: pm-eyes 4.8s linear .4s both; }
@keyframes pm-sip { 0%, 24% { transform: none; } 38%, 60% { transform: translate(-21px, -27px) rotate(-22deg); } 74%, 100% { transform: none; } }
@keyframes pm-steam { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: .75; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes pm-eyes { 0%, 36%, 66%, 100% { transform: none; } 41%, 61% { transform: scaleY(.08); } }

/* the experiment: swirl, the colour turns, then it goes wrong in a small grey cloud */
.pf-liq { fill: #3987e5; }
.pf-b { fill: #fff; opacity: 0; }
.pf-puff { fill: #98a3b0; opacity: 0; transform-box: fill-box; transform-origin: 50% 80%; }
.pf-swirl { transform-box: fill-box; transform-origin: 50% 92%; }
.act-flask .pf-swirl { animation: pf-swirl 6s ease-in-out .4s both; }
.act-flask .pf-liq { animation: pf-colour 6s linear .4s both; }
.act-flask .pf-b { animation: pf-bub 1s ease-in infinite; }
.act-flask .pf-b:nth-of-type(2) { animation-delay: .35s; }
.act-flask .pf-b:nth-of-type(3) { animation-delay: .7s; }
.act-flask .pf-puff { animation: pf-puff 6s ease-out .4s both; }
.mascot.act-flask .m-eye { animation: pf-eyes 6s linear .4s both; }
@keyframes pf-swirl { 0%, 6% { transform: none; opacity: 1; } 12%, 28% { transform: rotate(-13deg); } 20%, 36% { transform: rotate(13deg); } 40% { transform: rotate(0deg); } 58% { transform: rotate(720deg); opacity: 1; } 60% { transform: rotate(720deg) scale(1.3); opacity: 1; } 63%, 100% { transform: rotate(720deg) scale(.2); opacity: 0; } }
@keyframes pf-colour { 0%, 10% { fill: #3987e5; } 30% { fill: #7c6fe0; } 45% { fill: #d6549a; } 58%, 100% { fill: #ff5a36; } }
@keyframes pf-bub { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: .9; } 100% { transform: translateY(-24px); opacity: 0; } }
@keyframes pf-puff { 0%, 59% { opacity: 0; transform: scale(.2); } 64% { opacity: .95; transform: scale(2.2); } 100% { opacity: 0; transform: translateY(-34px) scale(3); } }
@keyframes pf-eyes { 0%, 38%, 100% { transform: none; } 42%, 58% { transform: scale(1.3); } 60%, 64% { transform: scale(1.1, .08); } 68%, 96% { transform: scale(1.15); } }

.pf-boom { fill: #ffb21a; stroke: #ff5a36; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.act-flask .pf-boom { animation: pf-boom 6s ease-out .4s both; }
@keyframes pf-boom { 0%, 59% { opacity: 0; transform: scale(.1); } 62% { opacity: 1; transform: scale(2.6) rotate(20deg); } 70%, 100% { opacity: 0; transform: scale(3.6) rotate(50deg); } }
/* after the bang: soot all over, white eyes, goggles knocked sideways, a little smoke */
.m-smoke { fill: none; stroke: #7d8793; stroke-width: 5; stroke-linecap: round; opacity: 0; }
.burnt .m-body { filter: brightness(.36) saturate(.5); }
.burnt :is(.m-coat, .m-pocket, .m-lapel) { filter: brightness(.62); }
.burnt .m-eye { fill: #fff; animation: blink 1.1s ease-in-out 4; }
.burnt .m-mouth { stroke: #fff; }
.burnt .m-goggles { transform-box: fill-box; transform-origin: center; rotate: 10deg; translate: 4px 5px; }
.burnt .m-smoke { animation: m-smoke 1.5s ease-out infinite; }
@keyframes m-smoke { 0% { opacity: 0; transform: translateY(8px); } 30% { opacity: .8; } 100% { opacity: 0; transform: translateY(-22px); } }

/* pipetting ends badly: the tube turns green and foams over */
.pp-foam { fill: #b9f7cf; stroke: #35c46a; stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.act-pipette .pp-liq { animation: pp-glow 5.2s linear .4s both; }
.act-pipette .pp-foam { animation: pp-foam 5.2s ease-out .4s both; }
.act-pipette .pp-foam:nth-of-type(2) { animation-delay: .5s; }
.act-pipette .pp-foam:nth-of-type(3) { animation-delay: .6s; }
@keyframes pp-glow { 0%, 78% { fill: #3987e5; } 84%, 100% { fill: #35e06f; } }
@keyframes pp-foam { 0%, 82% { opacity: 0; transform: scale(.2); } 90% { opacity: 1; transform: scale(1.5); } 100% { opacity: .95; transform: translateY(-5px) scale(2.1); } }
.mascot.act-pipette .m-eye { animation: pp-eyes 5.2s linear .4s both; }
@keyframes pp-eyes { 0%, 80%, 100% { transform: none; } 86%, 96% { transform: scale(1.3); } }

/* coffee kicks in: wide eyes and a fast shake */
.mascot.act-mug .m-float { animation: pm-buzz 4.8s linear .4s both; }
@keyframes pm-buzz { 0%, 66%, 92%, 100% { transform: none; } 68%, 72%, 76%, 80%, 84%, 88% { transform: translate(-2.5px, -1px) rotate(-1.5deg); } 70%, 74%, 78%, 82%, 86%, 90% { transform: translate(2.5px, -1px) rotate(1.5deg); } }

/* a way out through the floor and back in from above */
.m-portal { opacity: 0; pointer-events: none; }
.po-ring { fill: none; stroke: #7b5cff; stroke-width: 5; stroke-dasharray: 16 9; stroke-linecap: round; }
.po-core { fill: #2fd0f0; opacity: .5; }
.act-portal .m-portal { opacity: 1; }
.act-portal .po-ring { animation: po-spin .9s linear infinite; }
.act-portal .po-low { animation: po-low 4.8s ease-in-out .2s both; }
.act-portal .po-high { animation: po-high 4.8s ease-in-out .2s both; }
.mascot.act-portal .m-float { transform-box: fill-box; animation: po-body 4.8s cubic-bezier(.5, 0, .3, 1) .2s both; }
.mascot.act-portal .m-shadow { opacity: 0; }
@keyframes po-spin { to { stroke-dashoffset: -50; } }
@keyframes po-low { 0% { opacity: 0; } 8%, 40% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes po-high { 0%, 38% { opacity: 0; } 46%, 78% { opacity: 1; } 88%, 100% { opacity: 0; } }
@keyframes po-body {
  0%, 12% { transform-origin: 50% 100%; transform: none; } 20% { transform-origin: 50% 100%; transform: scale(1.06, .94); }
  38% { transform-origin: 50% 100%; transform: scale(.35, 0); } 39%, 48% { transform-origin: 50% 0%; transform: scale(.35, 0); }
  70% { transform-origin: 50% 0%; transform: scale(1.05, 1.1); } 80%, 100% { transform-origin: 50% 0%; transform: none; }
}

/* the shrink ray, tested on itself */
.ps-gun { fill: #55677c; } .ps-tip { fill: #2fd0f0; }
.ps-beam { fill: none; stroke: #2fd0f0; stroke-width: 6; stroke-linecap: round; opacity: 0; }
.act-shrink .ps-beam { animation: ps-beam 4.2s linear .3s both; }
.mascot.act-shrink .m-float { transform-box: fill-box; transform-origin: 50% 92%; animation: ps-body 4.2s cubic-bezier(.4, 1.4, .5, 1) .3s both; }
.mascot.act-shrink .m-eye { animation: ps-eyes 4.2s linear .3s both; }
@keyframes ps-beam { 0%, 14%, 28%, 100% { opacity: 0; } 16%, 20%, 24% { opacity: 1; } 18%, 22% { opacity: .3; } }
@keyframes ps-body { 0%, 18% { transform: none; } 24% { transform: scale(1.12); } 34%, 44% { transform: scale(.34); } 52% { transform: scale(.34) translateY(-70px); } 60%, 70% { transform: scale(.34); } 80% { transform: scale(1.14, .9); } 88%, 100% { transform: none; } }
@keyframes ps-eyes { 0%, 26%, 82%, 100% { transform: none; } 34%, 74% { transform: scale(1.5); } }
.act-shrink .p-shrink { opacity: 1; translate: 0 0; }

/* the pointer rests close by: it leans in, eyes wide, head tilting */
.mascot.curious .m-float { transform-box: fill-box; transform-origin: 50% 88%; animation: curious 1.6s ease-in-out infinite; }
.mascot.curious .m-eye { animation: none; transform: scale(1.22); }
@keyframes curious { 0%, 100% { transform: rotate(-6deg) translateY(-2px); } 50% { transform: rotate(6deg) translateY(-4px); } }
/* swept through at speed: bowled over, a spin and a squash */
.guide-pot.boop .m-float { transform-box: fill-box; transform-origin: 50% 88%; animation: boop .85s cubic-bezier(.3, 1.4, .5, 1); }
.guide-pot.boop .m-eye { animation: dizzy .4s linear 2; }
@keyframes boop { 0% { transform: none; } 20% { transform: rotate(-28deg) scale(1.1, .85); } 45% { transform: rotate(18deg) translateY(-12px); } 70% { transform: rotate(-6deg) scale(1.06, .94); } 100% { transform: none; } }
/* circling the donate button it shouts */
.guide-say.yell { font-weight: 800; letter-spacing: .02em; background: #ffd257; color: #3a2500; border-color: #e0a516; }
.guide-say.yell::after { border-top-color: #ffd257; }
.guide.under .guide-say.yell::after { border-bottom-color: #ffd257; }

/* the donate button: it cannot contain itself (and never gets between the pointer and the button) */
.guide.orbiting { pointer-events: none; }
.guide-pot.orbit .m-float { animation: beg .3s ease-in-out infinite; }
.guide-pot.orbit .m-eye { animation: none; transform: scale(1.3); }

/* a pointer under experiment: a stand-in takes the treatment while the real one hides */
.lp-cur { position: fixed; z-index: 69; width: 22px; height: 22px; margin: -2px 0 0 -3px; pointer-events: none; transform-origin: 20% 12%; }
.lp-cur svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lp-cur path { fill: #14181f; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.lp-cur.m1 { animation: cur-grow 4.5s ease-in-out both; }
.lp-cur.m2 { animation: cur-jelly 4.5s ease-in-out both; } .lp-cur.m2 path { animation: cur-green 4.5s linear both; }
.lp-cur.m3 { animation: cur-spin 4.5s cubic-bezier(.5, 0, .3, 1) both; }
@keyframes cur-grow { 0%, 12%, 100% { transform: none; } 40% { transform: scale(3.4) rotate(-12deg); } 55% { transform: scale(3.4) rotate(10deg); } 75% { transform: scale(.3); } 88% { transform: scale(1.25); } }
@keyframes cur-jelly { 0%, 12%, 100% { transform: none; } 25%, 45%, 65% { transform: scale(1.7, .55); } 35%, 55%, 75% { transform: scale(.6, 1.8); } 88% { transform: scale(1.2); } }
@keyframes cur-green { 0%, 15%, 92%, 100% { fill: #14181f; } 30%, 80% { fill: #35e06f; } }
@keyframes cur-spin { 0%, 10% { transform: none; } 50% { transform: rotate(1080deg) scale(1.8); } 70% { transform: rotate(1440deg) translateY(-26px); } 85%, 100% { transform: rotate(1440deg); } }

/* the magnifier: one very large eye, pointed at whatever the pointer is doing */
.pl-glass { fill: rgba(207, 230, 242, .32); stroke: #55677c; stroke-width: 6; }
.pl-handle { fill: none; stroke: #8d5c24; stroke-width: 8; stroke-linecap: round; }
.pl-shine { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: .8; }
.pl-move { translate: calc(var(--ex, 0px) * 2.4) calc(var(--ey, 0px) * 2.4); transition: translate .3s var(--ease); }
.mascot.act-lens .m-eye + .m-eye { animation: pl-eye 4.7s ease-in-out .3s both; }
@keyframes pl-eye { 0%, 6%, 94%, 100% { transform: none; } 14%, 47%, 53%, 86% { transform: scale(1.8); } 50% { transform: scale(1.8, .14); } }

/* a yawn: the long kind */
.mascot.act-yawn .m-open { animation: yawn 2.8s ease-in-out both; }
.mascot.act-yawn .m-mouth { opacity: 0; }
.mascot.act-yawn .m-eye { animation: yawn-eyes 2.8s ease-in-out both; }
@keyframes yawn { 0% { opacity: 1; transform: scale(.5, .15); } 35%, 68% { opacity: 1; transform: scale(1.45, 1.9); } 96% { opacity: 1; transform: scale(.5, .12); } 100% { opacity: 0; transform: scale(.5, .12); } }
@keyframes yawn-eyes { 0%, 100% { transform: none; } 22%, 78% { transform: scaleY(.1); } }

/* nodding off: heavy lids, the head sinks, it catches itself, and again */
.drowsy .m-eye { animation: droop 4.2s ease-in-out infinite; translate: 0 1px; }
.drowsy .m-float { transform-box: fill-box; transform-origin: 50% 88%; animation: nod 4.2s ease-in-out infinite; }
@keyframes droop { 0%, 84%, 100% { transform: scaleY(.5); } 62% { transform: scaleY(.1); } 70% { transform: scaleY(.95); } }
@keyframes nod { 0%, 84%, 100% { transform: none; } 62% { transform: translateY(4px) rotate(8deg); } 70% { transform: translateY(-3px) rotate(-3deg); } }

/* caught at it, and a page that flew past */
.mascot.caught .m-eye { animation: none; transform: scale(1.22); }
.mascot.dizzy .m-eye { animation: dizzy .55s linear 2; }
@keyframes dizzy { 0%, 100% { translate: 3px 0; } 25% { translate: 0 3px; } 50% { translate: -3px 0; } 75% { translate: 0 -3px; } }

/* asleep: it dreams, and half opens one eye when the pointer comes to look */
.dream { position: absolute; left: 34%; bottom: 80%; width: 0; height: 0; translate: calc(0px - var(--out, 0px)) 0; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); z-index: 2; }
.dream i { position: absolute; left: 0; bottom: 0; translate: -50% 0; white-space: nowrap; font: 600 12px/1 inherit; font-style: normal; padding: 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); box-shadow: 0 4px 12px -6px rgba(20, 30, 50, .25); opacity: 0; }
.guide-pot .dream i { font-size: 11px; padding: 5px 8px; }
.asleep .dream { opacity: 1; }
.asleep .dream i { animation: dream 18s ease-in-out 5s infinite; }
.asleep .dream i:nth-child(2) { animation-delay: 11s; }
.asleep .dream i:nth-child(3) { animation-delay: 17s; }
@keyframes dream { 0% { opacity: 0; transform: translateY(8px) scale(.85); } 4%, 18% { opacity: 1; transform: none; } 23%, 100% { opacity: 0; transform: translateY(-10px); } }
.asleep:hover .dream, .waking .dream { opacity: 0; }
.asleep:hover:not(.waking) .m-eye + .m-eye { transform: scaleY(.6); transition: transform .25s var(--ease); }
.asleep:hover .zzz i { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .m-props, .m-portal, .lp-cur { display: none; }
  .mascot.curious .m-float, .guide-pot.boop .m-float, .guide-pot.boop .m-eye { animation: none; }
  .burnt .m-smoke, .burnt .m-eye { animation: none; }
  .drowsy .m-eye, .drowsy .m-float, .mascot.dizzy .m-eye, .asleep .dream i { animation: none; }
  .drowsy .m-eye { transform: scaleY(.5); }
}

/* Lab Potato type: Inter for the interface, Source Serif 4 for reading text. The same pair as every tool. */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/inter-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/inter-greek.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;src:url(fonts/source-serif-4.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--lp-ui:"Inter","Inter Variable",system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--lp-sans:"Inter","Inter Variable",system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--lp-serif:"Inter","Inter Variable",system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--lp-read:"Source Serif 4","Source Serif 4 Variable",Charter,"Iowan Old Style",Georgia,"Times New Roman",serif}
html,body{font-feature-settings:normal;font-variant-numeric:tabular-nums}
.hero-lede,.tool-desc,.tool-tagline,.section-head p{font-family:var(--lp-read)}


/* Two-way switch at the foot of a card (Lab Calculator): the whole width, one half per door.
   At rest the bulb is off; pointing at a half lights it, pressing it clicks down like a rocker. */
.tool-doors{order:5;margin-top:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:4px;gap:4px;border-radius:16px;
  background:color-mix(in srgb,var(--card) 9%,var(--surface));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--card) 22%,transparent),inset 0 2px 5px rgba(16,24,40,.08)}
.tool-door{--lit:var(--card);position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:12px 8px 11px;border-radius:12px;text-decoration:none;color:var(--text);
  background:var(--surface);box-shadow:0 1px 0 rgba(255,255,255,.6) inset,0 1px 2px rgba(16,24,40,.12),0 3px 0 color-mix(in srgb,var(--card) 18%,var(--border));
  transition:transform .12s var(--ease),box-shadow .12s var(--ease),background .25s var(--ease),color .25s var(--ease)}
.tool-door.joke{--lit:#e08a1e}
.td-bulb{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;font-size:18px;line-height:1;
  background:color-mix(in srgb,var(--lit) 10%,var(--surface));filter:grayscale(.85) opacity(.7);transition:filter .25s var(--ease),box-shadow .25s var(--ease),background .25s var(--ease)}
.td-txt{display:flex;flex-direction:column;align-items:center;min-width:0}
.td-txt b{font-size:14.5px;line-height:1.25;white-space:nowrap;font-weight:680;letter-spacing:-.01em}
.td-txt small{font-size:11.5px;line-height:1.3;color:var(--text-faint)}
.tool-door:hover,.tool-door:focus-visible{background:color-mix(in srgb,var(--lit) 12%,var(--surface));color:color-mix(in srgb,var(--lit) 70%,var(--text))}
.tool-door:hover .td-bulb,.tool-door:focus-visible .td-bulb{filter:none;background:color-mix(in srgb,var(--lit) 22%,#fff);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--lit) 16%,transparent),0 0 18px 4px color-mix(in srgb,var(--lit) 45%,transparent)}
.tool-door:active{transform:translateY(3px);box-shadow:0 0 0 rgba(0,0,0,0),inset 0 2px 4px rgba(16,24,40,.18)}
.tool-door:active .td-bulb{animation:tdFlash .35s var(--ease)}
@keyframes tdFlash{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--lit) 70%,transparent),0 0 30px 10px color-mix(in srgb,var(--lit) 80%,transparent)}100%{box-shadow:0 0 0 4px color-mix(in srgb,var(--lit) 16%,transparent),0 0 18px 4px color-mix(in srgb,var(--lit) 45%,transparent)}}
@media (prefers-reduced-motion:reduce){.tool-door,.td-bulb{transition:none}.tool-door:active .td-bulb{animation:none}}
