/* Brand tokens and shared components (v1.0, 15 Oct 2026). Copied from the brand design system; keep in sync. */

:root {
  color-scheme: light;

  /* yellow ramp (app: hsl 46 to 48) */
  --bl-primary: #fac30f;
  --bl-yellow-2: #fbce2d;
  --bl-yellow-3: #fad54c;
  --bl-yellow-4: #f6d96f;
  --bl-yellow-5: #fce792;
  --bl-yellow-6: #fef0b9;
  --bl-yellow-7: #fff7d6;
  --bl-yellow-8: #fffbed;
  --bl-gold: #a67707;

  /* warm neutrals (hue 40) */
  --bl-dark: #242320;
  --bl-dark-light: #55534e;
  --bl-grey: #85817a;
  --bl-grey-medium: #d0cdc8;
  --bl-grey-light: #efede9;
  --bl-light: #f8f7f4;
  --bl-card: #ffffff;

  /* the Biotiq mark (never recolor) */
  --biotiq-lime: #e4ffc2;
  --biotiq-forest: #003d20;

  /* charts */
  --series-1: #eda100;
  --series-2: #4a3aa7;
  --series-3: #eb6834;
  --series-4: #1baf7a;
  --chart-ink: #24221f;
  --chart-grid: #ecebe7;
  --chart-axis: #8a877f;

  /* category pastels: dots and chip fills only, never text */
  --data-1: #f8aaaa; --data-2: #f8d9aa; --data-3: #f7f8aa; --data-4: #ccf8aa; --data-5: #aaf8c5;
  --data-6: #aaf8f5; --data-7: #aac9f8; --data-8: #aaabf8; --data-9: #deaaf8; --data-10: #f8aae2;
  --data-11: #f8baaa; --data-12: #add6eb; --data-13: #d8c7b6;

  /* status, always with a word or an icon */
  --state-good: #177650;
  --state-bad: #b4532a;

  /* lines */
  --line: var(--bl-grey-light);
  --line-input: var(--bl-grey-medium);
  --line-glass: rgba(36, 35, 32, .16);
  --line-dark: rgba(255, 255, 255, .16);

  /* glass: page colour at 30 percent over a 5 px blur */
  --glass: rgba(248, 247, 244, .3);
  --glass-strong: rgba(248, 247, 244, .62);
  --blur: 5px;

  /* gradients */
  --grad-field:
    radial-gradient(95% 85% at 100% 0%, #f9bf06 0%, rgba(249, 191, 6, 0) 72%),
    linear-gradient(180deg, #fbd55e 0%, #fde9a4 46%, #fff7dc 100%);
  --grad-hero: linear-gradient(115deg, #fac823 0%, #fcdc69 38%, #fff5cc 100%);
  --grad-persona:
    radial-gradient(70% 60% at 0% 0%, rgba(250, 195, 15, .55), rgba(250, 195, 15, 0) 70%),
    linear-gradient(165deg, #fbd246 0%, #fde49a 52%, #fff4cf 100%);
  --grad-band: radial-gradient(60% 90% at 85% 0%, rgba(250, 195, 15, .35), rgba(250, 195, 15, 0) 70%), #242320;
  --grad-fade-dark: linear-gradient(180deg, rgba(36, 35, 32, 0) 35%, #242320 96%);

  /* radii: the larger set for brand surfaces; the app uses 8 / 6 / 4 */
  --r-4: 4px; --r-6: 6px; --r-8: 8px; --r-12: 12px; --r-14: 14px; --r-16: 16px; --r-20: 20px; --r-40: 40px;
  --r-full: 9999px;

  /* spacing (4 px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-30: 120px;

  /* layout */
  --inset: 32px;
  --content: 1152px;

  /* shadows: flat by default; frames get the five-layer soft shadow, floating buttons one soft drop */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-frame:
    0 2px 4px rgba(36, 35, 32, .02), 0 6px 10px rgba(36, 35, 32, .03), 0 14px 22px rgba(36, 35, 32, .04),
    0 26px 36px rgba(36, 35, 32, .06), 0 46px 60px rgba(36, 35, 32, .08);
  --shadow-float: 0 15px 20px rgba(36, 35, 32, .08);

  /* type */
  --font: 'Geist', 'Geist Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wordmark: 'DM Sans', 'Geist', ui-sans-serif, system-ui, sans-serif;
}

/* ---------- base ---------- */

.bl, .bl * { box-sizing: border-box; }
.bl {
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -.01em;
  color: var(--bl-dark);
  background: var(--bl-light);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01' on;
}
.bl img { max-width: 100%; display: block; }
:where(.bl) a { color: inherit; }
.bl :focus-visible { outline: 2px solid var(--bl-yellow-6); outline-offset: 2px; }
.num, .bl table { font-variant-numeric: tabular-nums; }

/* ---------- type (marketing scale in Geist) ---------- */

.h0, .h1, .h2, .h3, .h4, .h5, .h6 { margin: 0; font-weight: 400; text-wrap: balance; }
.h0 { font-size: clamp(56px, 8vw, 112px); line-height: .93; letter-spacing: -.04em; }
.h1 { font-size: clamp(44px, 5.4vw, 72px); line-height: .93; letter-spacing: -.04em; }
.h2 { font-size: clamp(34px, 3.8vw, 48px); line-height: .92; letter-spacing: -.04em; }
.h3 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1; letter-spacing: -.04em; }
.h4 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.19; letter-spacing: -.04em; }
.h5 { font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -.02em; }
.h6 { font-size: 20px; line-height: 26px; letter-spacing: -.01em; }
.lead { margin: 0; font-size: 20px; line-height: 28px; letter-spacing: -.01em; text-wrap: pretty; }
.body { margin: 0; font-size: 16px; line-height: 24px; letter-spacing: -.01em; }
.small { margin: 0; font-size: 14px; line-height: 20px; }
.eyebrow {
  margin: 0;
  font-size: 12px; line-height: 16px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .02em;
  color: var(--bl-dark-light);
}
.mute { color: var(--bl-dark-light); }
.meta { color: var(--bl-grey); font-size: 12px; line-height: 16px; }
.gold { color: var(--bl-gold); }
.on-dark { color: #fff; }
.on-dark .eyebrow, .eyebrow.on-dark { color: rgba(255, 255, 255, .72); }
.on-dark .mute { color: #cfccc6; }
.accent-on-dark { color: var(--bl-primary); }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }

/* ---------- logo ---------- */

.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--wordmark); font-weight: 700; font-size: 18px; line-height: 1; letter-spacing: -.03em;
  color: var(--biotiq-forest); text-decoration: none; white-space: nowrap;
}
.logo img { width: 22px; height: 22px; flex: none; }
.logo--light { color: #fff; }
.logo--lg { font-size: 36px; gap: 14px; }
.logo--lg img { width: 44px; height: 44px; }

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: calc(var(--content) + 48px); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: var(--s-30); }
.section--tight { padding-block: var(--s-20); }
.box { margin-inline: var(--inset); border-radius: var(--r-16); overflow: hidden; position: relative; }
.box--dark { background: var(--grad-band); color: #fff; }
.box--field { background: var(--grad-persona); }
.box--grey { background: var(--bl-grey-light); }
.stackv { display: flex; flex-direction: column; }
.head { display: grid; gap: var(--s-4); max-width: 720px; }
.head--center { margin-inline: auto; text-align: center; justify-items: center; }
@media (max-width: 720px) {
  :root { --inset: 12px; }
  .section { padding-block: var(--s-20); }
  .section--tight { padding-block: var(--s-16); }
}

/* ---------- buttons, pills ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 8px 14px 8px 16px; border: 0; border-radius: var(--r-8);
  font: 500 14px/20px var(--font); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s ease;
}
.btn svg { width: 14px; height: 14px; }
.btn--primary { background: var(--bl-primary); color: var(--bl-dark); }
.btn--primary:hover { background: var(--bl-yellow-2); }
.btn--dark { background: var(--bl-dark); color: #fff; }
.btn--dark:hover { background: var(--bl-dark-light); }
.btn--outline { background: var(--bl-card); color: var(--bl-dark); box-shadow: inset 0 0 0 1px var(--line-input); }
.btn--outline:hover { background: var(--bl-grey-light); }
.btn--glass {
  background: var(--glass); color: var(--bl-dark); box-shadow: inset 0 0 0 1px var(--line-glass);
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
}
.btn--sm { height: 28px; padding: 0 12px; border-radius: var(--r-6); font-size: 12px; line-height: 16px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 8px 12px; border-radius: var(--r-6);
  font: 500 14px/20px var(--font); letter-spacing: -.01em; color: #fff; text-decoration: none; white-space: nowrap;
  background: rgba(36, 35, 32, .62); transition: background-color .15s ease;
}
.pill:hover { background: rgba(36, 35, 32, .8); }
.pill svg { width: 14px; height: 14px; }
.pill--cta { background: var(--bl-primary); color: var(--bl-dark); }
.pill--cta:hover { background: var(--bl-yellow-2); }

.announce {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 11px;
  border-radius: var(--r-20); background: var(--bl-dark); color: #fff;
  font: 500 12px/16px var(--font); letter-spacing: 0; text-decoration: none; white-space: nowrap;
}
.announce::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bl-primary); }

/* ---------- glass navigation and floating contact button ---------- */

.nav {
  position: fixed; z-index: 50;
  top: calc(21px + env(safe-area-inset-top, 0px)); left: 23px; right: 23px;
  height: 54px; padding: 0 9px 0 16px; border-radius: var(--r-14);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line-glass);
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
}
.nav-left, .nav-pills { display: flex; align-items: center; gap: 4px; min-width: 0; }
.nav-left { gap: 16px; }
@media (max-width: 900px) {
  .nav { left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top, 0px)); }
  .nav .announce, .nav-pills .pill:not(.pill--cta) { display: none; }
}
.float-contact {
  position: fixed; z-index: 49; right: 23px; bottom: calc(21px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px 8px 16px; border-radius: var(--r-8);
  font: 500 14px/20px var(--font); color: var(--bl-dark); text-decoration: none;
  background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line-glass), var(--shadow-float);
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
}
.float-contact svg { width: 16px; height: 16px; }

/* ---------- glass surfaces ---------- */

.glass {
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line-glass);
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
}
.glass--strong { background: var(--glass-strong); }
.glass--dark {
  background: rgba(36, 35, 32, .42); box-shadow: inset 0 0 0 1px var(--line-dark); color: #fff;
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
}

/* glass stat card: small engraving, big number, caption, thin bar */
.stat {
  display: grid; gap: 8px; width: 224px; padding: 12px 14px 14px; border-radius: var(--r-12);
  background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line-glass);
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
}
.stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.stat-top img { width: 52px; height: 52px; object-fit: contain; }
.stat-num { font-size: 32px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-cap { font-size: 12px; line-height: 16px; color: var(--bl-dark-light); }
.stat-bar { height: 3px; border-radius: 2px; background: rgba(36, 35, 32, .12); overflow: hidden; }
.stat-bar i { display: block; height: 100%; background: var(--bl-dark); border-radius: 2px; }

/* ---------- images ---------- */

.frame {
  border-radius: var(--r-12); overflow: hidden; background: var(--bl-card);
  box-shadow: 0 0 0 1px rgba(36, 35, 32, .08), var(--shadow-frame);
}
.frame img { width: 100%; height: auto; }
.photo { position: relative; border-radius: var(--r-16); overflow: hidden; background: var(--grad-hero); }
.photo > img { width: 100%; height: 100%; object-fit: cover; }
.photo-note { position: absolute; left: 16px; top: 16px; max-width: 280px; padding: 12px 14px; border-radius: var(--r-12); }
.engr { width: 100%; height: auto; }
.engr--light { filter: invert(1); opacity: .9; }
.field { background: var(--grad-field); }

/* ---------- quote card (testimonial shape; we fill it with our own sentences or a client's words) ---------- */

.quote-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: 320px; padding: 24px; border-radius: var(--r-16); background: var(--bl-yellow-7);
}
.quote-card blockquote { margin: 0; font-size: 20px; line-height: 24px; letter-spacing: -.02em; text-wrap: pretty; }
.quote-card footer { display: grid; gap: 2px; font-size: 14px; line-height: 20px; }
.quote-card footer span { color: var(--bl-dark-light); }

/* ---------- product components (from app/src/components/ui.jsx) ---------- */

.card { background: var(--bl-card); border: 1px solid var(--line); border-radius: var(--r-8); min-width: 0; }
.card-h {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 58px; padding: 10px 16px; border-bottom: 1px solid var(--line);
}
.card-t { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 500; }
.card-t svg { width: 16px; height: 16px; flex: none; }
.card-b { padding: 16px 20px; font-size: 13px; line-height: 1.6; }
.card-f { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 8px;
  border: 1px solid var(--line); border-radius: var(--r-6); background: var(--bl-card);
  font-size: 12px; line-height: 16px; letter-spacing: 0; white-space: nowrap;
}
.badge i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.chipfill { display: inline-flex; padding: 2px 8px; border-radius: var(--r-4); font-size: 12px; line-height: 16px; color: var(--bl-dark); }

.linkchip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.linkchip span:first-child {
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 2px 8px; border: 1px solid var(--line-input); border-radius: var(--r-6); background: var(--bl-card);
  font-size: 12px; line-height: 16px;
}
.linkchip span:last-child {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none;
  border: 1px solid var(--line-input); border-radius: var(--r-6); background: var(--bl-card);
}
.linkchip svg { width: 13px; height: 13px; }

.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-8); background: var(--bl-yellow-7); }
.tabs span { padding: 6px 12px; border-radius: var(--r-6); font-size: 13px; line-height: 18px; }
.tabs .is-on { background: var(--bl-card); font-weight: 500; box-shadow: var(--shadow-sm); }

.seg { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-6); background: var(--bl-light); font-size: 12px; line-height: 16px; }
.seg span { display: inline-flex; gap: 6px; padding: 6px 12px; border-right: 1px solid var(--line); color: var(--bl-dark-light); }
.seg span:last-child { border-right: 0; }
.seg .is-on { background: var(--bl-grey-light); color: var(--bl-dark); font-weight: 500; }
.seg b { font-weight: 600; color: var(--bl-dark); }

.input {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--line-input);
  border-radius: var(--r-6); background: var(--bl-card); font-size: 13px; color: var(--bl-grey);
}
.input svg { width: 14px; height: 14px; }

.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.switch i { position: relative; width: 36px; height: 20px; border-radius: var(--r-full); background: var(--bl-dark); }
.switch i::after { content: ""; position: absolute; top: 2px; left: 18px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.switch.is-off i { background: var(--bl-grey-medium); }
.switch.is-off i::after { left: 2px; }

.kpi {
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center;
  background: var(--bl-card); border: 1px solid var(--line); border-radius: var(--r-8); min-width: 0;
}
.kpi-l { font-size: 14px; line-height: 20px; font-weight: 500; }
.kpi-s { font-size: 12px; line-height: 16px; color: var(--bl-grey); }
.kpi-v { margin-top: 4px; font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.kpi-v.gold { color: var(--bl-gold); }

.premium {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 14px;
  border: 1px solid var(--line-input); border-radius: var(--r-6); background: var(--bl-dark); color: #fff;
  font-size: 14px; line-height: 20px;
}
.premium > span { display: inline-flex; align-items: center; gap: 12px; }
.premium svg { width: 16px; height: 16px; }

.info-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-8); background: var(--bl-grey-light); min-width: 0; }
.info-card h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 24px; line-height: 32px; font-weight: 400; letter-spacing: -.02em; }
.info-card h3 svg { width: 20px; height: 20px; }
.info-card p { margin: 0 0 12px; font-size: 15px; line-height: 24px; color: var(--bl-dark-light); }
.info-card p:last-child { margin-bottom: 0; }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 19px; }
.tbl th { background: var(--bl-light); color: var(--bl-dark-light); font-size: 12px; font-weight: 400; text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; }

.skeleton { border-radius: var(--r-6); background: var(--bl-grey-light); animation: bl-pulse 2s ease-in-out infinite; }
@keyframes bl-pulse { 50% { opacity: .5; } }

.i { width: 16px; height: 16px; flex: none; }

/* Print and PDF: Chrome drops elements with a backdrop-filter when printing, so glass turns into a solid tint. */
@media print {
  .glass, .glass--strong, .stat, .btn--glass, .nav, .float-contact, .glass--dark {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  .stat, .glass--strong, .float-contact { background: rgba(255, 255, 255, .78); }
  .glass, .btn--glass, .nav { background: rgba(248, 247, 244, .72); }
  .glass--dark { background: rgba(36, 35, 32, .78); }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
  .btn, .pill { transition: none; }
}
