/* ==========================================================================
   Lilac Insights — shared design system
   Dark, cinematic, premium biotech. Tokens first, components after.
   ========================================================================== */

:root {
  --bg: #06040F;
  --surface: #0D0A1E;
  --lilac: #9B7FD4;
  --lilac-light: #C8C0E8;
  --lilac-dark: #7B61FF;
  --amber: #FF8C42;
  --teal: #64C8B4;
  --text: #F0EEFF;
  --text-muted: #8A84A8;
  --text-dim: #4A4560;
  --card-bg: rgba(155, 127, 212, 0.055);
  --card-border: rgba(155, 127, 212, 0.13);
  --glow-purple: 0 0 40px rgba(123, 97, 255, 0.25);
  --accent-pink: #EC4899;
  --accent-blue: #3B82F6;
  --accent-teal-2: #14B8A6;
  --accent-amber-2: #F59E0B;
  --font-display: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace;
  --nav-h: 76px;
  --container: 1200px;
  --radius: 18px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Soft tone: inner pages lift out of the cinematic near-black of the
   homepage and the Journey into a dusky plum — still dark, no harsh jump. ---- */
body.tone-soft {
  --bg: #16122A;
  --surface: #1E1838;
  --text-muted: #A39DBE;
  --text-dim: #625C7C;
  --card-bg: rgba(155, 127, 212, 0.085);
  --card-border: rgba(155, 127, 212, 0.22);
}

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

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;            /* no accidental horizontal scroll on small screens / zoom */
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--lilac-light); text-decoration: none; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(123, 97, 255, 0.45); color: var(--text); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--lilac-dark);
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-weight: 200;
  font-size: clamp(42px, 6.4vw, 78px);
  letter-spacing: -0.03em;
  line-height: 1.06;
}

h2 {
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h3 {
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.015em;
}

h4 {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
}

h1 em, h2 em, h3 em {
  font-style: normal;
  color: var(--lilac);
}

p { margin: 0 0 1.1em; max-width: 68ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 18px;
}

.lead {
  font-size: 18.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.mono-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out),
    background-color 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, #7B61FF, #9B7FD4);
  color: #fff;
  border: none;
  box-shadow: 0 4px 22px rgba(123, 97, 255, 0.32);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 34px rgba(123, 97, 255, 0.45);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--lilac-light);
  border: 1.5px solid var(--lilac);
}
.btn-ghost:hover {
  color: var(--text);
  background: rgba(155, 127, 212, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--glow-purple);
}
.btn-ghost:active { transform: translateY(0) scale(0.98); }

/* ---- Navigation ---- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(6, 4, 15, 0.62);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  border-bottom-color: rgba(155, 127, 212, 0.12);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18.5px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-brand em { font-style: normal; font-weight: 200; color: var(--lilac-light); }
.nav-brand:hover { color: var(--text); }
.nav-brand svg { width: 30px; height: 30px; flex: none; }

/* Larger brand lockup in the header */
.site-nav .nav-brand { font-size: 23px; gap: 13px; }
.site-nav .nav-brand svg { width: 44px; height: 44px; }
@media (max-width: 768px) {
  .site-nav .nav-brand { font-size: 20px; gap: 10px; }
  .site-nav .nav-brand svg { width: 38px; height: 38px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav-links > li { position: relative; }

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(155, 127, 212, 0.09); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--lilac);
  transform: translateX(-50%);
}

.nav-sujanan {
  background: linear-gradient(135deg, #D6218F, #EC4899) !important;
  color: white !important;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(214, 33, 143, 0.3);
}

.nav-sujanan:hover {
  background: linear-gradient(135deg, #C21A7D, #DB2E85) !important;
  box-shadow: 0 6px 20px rgba(214, 33, 143, 0.4);
  color: white !important;
}

.nav-sujanan[aria-current="page"]::after {
  background: white;
}

.nav-drop .drop-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 252px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: rgba(13, 10, 30, 0.92);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), var(--glow-purple);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0.22s;
}
.nav-drop:hover .drop-menu,
.nav-drop:focus-within .drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.drop-menu a {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
}
.drop-menu .drop-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 2px;
}
.nav-drop .drop-caret { transition: transform 0.2s ease; }
.nav-drop:hover .drop-caret { transform: rotate(180deg); }

.nav-cta { margin-left: 4px; min-height: 42px; padding: 9px 22px; font-size: 14px; }

.nav-burger {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5.5px;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  cursor: pointer;
  touch-action: manipulation;
}
.nav-burger span {
  display: block;
  width: 19px;
  height: 1.75px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.28s var(--ease-out), opacity 0.2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.25px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.25px) rotate(-45deg); }

.nav-drawer {
  display: none;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  padding: 10px 22px 30px;
  background: rgba(6, 4, 15, 0.92);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--card-border);
}
.nav-drawer ul { list-style: none; margin: 0; padding: 0; }
.nav-drawer a {
  display: block;
  padding: 15px 6px;
  font-size: 17px;
  color: var(--text);
  border-bottom: 1px solid rgba(155, 127, 212, 0.08);
}
.nav-drawer .drawer-sub { padding-left: 22px; font-size: 15px; color: var(--text-muted); }
.nav-drawer .btn { width: 100%; margin-top: 18px; }
.nav-drawer .drawer-phone {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: none;
}

/* ---- Layout primitives ---- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 110px 0; position: relative; }
.section-tight { padding: 76px 0; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered p { margin-inline: auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.divider {
  height: 1px;
  border: none;
  margin: 0;
  background: linear-gradient(90deg, transparent, rgba(155, 127, 212, 0.22), transparent);
}

/* ---- Page hero (inner pages) ---- */

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 96px) 0 84px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -340px;
  left: 50%;
  transform: translateX(-50%);
  width: 980px;
  height: 680px;
  background: radial-gradient(closest-side, rgba(123, 97, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 85% 110%, rgba(100, 200, 180, 0.05), transparent 65%),
    radial-gradient(700px 380px at 10% 100%, rgba(255, 140, 66, 0.045), transparent 65%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .lead { max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---- Cards ---- */

.card {
  position: relative;
  padding: 32px 30px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out);
  will-change: transform;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(155, 127, 212, 0.3);
  box-shadow: var(--glow-purple);
}

.card h3, .card h4 { margin-top: 14px; }
.card p { font-size: 15px; line-height: 1.72; margin-bottom: 0; }
.card p + p { margin-top: 0.9em; }

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(123, 97, 255, 0.12);
  border: 1px solid rgba(155, 127, 212, 0.2);
  color: var(--lilac-light);
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon.icon-teal { color: var(--teal); background: rgba(100, 200, 180, 0.09); border-color: rgba(100, 200, 180, 0.2); }
.card-icon.icon-amber { color: var(--amber); background: rgba(255, 140, 66, 0.09); border-color: rgba(255, 140, 66, 0.2); }

a.card { display: block; color: inherit; }
a.card:hover { color: inherit; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--lilac-light);
}
.card-link svg { width: 15px; height: 15px; transition: transform 0.22s var(--ease-out); }
.card:hover .card-link svg, .card-link:hover svg { transform: translateX(4px); }

.tag-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 0; padding: 0; list-style: none; }
.tag {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(155, 127, 212, 0.05);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ---- Feature / detail lists ---- */

.feature-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 15px; }
.feature-list li { position: relative; padding-left: 30px; font-size: 15.5px; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--lilac-light), var(--lilac-dark));
  box-shadow: 0 0 12px rgba(123, 97, 255, 0.55);
}
.feature-list strong { color: var(--text); font-weight: 500; }

/* ---- Stats ---- */

.stat { text-align: center; padding: 34px 18px; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(44px, 5.4vw, 68px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.stat-value .stat-plus { color: var(--lilac); }
.stat-label {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- Expert / person blocks ---- */

.person { display: flex; gap: 18px; align-items: flex-start; }
.person-avatar {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 19px;
  color: var(--text);
  background: linear-gradient(140deg, rgba(123, 97, 255, 0.34), rgba(100, 200, 180, 0.22));
  border: 1px solid var(--card-border);
}
.person h4 { margin: 4px 0 2px; }
.person p { font-size: 14px; margin: 0; color: var(--text-muted); }

/* ---- Bands / CTA ---- */

.band {
  position: relative;
  border-block: 1px solid var(--card-border);
  background:
    radial-gradient(820px 320px at 18% 0%, rgba(123, 97, 255, 0.12), transparent 65%),
    radial-gradient(700px 300px at 86% 100%, rgba(100, 200, 180, 0.07), transparent 65%),
    var(--surface);
  overflow: hidden;
}

.cta-panel {
  text-align: center;
  padding: 86px 28px;
  border-radius: 26px;
  border: 1px solid var(--card-border);
  background:
    radial-gradient(640px 300px at 50% -40%, rgba(123, 97, 255, 0.2), transparent 70%),
    var(--card-bg);
  overflow: hidden;
}
.cta-panel p { margin-inline: auto; }
.cta-panel .hero-actions { justify-content: center; }

/* ---- Forms ---- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .form-field-full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}
.form-field .req { color: var(--amber); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border-radius: 13px;
  border: 1px solid var(--card-border);
  background: rgba(6, 4, 15, 0.55);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field textarea { min-height: 132px; resize: vertical; }
.form-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%238A84A8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-dim); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--lilac);
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.18);
}
.form-field input[aria-invalid="true"], .form-field textarea[aria-invalid="true"] {
  border-color: rgba(255, 140, 66, 0.7);
}

.form-error {
  display: none;
  margin-top: 7px;
  font-size: 13px;
  color: var(--amber);
}
.form-field.has-error .form-error { display: block; }

.form-success {
  display: none;
  padding: 36px 30px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid rgba(100, 200, 180, 0.3);
  background: rgba(100, 200, 180, 0.07);
}
.form-success.is-visible { display: block; }
.form-success svg { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--teal); }
.form-success h3 { color: var(--text); }

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--card-border);
  background:
    radial-gradient(900px 360px at 50% -120px, rgba(123, 97, 255, 0.09), transparent 70%),
    var(--surface);
  padding: 78px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 56px;
}

.footer-brand p { font-size: 14.5px; max-width: 34ch; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { font-size: 14.5px; color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }
.footer-col address { font-style: normal; font-size: 14.5px; line-height: 1.7; }

.footer-trust {
  border-top: 1px solid rgba(155, 127, 212, 0.09);
  padding: 22px 0;
}
.footer-trust .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 17.6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-bottom {
  border-top: 1px solid rgba(155, 127, 212, 0.09);
  padding: 24px 0;
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---- Reveal on scroll ---- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ---- Responsive ---- */

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }   /* tablets: 3-up → 2-up */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 66px; }

  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-drawer.is-open { display: block; }

  .section { padding: 72px 0; }
  .section-tight { padding: 54px 0; }
  .page-hero { padding: calc(var(--nav-h) + 60px) 0 56px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }

  .container, .nav-inner { padding-inline: 20px; }
  .card { padding: 26px 22px; }
  .cta-panel { padding: 60px 22px; }
}

/* ---- Floating button ---- */

.floating-btn {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  z-index: 100 !important;
  padding: 12px 24px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--lilac-dark) 0%, var(--lilac) 100%) !important;
  box-shadow: 0 8px 32px rgba(123, 97, 255, 0.4) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  font-family: var(--font-body) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  border: none !important;
  transition: all 0.3s var(--ease-out) !important;
  touch-action: manipulation !important;
  -webkit-backdrop-filter: blur(14px) !important;
  backdrop-filter: blur(14px) !important;
  white-space: nowrap !important;
  min-height: 44px !important;
  width: auto !important;
  line-height: 1 !important;
}

.floating-btn:hover {
  box-shadow: 0 12px 48px rgba(123, 97, 255, 0.6) !important;
  background: linear-gradient(135deg, var(--lilac) 0%, var(--lilac-light) 100%) !important;
  transform: translateY(-2px) !important;
}

.floating-btn:active {
  transform: scale(0.95) !important;
}

.floating-btn svg {
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.floating-btn span {
  display: inline !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  white-space: nowrap !important;
}

/* Hide floating button on small screens */
@media (max-width: 768px) {
  .floating-btn {
    padding: 10px 18px !important;
    font-size: 12px !important;
    gap: 8px !important;
    bottom: 20px !important;
    right: 20px !important;
    min-height: 40px !important;
  }

  .floating-btn svg {
    width: 20px !important;
    height: 20px !important;
  }

  .floating-btn:hover {
    transform: translateY(-2px) !important;
  }
}

/* ---- Test Explorer: Expandable Packages & Hyperlinked Tests ---- */

.test-explorer-controls {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.test-explorer-controls select,
.test-explorer-controls input {
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: all 0.3s ease;
}

.test-explorer-controls select:focus,
.test-explorer-controls input:focus {
  outline: none;
  border-color: var(--lilac);
  box-shadow: 0 0 12px rgba(123, 97, 255, 0.2);
}

.test-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
}

.test-table thead {
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.15), rgba(155, 127, 212, 0.1));
  border-bottom: 2px solid var(--card-border);
}

.test-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--lilac-light);
  border-right: 1px solid var(--card-border);
}

.test-table th:last-child {
  border-right: none;
}

.test-table tbody tr {
  border-bottom: 1px solid var(--card-border);
  transition: background 0.2s ease;
}

.test-table tbody tr:hover {
  background: rgba(123, 97, 255, 0.08);
}

.test-table td {
  padding: 14px 16px;
  border-right: 1px solid var(--card-border);
  font-size: 14px;
}

.test-table td:last-child {
  border-right: none;
}

/* Package test rows */
.test-row.package-row {
  background: rgba(236, 72, 153, 0.03);
  font-weight: 500;
}

.test-row.package-row:hover {
  background: rgba(236, 72, 153, 0.08);
}

/* Package sub-rows */
.package-sub-row {
  background: rgba(123, 97, 255, 0.04);
  font-size: 13px;
}

.package-sub-row:hover {
  background: rgba(123, 97, 255, 0.12);
}

.package-sub-row .category-cell {
  opacity: 0.8;
}

/* Expand/collapse button */
.expand-col {
  width: 40px;
  text-align: center;
}

.expand-btn {
  background: none;
  border: none;
  color: var(--lilac);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.expand-btn:hover {
  color: var(--lilac-light);
  background: rgba(123, 97, 255, 0.15);
}

.chevron {
  display: inline-block;
  transition: transform 0.3s ease;
}

.expand-btn.expanded .chevron {
  transform: rotate(0deg);
}

/* Test name cell */
.test-name-cell,
.sub-test-name-cell {
  position: relative;
}

.test-link {
  color: var(--accent-pink);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.test-link:hover {
  color: #FF69B4;
  text-decoration: underline;
}

.test-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-pink);
  transition: width 0.3s ease;
}

.test-link:hover::after {
  width: 100%;
}

.sub-test-name-cell .indent {
  color: var(--text-dim);
  margin-right: 6px;
}

/* Optional badge */
.optional-badge {
  display: inline-block;
  background: rgba(255, 140, 66, 0.2);
  color: var(--amber);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 8px;
  border: 1px solid rgba(255, 140, 66, 0.4);
}

/* Category badge */
.category-badge {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(155, 127, 212, 0.2), rgba(123, 97, 255, 0.15));
  border: 1px solid var(--lilac);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--lilac-light);
  white-space: nowrap;
}

.sub-category {
  display: inline-block;
  padding: 2px 8px;
  background: transparent;
  border: 1px solid var(--text-dim);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-dim);
}

/* Sample type cell */
.sample-type-cell {
  color: var(--accent-teal-2);
  font-weight: 500;
}

/* Panel info (for package tests) */
.sample-tat-col {
  text-align: center;
}

.package-info {
  background: rgba(236, 72, 153, 0.08);
}

.info-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.4);
  border-radius: 6px;
  font-size: 11px;
  color: var(--accent-pink);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* TAT cell */
.tat-cell {
  color: var(--accent-blue);
  font-weight: 500;
  white-space: nowrap;
}

/* Price cell */
.price-cell {
  color: var(--amber);
  font-weight: 600;
  font-family: var(--font-mono);
}

/* Action cell */
.action-cell {
  text-align: center;
}

.view-sample-link {
  color: var(--accent-pink);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(236, 72, 153, 0.3);
  transition: all 0.2s ease;
  display: inline-block;
  font-size: 12px;
}

.view-sample-link:hover {
  background: rgba(236, 72, 153, 0.15);
  border-color: var(--accent-pink);
}

/* Responsive */
@media (max-width: 768px) {
  .test-table {
    font-size: 12px;
  }

  .test-table th,
  .test-table td {
    padding: 10px 8px;
  }

  .category-badge {
    font-size: 11px;
    padding: 2px 6px;
  }

  .optional-badge {
    font-size: 10px;
    padding: 1px 6px;
  }

  .test-explorer-controls {
    flex-direction: column;
  }

  .test-explorer-controls select,
  .test-explorer-controls input {
    width: 100%;
  }
}

/* ---- Panel/Package Test Styling (Test Menu) ---- */

.panel-badge {
  background: rgba(236, 72, 153, 0.2);
  color: var(--accent-pink);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-left: 8px;
  border: 1px solid rgba(236, 72, 153, 0.4);
}

tr.panel-row {
  background: rgba(236, 72, 153, 0.08) !important;
}

tr.panel-row:hover {
  background: rgba(236, 72, 153, 0.15) !important;
}

tr.panel-row .sample-type {
  display: none;
}

tr.panel-row .tat-badge {
  display: none;
}

tr.panel-row td:nth-child(4)::after {
  content: "See individual tests →";
  font-size: 12px;
  color: var(--accent-pink);
  font-weight: 500;
  font-style: italic;
}

tr.panel-row td:nth-child(5)::after {
  content: "Varies";
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  font-style: italic;
}

/* ---- Reduced motion ---- */

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

/* ---- Light sections (About page alternates white / dark) ---- */
.tone-light {
  --bg: #FFFFFF;
  --surface: #F6F4FC;
  --text: #17122E;
  --text-muted: #4E4868;
  --text-dim: #8C86A6;
  --lilac: #6B4FD1;
  --lilac-light: #7B61FF;
  --card-bg: rgba(123, 97, 255, 0.06);
  --card-border: rgba(123, 97, 255, 0.18);
  background: var(--bg);
  color: var(--text-muted);
}
.tone-light.band { background: var(--bg); border-block-color: var(--card-border); }
.page-hero.tone-light::before { background: radial-gradient(closest-side, rgba(123, 97, 255, 0.10), transparent 70%); }
.page-hero.tone-light::after { background: radial-gradient(900px 420px at 85% 110%, rgba(100, 200, 180, 0.08), transparent 65%); }
.tone-light .hq-tag { color: #0E8C6C; opacity: 1; }
.tone-light .hq-logo { background: #0D0A1E; border-radius: 12px; padding: 12px 14px; filter: drop-shadow(0 6px 18px rgba(23, 18, 46, 0.18)); }
.tone-light .tv-roof-label, .tone-light .pp-tier { color: #6B4FD1; }
.tone-light .tv-pillar { background: linear-gradient(180deg, rgba(123, 97, 255, 0.08), rgba(123, 97, 255, 0.02)), repeating-linear-gradient(90deg, transparent 0 16px, rgba(123, 97, 255, 0.05) 16px 19px); }
.tone-light .pp-card { background: rgba(123, 97, 255, 0.05); border-color: rgba(123, 97, 255, 0.22); }
.tone-light .pp-card:hover { box-shadow: 0 10px 28px rgba(23, 18, 46, 0.12); }
.tone-light .pp-av { color: #FFFFFF; background: linear-gradient(135deg, #7B61FF, #9B7FD4); border-color: rgba(123, 97, 255, 0.35); box-shadow: 0 6px 18px rgba(123, 97, 255, 0.28); }
.tone-light .btn-ghost { color: var(--text); border-color: rgba(23, 18, 46, 0.28); }
.tone-light .btn-ghost:hover { background: rgba(123, 97, 255, 0.08); }
/* pages whose first section is light need a solid nav bar */
body.hero-light .site-nav { background: rgba(22, 18, 42, 0.97); border-bottom-color: rgba(155, 127, 212, 0.18); }
/* For you page: bright page, dark path-picker boxes */
.tone-light .aud-tab { --text: #F0EEFF; --text-muted: #8A84A8; --card-border: rgba(155, 127, 212, 0.22); background: #0D0A1E; color: var(--text-muted); }
.tone-light .aud-tab h3 { color: var(--text); }
.tone-light .aud-tab:hover { box-shadow: 0 14px 34px rgba(23, 18, 46, 0.22); }
/* a light-toned body must not re-colour the (always dark) header/drawer */
body.tone-light .site-nav, body.tone-light .site-footer { --text: #F0EEFF; --text-muted: #8A84A8; --text-dim: #4A4560; --surface: #0D0A1E; --card-bg: rgba(155, 127, 212, 0.055); --card-border: rgba(155, 127, 212, 0.13); --lilac: #9B7FD4; --lilac-light: #C8C0E8; color: var(--text-muted); }
body.tone-light .site-footer { background: var(--surface); }
/* Official wordmark (lilacinsights.com), light-text variant for the dark chrome */
.nav-brand .brand-logo { display: block; height: 56px; width: auto; }
.site-footer .nav-brand .brand-logo { height: 48px; }
@media (max-width: 768px) { .nav-brand .brand-logo { height: 38px; } }
/* light pages: form fields on a white card */
.tone-light .form-field input, .tone-light .form-field select, .tone-light .form-field textarea { background: rgba(123, 97, 255, 0.045); color: var(--text); }
