/* instrumentify.org — shared styles. Tokens mirror the app's own static/style.css so the
   marketing site and the product read as one system. */
@import url("https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&family=Source+Sans+3:ital,wght@0,400;0,600;1,400&display=swap");

:root {
  --ink: #0f2f3a;
  --teal: #1d5b6f;
  --teal-bright: #2f8098;
  --teal-wash: #e3eef1;
  --paper: #f3f7f8;
  --surface: #ffffff;
  --mist: #d6e2e7;
  --mist-strong: #bccdd4;
  --text: #102129;
  --text-soft: #4d636c;
  --status-out: #b8742f;   /* semantic only: instruments currently out */
  --green: #1b7b4f;
  --font-display: "Sora", "Trebuchet MS", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --container: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 6.5rem);
  --radius: 10px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.25rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h2 { text-wrap: balance; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 66ch; }
a { color: var(--teal); text-underline-offset: 0.16em; transition: color 0.25s ease; }
a:hover { color: var(--ink); }
code, kbd { font-family: var(--font-mono); font-size: 0.86em; }
pre {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.5;
  background: var(--ink);
  color: #e8f1f4;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 0 0 1.25rem;
}
pre code { font-size: inherit; }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--text-soft); max-width: 58ch; }
.muted { color: var(--text-soft); }
.small { font-size: 0.95rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid var(--teal);
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--secondary { background: transparent; color: var(--teal); box-shadow: none; }
.btn--secondary:hover { background: var(--teal-wash); color: var(--ink); border-color: var(--teal); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mist);
}
.site-header .container { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { color: var(--teal); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: 1rem; }
.site-nav a:hover { color: var(--ink); }
.site-nav .btn { padding: 0.6rem 1.1rem; font-size: 0.95rem; }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-nav.is-open { display: flex; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.2rem var(--gutter) 1.6rem; background: var(--paper); border-bottom: 1px solid var(--mist); }
  .nav-toggle { display: inline-flex; margin-left: auto; background: none; border: 1.5px solid var(--mist-strong); border-radius: 8px; padding: 0.45rem 0.7rem; font: inherit; color: var(--ink); cursor: pointer; }
}

/* Sections */
.section { padding-block: var(--section); border-top: 1px solid var(--mist); }
.section--flush { border-top: 0; }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-head p { font-size: 1.15rem; color: var(--text-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--mist); padding: 2.5rem 0 3rem; color: var(--text-soft); font-size: 0.95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; }
.site-footer a { color: var(--text-soft); }
.site-footer .brand { font-size: 1rem; color: var(--ink); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(15, 47, 58, 0.9); display: grid; place-items: center; padding: 3vw; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 92vh; max-width: 94vw; width: auto; border-radius: var(--radius); background: #fff; }
.lightbox figcaption { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: #e8f1f4; font-size: 0.95rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
