/* ==========================================================================
   DR DANGER LABS — Master Stylesheet
   Brand: Lab Black / Clinical White / Formula Green / Prescription Red /
          Diagnostic Gold / Steel Grey
   Fonts: Barlow Condensed (headlines) / Inter (body) / IBM Plex Mono (data)
   ========================================================================== */

:root{
  --lab-black:#111315;
  --lab-black-soft:#181b1e;
  --lab-black-card:#1d2124;
  --clinical-white:#ffffff;
  --formula-green:#8dc63f;
  --formula-green-dark:#6ea62b;
  --prescription-red:#d62828;
  --prescription-red-dark:#a91f1f;
  --diagnostic-gold:#f2b134;
  --steel-grey:#66706a;
  --steel-grey-light:#a2aca6;
  --line:rgba(255,255,255,0.10);
  --line-soft:rgba(255,255,255,0.06);
  --shadow:0 20px 50px -20px rgba(0,0,0,0.6);
  --radius-sm:6px;
  --radius-md:14px;
  --radius-lg:22px;
  --container:1220px;
  --ff-head:"Barlow Condensed",Arial Narrow,sans-serif;
  --ff-body:"Inter",Arial,sans-serif;
  --ff-mono:"IBM Plex Mono","Courier New",monospace;
}

*,*::before,*::after{box-sizing:border-box;}
/* overflow-x on the root propagates to the viewport, so it stops the
   off-canvas menu panel creating a sideways scroll on phones without
   breaking the sticky header */
html{scroll-behavior:smooth;background:var(--lab-black);overflow-x:hidden;}
/* --------------------------------------------------------------------------
   The base surface: fine carbon-fibre weave under a honeycomb lattice, with
   soft brand-coloured light pooling in the corners. Everything else in the
   site is a panel that floats above this.
   -------------------------------------------------------------------------- */
body{
  margin:0;
  color:var(--clinical-white);
  font-family:var(--ff-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  background-color:#0d0f11;
  background-image:
    /* corner light pools for depth */
    radial-gradient(100% 60% at 50% 0%,rgba(214,40,40,.10),transparent 62%),
    radial-gradient(80% 55% at 100% 42%,rgba(141,198,63,.06),transparent 60%),
    /* honeycomb lattice */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104' viewBox='0 0 60 104'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.055' stroke-width='1.1'%3E%3Cpath d='M30 1 L59 18 L59 52 L30 69 L1 52 L1 18 Z'/%3E%3Cpath d='M30 53 L59 70 L59 104 L30 121 L1 104 L1 70 Z'/%3E%3C/g%3E%3C/svg%3E"),
    /* carbon-fibre twill */
    repeating-linear-gradient(45deg,rgba(255,255,255,.014) 0 2px,transparent 2px 4px),
    repeating-linear-gradient(-45deg,rgba(0,0,0,.22) 0 2px,transparent 2px 4px);
  background-size:auto,auto,60px 104px,8px 8px,8px 8px;
  background-attachment:fixed,fixed,scroll,scroll,scroll;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
button{font-family:inherit;}
.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:24px;
}
section{position:relative;}
.section-pad{padding:88px 0;}
@media (max-width:760px){
  .section-pad{padding:56px 0;}
}

/* ---- Laboratory hex panels — translucent surfaces that sit above the
       carbon body and separate one band of content from the next ---- */
.hex-bg{
  background-color:rgba(20,23,26,.62);
  background-image:
    radial-gradient(85% 130% at 18% 0%,rgba(214,40,40,.13),transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104' viewBox='0 0 60 104'%3E%3Cg fill='none' stroke='%238dc63f' stroke-opacity='0.10' stroke-width='1.1'%3E%3Cpath d='M30 1 L59 18 L59 52 L30 69 L1 52 L1 18 Z'/%3E%3Cpath d='M30 53 L59 70 L59 104 L30 121 L1 104 L1 70 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size:auto,60px 104px;
  border-block:1px solid rgba(255,255,255,.055);
}
.hex-bg-soft{
  background-color:rgba(26,30,33,.72);
  background-image:
    linear-gradient(180deg,rgba(255,255,255,.028),transparent 42%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104' viewBox='0 0 60 104'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.055' stroke-width='1.1'%3E%3Cpath d='M30 1 L59 18 L59 52 L30 69 L1 52 L1 18 Z'/%3E%3Cpath d='M30 53 L59 70 L59 104 L30 121 L1 104 L1 70 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size:auto,60px 104px;
  border-block:1px solid rgba(255,255,255,.055);
}
.on-white{background:var(--clinical-white);color:var(--lab-black);}
.on-white .eyebrow{color:var(--prescription-red-dark);}
.on-white .steel{color:var(--steel-grey);}

/* ---- Typography ---- */
h1,h2,h3,h4,.font-head{
  font-family:var(--ff-head);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.01em;
  line-height:1.05;
  margin:0 0 .4em;
}
h1{font-size:clamp(2.4rem,6vw,4.2rem);}
h2{font-size:clamp(1.9rem,4vw,2.9rem);}
h3{font-size:clamp(1.35rem,2.6vw,1.7rem);}
h4{font-size:1.1rem;letter-spacing:0.04em;}
p{margin:0 0 1em;color:rgba(255,255,255,0.82);}
.on-white p{color:rgba(17,19,21,0.78);}
.lede{font-size:1.15rem;color:rgba(255,255,255,0.9);}
.on-white .lede{color:rgba(17,19,21,0.85);}
.mono{font-family:var(--ff-mono);}
.steel{color:var(--steel-grey-light);}
.center{text-align:center;}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--ff-mono);
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--formula-green);
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:20px;height:1px;background:var(--formula-green);
}
.eyebrow.red{color:var(--prescription-red);}
.eyebrow.red::before{background:var(--prescription-red);}
.eyebrow.gold{color:var(--diagnostic-gold);}
.eyebrow.gold::before{background:var(--diagnostic-gold);}

.section-head{max-width:720px;margin-bottom:44px;}
.section-head.center{margin-inline:auto;}

/* ---- Buttons ---- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family:var(--ff-head);
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
  font-size:.98rem;
  padding:14px 26px;
  border-radius:999px;
  border:2px solid transparent;
  cursor:pointer;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease,color .15s ease,border-color .15s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-2px);}
.btn-primary{background:var(--prescription-red);color:#fff;box-shadow:0 10px 26px -10px rgba(214,40,40,.6);}
.btn-primary:hover{background:var(--prescription-red-dark);}
.btn-green{background:var(--formula-green);color:#0f1210;box-shadow:0 10px 26px -10px rgba(141,198,63,.55);}
.btn-green:hover{background:var(--formula-green-dark);}
.btn-outline{background:transparent;border-color:rgba(255,255,255,.4);color:#fff;}
.btn-outline:hover{border-color:#fff;background:rgba(255,255,255,.08);}
.on-white .btn-outline{border-color:rgba(17,19,21,.3);color:var(--lab-black);}
.on-white .btn-outline:hover{border-color:var(--lab-black);background:rgba(17,19,21,.06);}
.btn-block{width:100%;}
.btn-sm{padding:10px 18px;font-size:.85rem;}
.btn[disabled]{opacity:.5;cursor:not-allowed;transform:none;}
.btn-row{display:flex;flex-wrap:wrap;gap:14px;}
.btn-icon{flex:none;}

/* ==========================================================================
   HEADER — two-tier: brand bar on top, dedicated navigation bar beneath.
   Gives the logo real presence and lets all eight nav items breathe in
   their own full-width row instead of fighting the logo for space.
   ========================================================================== */
.site-header{
  position:sticky;top:0;z-index:200;
  background:linear-gradient(180deg,rgba(13,15,17,.97),rgba(17,19,21,.94));
  backdrop-filter:blur(14px) saturate(120%);
  border-bottom:1px solid rgba(255,255,255,.09);
  box-shadow:0 18px 40px -28px rgba(0,0,0,.9);
}
/* thin brand accent line along the very top of the page */
.site-header::before{
  content:"";position:absolute;inset:0 0 auto 0;height:3px;
  background:linear-gradient(90deg,var(--prescription-red),var(--diagnostic-gold) 42%,var(--formula-green));
  opacity:.9;
}
.header-bar{
  position:relative;
  background-image:
    radial-gradient(120% 180% at 12% 0%,rgba(214,40,40,.16),transparent 58%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M28 0 L56 16 L56 50 L28 66 L0 50 L0 16 Z'/%3E%3Cpath d='M28 34 L56 50 L56 84 L28 100 L0 84 L0 50 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size:auto,56px 100px;
}
/* the header runs wider than the 1220px content column so the eight nav
   items have room to sit on a single line on desktop */
.site-header .container{max-width:1560px;}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding-block:18px;gap:20px;flex-wrap:nowrap;
}
.brand{display:flex;align-items:center;gap:10px;flex:none;}
.brand-mark{width:42px;height:42px;flex:none;}
.brand-word{
  font-family:var(--ff-head);
  font-weight:800;
  font-size:1.5rem;
  letter-spacing:.02em;
  line-height:1;
  text-transform:uppercase;
}
.brand-word span{color:var(--prescription-red);}
.brand-tag{
  display:block;
  font-family:var(--ff-mono);
  font-size:.6rem;
  letter-spacing:.14em;
  color:var(--formula-green);
  text-transform:uppercase;
  margin-top:2px;
}
.brand-logo{
  height:74px;
  width:auto;
  max-width:none;
  display:block;
  flex:none;
  transition:height .25s ease;
  filter:drop-shadow(0 4px 16px rgba(214,40,40,.35));
}
/* shrink the brand bar once the page scrolls, so the nav stays reachable */
.site-header.is-compact .brand-logo{height:54px;}
.site-header.is-compact .header-inner{padding-block:10px;}
.footer-brand .brand-logo{height:104px;}
@media (max-width:1100px){
  .brand-logo{height:64px;}
  .footer-brand .brand-logo{height:88px;}
}
@media (max-width:640px){
  .brand-logo{height:54px;}
  .site-header.is-compact .brand-logo{height:44px;}
  .footer-brand .brand-logo{height:74px;}
  .header-inner{padding-block:12px;}
}
/* ---- The navigation bar (its own full-width tier) ---- */
.main-nav{
  border-top:1px solid rgba(255,255,255,.07);
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.012));
}
.nav-panel-title{display:none;}
.main-nav ul{
  display:flex;align-items:center;justify-content:center;
  flex-wrap:wrap;
  gap:6px 4px;
  padding-block:7px;
}
.main-nav a{
  position:relative;
  display:block;
  padding:12px 18px;
  font-family:var(--ff-head);
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:1rem;
  border-radius:8px;
  color:rgba(255,255,255,.86);
  white-space:nowrap;
  transition:color .18s ease,background .18s ease;
}
/* the underline that grows on hover — the main "this is clickable" cue */
.main-nav a::after{
  content:"";
  position:absolute;left:18px;right:18px;bottom:6px;height:2px;
  background:var(--formula-green);
  transform:scaleX(0);transform-origin:center;
  transition:transform .22s ease;
}
.main-nav a:hover{color:#fff;background:rgba(255,255,255,.07);}
.main-nav a:hover::after{transform:scaleX(1);}
.main-nav a:focus-visible{outline:2px solid var(--formula-green);outline-offset:-2px;}
.main-nav a.active{
  color:#fff;
  background:linear-gradient(180deg,rgba(141,198,63,.20),rgba(141,198,63,.10));
  box-shadow:inset 0 0 0 1px rgba(141,198,63,.42);
}
.main-nav a.active::after{transform:scaleX(1);}
.header-cta{display:flex;align-items:center;gap:10px;flex:none;}
.nav-toggle{
  display:none;
  width:48px;height:48px;border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.05);
  color:#fff;
  align-items:center;justify-content:center;cursor:pointer;
  transition:background .2s ease,border-color .2s ease;
  z-index:198;
}
.nav-toggle:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.3);}
.nav-toggle span{
  display:block;width:22px;height:2px;background:#fff;position:relative;border-radius:2px;
  transition:background .2s ease;
}
.nav-toggle span::before,.nav-toggle span::after{
  content:"";position:absolute;left:0;width:22px;height:2px;background:#fff;border-radius:2px;
  transition:transform .25s ease,top .2s ease;
}
.nav-toggle span::before{top:-7px;}
.nav-toggle span::after{top:7px;}
/* burger morphs into a close X while the panel is open */
.nav-toggle[aria-expanded="true"] span{background:transparent;}
.nav-toggle[aria-expanded="true"] span::before{top:0;transform:rotate(45deg);}
.nav-toggle[aria-expanded="true"] span::after{top:0;transform:rotate(-45deg);}

/* --------------------------------------------------------------------------
   COLLAPSED NAV — the slide-in panel behind the burger.
   main.js adds .nav-collapsed to the header whenever the eight items can't
   sit on a single tidy line (always on tablet/phone, and on any desktop
   width where they'd otherwise wrap). That way the nav is only ever one
   clean row or one clean panel — never a ragged half-empty second row.
   Without JavaScript the nav simply stays a visible wrapping bar, so every
   link still works.
   -------------------------------------------------------------------------- */
.site-header.nav-collapsed .main-nav{
  position:fixed;inset:0 0 0 auto;
  width:min(340px,88vw);height:100dvh;
  background:linear-gradient(180deg,#1b1f22,#141719);
  border-left:1px solid var(--line);
  border-top:none;
  padding:0 0 32px;
  transform:translateX(100%);
  transition:transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  z-index:196;
  box-shadow:-24px 0 60px -20px rgba(0,0,0,.8);
}
.site-header.nav-collapsed .main-nav.open{transform:translateX(0);}
.site-header.nav-collapsed .nav-inner{padding-top:104px;}
.site-header.nav-collapsed .nav-panel-title{
  display:block;
  font-family:var(--ff-mono);
  font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--formula-green);
  margin:0 0 14px;padding-left:4px;
}
.site-header.nav-collapsed .main-nav ul{
  flex-direction:column;align-items:stretch;justify-content:flex-start;
  gap:6px;padding-block:0;flex-wrap:nowrap;
}
.site-header.nav-collapsed .main-nav a{
  padding:15px 16px;font-size:1.08rem;border-radius:10px;
  background:rgba(255,255,255,.04);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
}
.site-header.nav-collapsed .main-nav a::after{display:none;}
.site-header.nav-collapsed .main-nav a:hover,
.site-header.nav-collapsed .main-nav a:active{background:rgba(255,255,255,.1);}
.site-header.nav-collapsed .main-nav a.active{
  background:linear-gradient(90deg,rgba(141,198,63,.22),rgba(141,198,63,.06));
  box-shadow:inset 0 0 0 1px rgba(141,198,63,.5);
}
.site-header.nav-collapsed .nav-toggle{display:inline-flex;}
.site-header.nav-collapsed .nav-scrim{
  position:fixed;inset:0;background:rgba(0,0,0,.62);
  backdrop-filter:blur(2px);
  opacity:0;pointer-events:none;transition:opacity .28s ease;z-index:190;
}
.site-header.nav-collapsed .nav-scrim.open{opacity:1;pointer-events:auto;}
body.nav-open{overflow:hidden;}
/* while JS is measuring, force a single line so we can tell if it overflows */
.site-header.nav-measuring .main-nav ul{flex-wrap:nowrap;}
/* Mirror of the rules above for tablet/phone widths, so the panel layout is
   correct on the very first paint — before JavaScript has measured anything.
   Keep these two blocks in step if you restyle the menu. */
@media (max-width:900px){
  .site-header .main-nav{
    position:fixed;inset:0 0 0 auto;
    width:min(340px,88vw);height:100dvh;
    background:linear-gradient(180deg,#1b1f22,#141719);
    border-left:1px solid var(--line);
    border-top:none;
    padding:0 0 32px;
    transform:translateX(100%);
    transition:transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    z-index:196;
    box-shadow:-24px 0 60px -20px rgba(0,0,0,.8);
  }
  .site-header .main-nav.open{transform:translateX(0);}
  .site-header .nav-inner{padding-top:104px;}
  .site-header .nav-panel-title{
    display:block;
    font-family:var(--ff-mono);
    font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;
    color:var(--formula-green);
    margin:0 0 14px;padding-left:4px;
  }
  .site-header .main-nav ul{
    flex-direction:column;align-items:stretch;justify-content:flex-start;
    gap:6px;padding-block:0;flex-wrap:nowrap;
  }
  .site-header .main-nav a{
    padding:15px 16px;font-size:1.08rem;border-radius:10px;
    background:rgba(255,255,255,.04);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
  }
  .site-header .main-nav a::after{display:none;}
  .site-header .main-nav a:hover,
  .site-header .main-nav a:active{background:rgba(255,255,255,.1);}
  .site-header .main-nav a.active{
    background:linear-gradient(90deg,rgba(141,198,63,.22),rgba(141,198,63,.06));
    box-shadow:inset 0 0 0 1px rgba(141,198,63,.5);
  }
  .site-header .nav-toggle{display:inline-flex;}
  .site-header .nav-scrim{
    position:fixed;inset:0;background:rgba(0,0,0,.62);
    backdrop-filter:blur(2px);
    opacity:0;pointer-events:none;transition:opacity .28s ease;z-index:190;
  }
  .site-header .nav-scrim.open{opacity:1;pointer-events:auto;}
  .site-header.nav-measuring .main-nav ul{flex-wrap:nowrap;}
}

/* Slightly tighter nav items on smaller laptops, so all eight keep sharing
   one line down to a lower width before the burger takes over. */
@media (min-width:901px) and (max-width:1499px){
  .main-nav a{padding:12px 13px;font-size:.95rem;letter-spacing:.04em;}
  .main-nav a::after{left:13px;right:13px;}
}

/* Phones: WhatsApp button becomes a clean icon-only circle so the bigger
   logo, the button and the burger all keep comfortable tap spacing. */
@media (max-width:560px){
  .header-cta .btn-label{display:none;}
  .header-cta .btn-primary.btn-sm{
    width:46px;height:46px;padding:0;border-radius:50%;flex:none;
  }
  .header-cta .btn-icon{width:20px;height:20px;}
  .header-cta{gap:8px;}
}

/* ---- Hero ---- */
.hero{
  padding:96px 0 80px;
  overflow:hidden;
}
.hero-grid{
  display:grid;grid-template-columns:1.1fr .9fr;gap:52px;align-items:center;
}
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;}
}
.hero h1{margin-bottom:.3em;}
.hero-logo{max-width:420px;width:100%;height:auto;margin-bottom:22px;filter:drop-shadow(0 8px 24px rgba(214,40,40,.3));}
.hero-sub{font-size:1.05rem;color:var(--diagnostic-gold);font-family:var(--ff-mono);letter-spacing:.04em;text-transform:uppercase;margin-bottom:18px;}
.hero-visual{
  position:relative;
  border-radius:var(--radius-lg);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.hero-visual img{width:100%;height:100%;object-fit:cover;}
.hero-stamp{
  position:absolute;top:18px;right:18px;
  background:rgba(17,19,21,.85);
  border:1px solid var(--formula-green);
  color:var(--formula-green);
  font-family:var(--ff-mono);
  font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;
  padding:6px 12px;border-radius:999px;
}
.trust-bar{
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  padding:22px 0;
}
.trust-row{display:flex;flex-wrap:wrap;gap:28px;justify-content:space-between;align-items:center;}
.trust-item{display:flex;align-items:center;gap:10px;font-family:var(--ff-mono);font-size:.82rem;letter-spacing:.03em;color:var(--steel-grey-light);text-transform:uppercase;}
.trust-item svg{flex:none;color:var(--formula-green);}

/* ---- Cards ---- */
.grid{display:grid;gap:26px;}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}
.grid-2{grid-template-columns:repeat(2,1fr);}
@media (max-width:980px){.grid-4{grid-template-columns:repeat(2,1fr);}.grid-3{grid-template-columns:repeat(2,1fr);}}
@media (max-width:640px){.grid-4,.grid-3,.grid-2{grid-template-columns:1fr;}}

.card{
  position:relative;
  background:linear-gradient(165deg,rgba(42,47,52,.92),rgba(25,28,31,.94));
  border:1px solid rgba(255,255,255,.09);
  border-radius:var(--radius-md);
  padding:28px;
  box-shadow:0 18px 40px -26px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.07);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.card:hover{
  transform:translateY(-4px);
  border-color:rgba(141,198,63,.42);
  box-shadow:0 26px 54px -24px rgba(0,0,0,.95),inset 0 1px 0 rgba(255,255,255,.1);
}
.card-icon{
  width:52px;height:52px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(141,198,63,.12);color:var(--formula-green);
  margin-bottom:18px;
}
.card h3{margin-bottom:.35em;}
.card p:last-child{margin-bottom:0;}
.card-link{
  display:inline-flex;align-items:center;gap:6px;margin-top:14px;
  font-family:var(--ff-mono);font-size:.82rem;letter-spacing:.04em;text-transform:uppercase;
  color:var(--formula-green);
}

/* ---- Product / formula cards ---- */
.formula-toolbar{
  display:flex;flex-wrap:wrap;gap:10px;margin-bottom:36px;
}
.chip{
  font-family:var(--ff-mono);
  font-size:.78rem;letter-spacing:.05em;text-transform:uppercase;
  padding:9px 16px;border-radius:999px;
  border:1px solid var(--line);background:transparent;color:rgba(255,255,255,.75);
  cursor:pointer;transition:all .15s ease;
}
.chip:hover{border-color:var(--formula-green);color:#fff;}
.chip.active{background:var(--formula-green);border-color:var(--formula-green);color:#0f1210;}

.formula-card{
  background:linear-gradient(165deg,rgba(42,47,52,.92),rgba(24,27,30,.95));
  border:1px solid rgba(255,255,255,.09);
  border-radius:var(--radius-md);
  overflow:hidden;
  display:flex;flex-direction:column;
  box-shadow:0 18px 40px -26px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.07);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.formula-card:hover{
  transform:translateY(-6px);
  border-color:rgba(141,198,63,.4);
  box-shadow:0 30px 60px -22px rgba(0,0,0,.95),inset 0 1px 0 rgba(255,255,255,.1);
}
.formula-media{position:relative;aspect-ratio:16/9;overflow:hidden;background:#000;}
.formula-media img{width:100%;height:100%;object-fit:cover;}
.formula-id{
  position:absolute;top:12px;left:12px;
  background:rgba(17,19,21,.82);border:1px solid var(--line);
  font-family:var(--ff-mono);font-size:.68rem;letter-spacing:.08em;
  color:var(--formula-green);padding:4px 10px;border-radius:6px;
}
.formula-status{
  position:absolute;top:12px;right:12px;
  font-family:var(--ff-mono);font-size:.65rem;letter-spacing:.08em;text-transform:uppercase;
  padding:4px 10px;border-radius:6px;
  background:rgba(17,19,21,.82);border:1px solid var(--diagnostic-gold);color:var(--diagnostic-gold);
}
.formula-status.approved{border-color:var(--formula-green);color:var(--formula-green);}
.formula-body{padding:22px;display:flex;flex-direction:column;gap:10px;flex:1;}
.formula-name{font-size:1.5rem;margin:0;}
.formula-line{font-family:var(--ff-mono);font-size:.85rem;color:var(--steel-grey-light);}
.formula-tags{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 8px;}
.tag{
  font-family:var(--ff-mono);font-size:.7rem;letter-spacing:.04em;text-transform:uppercase;
  padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.06);color:rgba(255,255,255,.75);
}
.formula-foot{margin-top:auto;display:flex;gap:10px;flex-wrap:wrap;padding-top:8px;}

/* colour accent utility dots used in filter legend */
.dot{width:10px;height:10px;border-radius:50%;display:inline-block;}

/* ---- Rx Prescription card component ---- */
.rx-card{
  background:var(--clinical-white);
  color:var(--lab-black);
  border-radius:var(--radius-md);
  padding:28px;
  position:relative;
  box-shadow:var(--shadow);
  border-top:6px solid var(--prescription-red);
}
.rx-head{display:flex;align-items:center;gap:14px;margin-bottom:16px;padding-bottom:14px;border-bottom:1px dashed rgba(17,19,21,.25);}
.rx-mark{
  width:44px;height:44px;border:2px solid var(--prescription-red);border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--ff-head);font-weight:800;color:var(--prescription-red);font-size:1.3rem;flex:none;
}
.rx-head-text{line-height:1.2;}
.rx-head-text strong{display:block;font-family:var(--ff-head);text-transform:uppercase;font-size:1rem;}
.rx-head-text span{font-family:var(--ff-mono);font-size:.72rem;color:var(--steel-grey);text-transform:uppercase;letter-spacing:.06em;}
.rx-list{display:flex;flex-direction:column;gap:8px;margin-bottom:16px;}
.rx-list li{display:flex;gap:10px;font-size:.95rem;color:inherit;align-items:flex-start;}
.rx-list li::before{content:"✔";color:var(--formula-green-dark);font-weight:700;flex:none;}
.rx-card .rx-list li{color:rgba(17,19,21,.85);}
.rx-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;font-family:var(--ff-mono);font-size:.72rem;color:var(--steel-grey);text-transform:uppercase;letter-spacing:.05em;flex-wrap:wrap;}
.rx-approved{
  display:inline-flex;align-items:center;gap:6px;
  color:var(--prescription-red);border:2px solid var(--prescription-red);
  padding:4px 10px;border-radius:6px;transform:rotate(-3deg);font-weight:800;
}

/* ---- Stats / numbers ---- */
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;}
@media (max-width:760px){.stat-grid{grid-template-columns:repeat(2,1fr);}}
.stat{
  text-align:center;padding:22px 20px;
  border:1px solid rgba(255,255,255,.09);border-radius:var(--radius-md);
  background:linear-gradient(165deg,rgba(42,47,52,.9),rgba(24,27,30,.94));
  box-shadow:0 16px 36px -26px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.07);
}
.stat b{display:block;font-family:var(--ff-head);font-size:2.4rem;color:var(--formula-green);}
.stat span{font-family:var(--ff-mono);font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;color:var(--steel-grey-light);}

/* ---- Tiers table (technician programme) ---- */
.tier-table{width:100%;border-collapse:collapse;overflow:hidden;border-radius:var(--radius-md);border:1px solid var(--line);}
.tier-table th,.tier-table td{padding:16px 18px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top;}
.tier-table thead th{background:var(--lab-black-card);font-family:var(--ff-head);text-transform:uppercase;letter-spacing:.04em;font-size:.85rem;color:var(--formula-green);}
.tier-table tbody tr:last-child td{border-bottom:none;}
.tier-table tbody tr:nth-child(odd){background:rgba(255,255,255,.02);}
.tier-name{font-family:var(--ff-head);text-transform:uppercase;letter-spacing:.03em;font-size:1.05rem;}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;}

/* ---- Accordion (FAQ) ---- */
.accordion{border-top:1px solid var(--line);}
.accordion-item{border-bottom:1px solid var(--line);}
.accordion-trigger{
  width:100%;display:flex;justify-content:space-between;align-items:center;gap:16px;
  background:none;border:none;color:#fff;text-align:left;
  padding:20px 4px;cursor:pointer;font-family:var(--ff-head);
  font-size:1.05rem;letter-spacing:.02em;text-transform:uppercase;
}
.accordion-trigger .plus{font-size:1.4rem;color:var(--formula-green);transition:transform .2s ease;flex:none;}
.accordion-item.open .plus{transform:rotate(45deg);}
.accordion-panel{max-height:0;overflow:hidden;transition:max-height .25s ease;}
.accordion-panel-inner{padding:0 4px 20px;}

/* ---- Banner / campaign strip ---- */
.banner{
  background:linear-gradient(120deg,var(--prescription-red-dark),var(--prescription-red));
  color:#fff;padding:64px 0;text-align:center;
}
.banner h2{margin-bottom:10px;}
.banner p{color:rgba(255,255,255,.9);max-width:560px;margin-inline:auto 1em;}

/* ---- Forms ---- */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
@media (max-width:640px){.form-grid{grid-template-columns:1fr;}}
.field{display:flex;flex-direction:column;gap:6px;}
.field.full{grid-column:1/-1;}
.field label{font-family:var(--ff-mono);font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;color:var(--steel-grey-light);}
.field input,.field select,.field textarea{
  background:var(--lab-black-soft);border:1px solid var(--line);border-radius:var(--radius-sm);
  padding:13px 14px;color:#fff;font-family:var(--ff-body);font-size:.98rem;
}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--formula-green);outline-offset:1px;border-color:var(--formula-green);}
.field textarea{resize:vertical;min-height:120px;}
.hp-field{position:absolute;left:-9999px;top:-9999px;}
.form-note{font-size:.85rem;color:var(--steel-grey-light);}
.form-status{margin-top:14px;font-family:var(--ff-mono);font-size:.85rem;}
.form-status.ok{color:var(--formula-green);}
.form-status.err{color:var(--prescription-red);}

/* ---- Badges / hazard divider ---- */
.hazard-divider{
  height:10px;
  background-image:repeating-linear-gradient(135deg,var(--diagnostic-gold) 0 18px,var(--lab-black) 18px 36px);
  opacity:.9;
}
.badge{
  display:inline-flex;align-items:center;gap:6px;
  border:1px solid var(--line);border-radius:999px;padding:6px 14px;
  font-family:var(--ff-mono);font-size:.72rem;letter-spacing:.05em;text-transform:uppercase;color:var(--steel-grey-light);
}

/* ---- Two column content blocks ---- */
.split{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center;}
@media (max-width:900px){.split{grid-template-columns:1fr;}}
.split img,.split .rx-card{width:100%;}

/* ---- Timeline (roadmap style) ---- */
.timeline{display:flex;flex-direction:column;gap:0;border-left:2px solid var(--line);margin-left:10px;}
.timeline li{position:relative;padding:0 0 34px 30px;}
.timeline li::before{
  content:"";position:absolute;left:-7px;top:2px;width:12px;height:12px;border-radius:50%;
  background:var(--formula-green);box-shadow:0 0 0 4px rgba(141,198,63,.18);
}
.timeline li:last-child{padding-bottom:0;}
.timeline b{display:block;font-family:var(--ff-head);text-transform:uppercase;letter-spacing:.03em;font-size:1.05rem;margin-bottom:2px;}

/* ---- Footer ---- */
.site-footer{background:var(--lab-black-soft);border-top:1px solid var(--line);padding:64px 0 28px;}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:36px;margin-bottom:44px;}
@media (max-width:860px){.footer-grid{grid-template-columns:1fr 1fr;}}
@media (max-width:520px){.footer-grid{grid-template-columns:1fr;}}
.footer-grid h4{color:var(--formula-green);margin-bottom:16px;}
.footer-grid ul{display:flex;flex-direction:column;gap:10px;}
.footer-grid a:hover{color:var(--formula-green);}
.footer-brand p{max-width:320px;}
.footer-social{display:flex;gap:12px;margin-top:16px;}
.footer-social a{
  width:38px;height:38px;border:1px solid var(--line);border-radius:50%;
  display:flex;align-items:center;justify-content:center;color:#fff;
}
.footer-social a:hover{border-color:var(--formula-green);color:var(--formula-green);}
.footer-bottom{
  border-top:1px solid var(--line);padding-top:24px;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;
  font-size:.82rem;color:var(--steel-grey-light);
}
.footer-bottom a:hover{color:#fff;}
.footer-safety{
  font-size:.78rem;color:var(--steel-grey-light);border-top:1px solid var(--line);
  margin-top:24px;padding-top:20px;line-height:1.7;
}

/* ---- Page hero (inner pages) ---- */
.page-hero{padding:64px 0 48px;border-bottom:1px solid var(--line);}
.breadcrumb{font-family:var(--ff-mono);font-size:.78rem;color:var(--steel-grey-light);letter-spacing:.05em;text-transform:uppercase;margin-bottom:14px;}
.breadcrumb a:hover{color:var(--formula-green);}

/* ---- Back to top ---- */
.to-top{
  position:fixed;right:22px;bottom:22px;z-index:150;
  width:46px;height:46px;border-radius:50%;
  background:var(--formula-green);color:#0f1210;
  display:flex;align-items:center;justify-content:center;
  border:none;cursor:pointer;box-shadow:var(--shadow);
  opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;
}
.to-top.show{opacity:1;pointer-events:auto;}

/* ---- misc ---- */
.mb-0{margin-bottom:0;}
.muted{color:var(--steel-grey-light);}
.divider{height:1px;background:var(--line);margin:48px 0;}
.pill-list{display:flex;flex-wrap:wrap;gap:10px;}
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.skip-link{
  position:absolute;left:-9999px;top:auto;background:var(--formula-green);color:#0f1210;
  padding:12px 18px;z-index:999;border-radius:0 0 8px 0;font-family:var(--ff-head);text-transform:uppercase;
}
.skip-link:focus{left:0;top:0;}

/* ==========================================================================
   MOBILE REFINEMENTS
   A large share of Dr Danger's audience browses on a phone on the bank —
   these rules keep the textured background cheap to paint, keep tap targets
   generous, and stop anything overflowing a narrow screen.
   ========================================================================== */
@media (max-width:900px){
  /* fixed backgrounds are expensive to repaint while scrolling on mobile */
  body{background-attachment:scroll,scroll,scroll,scroll,scroll;}
  .page-hero{padding:44px 0 34px;}
  .to-top{right:16px;bottom:16px;}
}
@media (max-width:560px){
  body{font-size:15.5px;}
  .section-pad{padding:48px 0;}
  .hero{padding:56px 0 48px;}
  .card{padding:22px;}
  .lede{font-size:1.05rem;}
  /* stop long formula IDs / emails pushing the layout sideways */
  .mono{word-break:break-word;}
  .btn{min-height:48px;}
  .btn-row .btn{width:100%;}
  .trust-row{gap:16px;}
  .stat-grid{gap:14px;}
  .stat b{font-size:2rem;}
}

/* ==========================================================================
   "THE DOCTOR" — AI consulting chat widget
   Styling lives here so the whole site stays on one stylesheet. The widget
   only appears when doctorWebhookUrl is set in assets/js/config.js.
   ========================================================================== */
.doc-root{position:fixed;right:22px;bottom:22px;z-index:400;}

/* ---- floating launcher ---- */
.doc-launcher{
  position:relative;
  display:inline-flex;align-items:center;gap:10px;
  padding:13px 20px 13px 15px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:linear-gradient(135deg,var(--prescription-red),#b02020);
  color:#fff;cursor:pointer;
  font-family:var(--ff-head);font-weight:700;font-size:1rem;
  letter-spacing:.05em;text-transform:uppercase;
  box-shadow:0 16px 38px -14px rgba(214,40,40,.75),inset 0 1px 0 rgba(255,255,255,.22);
  transition:transform .18s ease,box-shadow .18s ease;
}
.doc-launcher:hover{transform:translateY(-2px);box-shadow:0 22px 46px -14px rgba(214,40,40,.85),inset 0 1px 0 rgba(255,255,255,.28);}
.doc-launcher:focus-visible{outline:2px solid var(--formula-green);outline-offset:3px;}
.doc-launcher-icon{display:flex;flex:none;}
/* a quiet pulse so anglers notice it's live, without it being a nuisance */
.doc-pulse{
  position:absolute;top:11px;right:13px;width:9px;height:9px;border-radius:50%;
  background:var(--formula-green);box-shadow:0 0 0 0 rgba(141,198,63,.65);
  animation:doc-pulse 2.6s ease-out infinite;
}
@keyframes doc-pulse{
  0%{box-shadow:0 0 0 0 rgba(141,198,63,.6);}
  70%{box-shadow:0 0 0 11px rgba(141,198,63,0);}
  100%{box-shadow:0 0 0 0 rgba(141,198,63,0);}
}
.doc-root.doc-open .doc-launcher{opacity:0;pointer-events:none;transform:scale(.9);}

/* ---- the panel ---- */
.doc-panel{
  position:absolute;right:0;bottom:0;
  width:min(400px,calc(100vw - 32px));
  height:min(620px,calc(100vh - 120px));
  display:flex;flex-direction:column;
  background:linear-gradient(180deg,#16191c,#101315);
  border:1px solid rgba(255,255,255,.12);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 40px 90px -30px rgba(0,0,0,.95),inset 0 1px 0 rgba(255,255,255,.07);
  opacity:0;transform:translateY(16px) scale(.97);transform-origin:100% 100%;
  transition:opacity .22s ease,transform .22s cubic-bezier(.4,0,.2,1);
  pointer-events:none;
}
.doc-panel.open{opacity:1;transform:none;pointer-events:auto;}

.doc-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 14px 14px 16px;
  background:
    radial-gradient(120% 200% at 0% 0%,rgba(214,40,40,.28),transparent 62%),
    linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.015));
  border-bottom:1px solid rgba(255,255,255,.1);
}
.doc-head-id{display:flex;align-items:center;gap:11px;min-width:0;}
.doc-avatar{
  flex:none;width:40px;height:40px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--ff-head);font-weight:800;font-size:1.1rem;
  color:var(--prescription-red);
  background:#fff;box-shadow:0 6px 16px -8px rgba(0,0,0,.9);
}
.doc-head-text{display:flex;flex-direction:column;line-height:1.25;min-width:0;}
.doc-head-text strong{
  font-family:var(--ff-head);font-size:1.2rem;letter-spacing:.04em;text-transform:uppercase;
}
.doc-status{
  display:flex;align-items:center;gap:6px;
  font-family:var(--ff-mono);font-size:.66rem;letter-spacing:.09em;text-transform:uppercase;
  color:var(--steel-grey-light);
}
.doc-dot{width:6px;height:6px;border-radius:50%;background:var(--formula-green);flex:none;}
.doc-head-actions{display:flex;gap:6px;flex:none;}
.doc-icon-btn{
  width:34px;height:34px;border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);
  color:rgba(255,255,255,.8);cursor:pointer;transition:background .15s ease,color .15s ease;
}
.doc-icon-btn:hover{background:rgba(255,255,255,.14);color:#fff;}

/* ---- transcript ---- */
.doc-log{
  flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  padding:18px 16px 6px;
  display:flex;flex-direction:column;gap:12px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104' viewBox='0 0 60 104'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.035' stroke-width='1'%3E%3Cpath d='M30 1 L59 18 L59 52 L30 69 L1 52 L1 18 Z'/%3E%3Cpath d='M30 53 L59 70 L59 104 L30 121 L1 104 L1 70 Z'/%3E%3C/g%3E%3C/svg%3E");
}
.doc-msg{display:flex;flex-direction:column;max-width:88%;}
.doc-msg-user{align-self:flex-end;align-items:flex-end;}
.doc-bubble{
  padding:11px 15px;border-radius:16px;
  font-size:.94rem;line-height:1.55;
  border:1px solid rgba(255,255,255,.08);
}
.doc-msg-doctor .doc-bubble{
  background:linear-gradient(165deg,rgba(45,50,55,.95),rgba(28,32,35,.95));
  border-bottom-left-radius:5px;
}
.doc-msg-user .doc-bubble{
  background:linear-gradient(165deg,var(--prescription-red),#ab2020);
  border-color:rgba(255,255,255,.16);
  border-bottom-right-radius:5px;
}
.doc-bubble p{margin:0 0 .7em;color:rgba(255,255,255,.9);}
.doc-bubble p:last-child{margin-bottom:0;}
.doc-bubble strong{color:#fff;}
.doc-bubble .doc-h{
  display:block;font-family:var(--ff-head);font-size:1.02rem;
  letter-spacing:.05em;text-transform:uppercase;color:var(--formula-green);
  margin-bottom:.25em;
}
.doc-msg-user .doc-bubble .doc-h{color:#fff;}
.doc-bubble ul{margin:.15em 0 .75em;padding-left:2px;}
.doc-bubble ul:last-child{margin-bottom:0;}
.doc-bubble li{
  position:relative;padding-left:18px;margin-bottom:.34em;color:rgba(255,255,255,.88);
  line-height:1.5;
}
.doc-bubble li:last-child{margin-bottom:0;}
.doc-bubble .doc-h + ul{margin-top:.3em;}
.doc-bubble li::before{
  content:"";position:absolute;left:2px;top:.62em;
  width:6px;height:6px;border-radius:50%;background:var(--formula-green);
}
.doc-bubble a{color:var(--formula-green);text-decoration:underline;text-underline-offset:2px;}
.doc-msg-user .doc-bubble a{color:#fff;}

/* typing indicator */
.doc-dots{display:inline-flex;gap:5px;padding:3px 0;}
.doc-dots i{
  width:7px;height:7px;border-radius:50%;background:var(--steel-grey-light);
  animation:doc-blink 1.3s infinite ease-in-out;
}
.doc-dots i:nth-child(2){animation-delay:.18s;}
.doc-dots i:nth-child(3){animation-delay:.36s;}
@keyframes doc-blink{0%,80%,100%{opacity:.28;transform:translateY(0);}40%{opacity:1;transform:translateY(-3px);}}

/* prescription handoff */
.doc-handoff{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin-top:10px;}
.doc-handoff-btn{
  display:inline-flex;align-items:center;gap:9px;
  padding:11px 17px;border-radius:999px;
  background:var(--formula-green);color:#0f1210;
  font-family:var(--ff-head);font-weight:700;font-size:.84rem;
  letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;
  box-shadow:0 12px 26px -12px rgba(141,198,63,.8);
  transition:transform .15s ease,background .15s ease;
}
.doc-handoff-btn:hover{transform:translateY(-2px);background:#9ad348;}
.doc-handoff-link{
  font-family:var(--ff-mono);font-size:.74rem;letter-spacing:.05em;text-transform:uppercase;
  color:var(--steel-grey-light);text-decoration:underline;text-underline-offset:3px;
}
.doc-handoff-link:hover{color:var(--formula-green);}

/* ---- quick-start chips ---- */
.doc-openers{display:flex;flex-wrap:wrap;gap:7px;padding:4px 16px 0;}
.doc-openers:empty{padding:0;}
.doc-chip{
  font-family:var(--ff-mono);font-size:.72rem;letter-spacing:.03em;
  padding:8px 13px;border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.82);cursor:pointer;
  transition:border-color .15s ease,background .15s ease,color .15s ease;
}
.doc-chip:hover{border-color:var(--formula-green);color:#fff;background:rgba(141,198,63,.12);}

/* ---- composer ---- */
.doc-form{
  display:flex;align-items:flex-end;gap:9px;
  padding:12px 14px 6px;
}
.doc-input{
  flex:1;min-width:0;resize:none;
  min-height:46px;
  padding:12px 14px;border-radius:14px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;font-family:var(--ff-body);font-size:.94rem;line-height:1.45;
  max-height:130px;
}
.doc-input::placeholder{color:rgba(255,255,255,.42);}
.doc-input:focus{outline:none;border-color:rgba(141,198,63,.6);background:rgba(255,255,255,.08);}
.doc-send{
  flex:none;width:46px;height:46px;border-radius:14px;border:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  background:var(--prescription-red);color:#fff;
  box-shadow:0 10px 22px -10px rgba(214,40,40,.8);
  transition:background .15s ease,transform .15s ease,opacity .15s ease;
}
.doc-send:hover:not(:disabled){background:var(--prescription-red-dark);transform:translateY(-1px);}
.doc-send:disabled{opacity:.45;cursor:not-allowed;}
.doc-disclaimer{
  margin:0;padding:0 16px 13px;
  font-family:var(--ff-mono);font-size:.63rem;line-height:1.5;
  letter-spacing:.02em;color:rgba(255,255,255,.38);
}

/* keep the back-to-top button clear of the chat launcher */
.to-top{bottom:88px;}

/* ---- phones: full-screen consultation ---- */
@media (max-width:560px){
  .doc-root{right:14px;bottom:14px;}
  .doc-launcher{padding:13px 17px 13px 14px;font-size:.92rem;}
  .doc-launcher-label{display:none;}
  .doc-launcher{width:58px;height:58px;padding:0;justify-content:center;border-radius:50%;}
  .doc-pulse{top:8px;right:10px;}
  .doc-panel{
    position:fixed;inset:0;
    width:100%;height:100%;height:100dvh;
    border-radius:0;border:none;
    transform:translateY(100%);transform-origin:50% 100%;
  }
  .doc-panel.open{transform:none;}
  .doc-head{padding-top:max(14px,env(safe-area-inset-top));}
  .doc-form{padding-bottom:4px;}
  .doc-disclaimer{padding-bottom:max(13px,env(safe-area-inset-bottom));}
  .doc-msg{max-width:92%;}
  body.doc-locked{overflow:hidden;}
  .to-top{bottom:82px;right:14px;}
}

/* ---- Technician login button in the header ---- */
.header-member{white-space:nowrap;}
@media (max-width:860px){
  .header-member .btn-label{display:none;}
  .header-member{width:46px;height:46px;padding:0;border-radius:50%;flex:none;justify-content:center;}
  .header-member .btn-icon{width:19px;height:19px;}
}
@media (max-width:380px){
  .header-member{display:none;}   /* keep the smallest phones uncluttered — it's in the menu */
}
/* Technicians appears only in the slide-in menu — the desktop nav row keeps
   its eight items so it still fits on one line. */
.nav-member-extra{display:none;}
.site-header.nav-collapsed .nav-member-extra{display:block;}
@media (max-width:900px){.site-header .nav-member-extra{display:block;}}

/* ==========================================================================
   PUBLIC PRESCRIPTION TOOL (/prescription.php)
   ========================================================================== */

/* ---- the request form ---- */
.rx-form{
  background:linear-gradient(165deg,rgba(42,47,52,.92),rgba(25,28,31,.94));
  border:1px solid rgba(255,255,255,.09);
  border-radius:var(--radius-md);
  padding:28px;
  box-shadow:0 18px 40px -26px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.07);
}
.rx-form-grid{display:grid;grid-template-columns:2fr 1fr 1.4fr;gap:18px;}
@media (max-width:820px){.rx-form-grid{grid-template-columns:1fr;}}
.rx-field label{
  display:block;margin-bottom:7px;
  font-family:var(--ff-mono);font-size:.72rem;letter-spacing:.1em;
  text-transform:uppercase;color:var(--steel-grey-light);
}
.rx-field .req{color:var(--prescription-red);}
.rx-field select,.rx-field input[type=date]{
  width:100%;padding:13px 14px;border-radius:11px;min-height:50px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.15);
  color:#fff;font-family:var(--ff-body);font-size:1rem;
}
.rx-field select{
  appearance:none;padding-right:38px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a2aca6' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 15px center;
}
.rx-field select:focus,.rx-field input:focus{
  outline:none;border-color:rgba(141,198,63,.65);background:rgba(255,255,255,.08);
}
.rx-check{display:flex;gap:11px;align-items:center;margin-top:18px;font-size:.95rem;}
.rx-check input{width:20px;height:20px;flex:none;accent-color:var(--formula-green);}
.rx-alert{
  margin-top:20px;padding:14px 18px;border-radius:12px;font-size:.95rem;
  background:rgba(242,177,52,.12);border:1px solid rgba(242,177,52,.45);color:#ffe2ab;
}

/* ---- the prescription card itself ---- */
.rx-script{
  background:var(--clinical-white);
  color:var(--lab-black);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:0 40px 90px -40px rgba(0,0,0,.95);
  max-width:880px;margin-inline:auto;
}
.rx-script-head{
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding:26px 32px;
  background:linear-gradient(135deg,var(--prescription-red),#a81f1f);
  color:#fff;
}
.rx-script-id{display:flex;align-items:center;gap:16px;min-width:0;}
.rx-script-mark{
  flex:none;width:54px;height:54px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background:#fff;color:var(--prescription-red);
  font-family:var(--ff-head);font-weight:800;font-size:1.5rem;
}
.rx-script-id strong{
  display:block;font-family:var(--ff-head);font-size:1.6rem;
  letter-spacing:.02em;text-transform:uppercase;line-height:1.1;
}
.rx-script-id span{
  font-family:var(--ff-mono);font-size:.74rem;letter-spacing:.07em;
  text-transform:uppercase;opacity:.9;
}
.rx-stamp{
  flex:none;font-family:var(--ff-head);font-weight:700;font-size:.82rem;
  letter-spacing:.14em;text-transform:uppercase;
  padding:9px 16px;border:2px solid rgba(255,255,255,.7);border-radius:8px;
  transform:rotate(-3deg);
}

/* conditions strip */
.rx-conditions{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));
  gap:16px 20px;padding:22px 32px;
  background:#f1f3f4;border-bottom:1px solid rgba(17,19,21,.1);
}
.rx-conditions span{
  display:block;font-family:var(--ff-mono);font-size:.63rem;letter-spacing:.09em;
  text-transform:uppercase;color:var(--steel-grey);margin-bottom:3px;
}
.rx-conditions strong{font-family:var(--ff-head);font-size:1.15rem;letter-spacing:.02em;}

.rx-block{padding:26px 32px;border-bottom:1px dashed rgba(17,19,21,.18);}
.rx-block:last-of-type{border-bottom:none;}
.rx-block h2{
  font-size:1.15rem;letter-spacing:.09em;color:var(--prescription-red);
  margin-bottom:.7em;
}
.rx-diagnosis{font-size:1.05rem;line-height:1.65;color:rgba(17,19,21,.85);margin:0;}

.rx-species{list-style:none;margin:0;padding:0;counter-reset:rxsp;}
.rx-species li{
  position:relative;padding-left:40px;margin-bottom:14px;counter-increment:rxsp;
}
.rx-species li:last-child{margin-bottom:0;}
.rx-species li::before{
  content:counter(rxsp);position:absolute;left:0;top:1px;
  width:27px;height:27px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:var(--formula-green);color:#0f1210;
  font-family:var(--ff-head);font-weight:800;font-size:.92rem;
}
.rx-species strong{
  display:block;font-family:var(--ff-head);font-size:1.15rem;
  letter-spacing:.02em;text-transform:uppercase;
}
.rx-species span{display:block;font-size:.95rem;color:rgba(17,19,21,.72);}

.rx-dips{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
@media (max-width:680px){.rx-dips{grid-template-columns:1fr;}}
.rx-dip{
  border:1px solid rgba(17,19,21,.14);border-radius:14px;overflow:hidden;
  background:#fafbfb;display:flex;flex-direction:column;
}
.rx-dip img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block;}
.rx-dip-body{padding:16px 18px;}
.rx-dip-slot{
  margin:0 0 4px;font-family:var(--ff-mono);font-size:.64rem;letter-spacing:.11em;
  text-transform:uppercase;color:var(--prescription-red);
}
.rx-dip-body h3{font-size:1.4rem;margin-bottom:.25em;}
.rx-dip-body h3 span{
  font-family:var(--ff-mono);font-size:.68rem;color:var(--steel-grey);
  letter-spacing:.06em;margin-left:5px;
}
.rx-dip-why{margin:0;font-size:.93rem;color:rgba(17,19,21,.72);line-height:1.55;}
.rx-feed{
  margin:18px 0 0;padding:14px 16px;border-radius:12px;
  background:rgba(141,198,63,.14);border:1px solid rgba(141,198,63,.4);
  font-size:.95rem;color:rgba(17,19,21,.82);
}

.rx-run{list-style:none;margin:0;padding:0;}
.rx-run li{
  position:relative;padding-left:20px;margin-bottom:12px;
  font-size:.97rem;line-height:1.6;color:rgba(17,19,21,.8);
}
.rx-run li:last-child{margin-bottom:0;}
.rx-run li::before{
  content:"";position:absolute;left:0;top:.62em;
  width:7px;height:7px;border-radius:50%;background:var(--prescription-red);
}
.rx-run strong{color:var(--lab-black);}

.rx-script-foot{padding:26px 32px 30px;background:#f1f3f4;}
.rx-disclaimer{
  margin:18px 0 0;font-family:var(--ff-mono);font-size:.7rem;line-height:1.6;
  color:var(--steel-grey);
}
.rx-share{
  text-align:center;margin:26px auto 0;max-width:880px;
  font-family:var(--ff-mono);font-size:.74rem;color:var(--steel-grey-light);
}
.rx-share code{
  display:inline-block;margin-top:6px;padding:7px 12px;border-radius:8px;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.8);word-break:break-all;
}

@media (max-width:620px){
  .rx-script-head,.rx-conditions,.rx-block,.rx-script-foot{padding-inline:20px;}
  .rx-script-id strong{font-size:1.3rem;}
  .rx-stamp{font-size:.72rem;padding:7px 12px;}
}

/* printing a prescription should give a clean sheet */
@media print{
  .site-header,.site-footer,.rx-form,.to-top,.doc-root,.rx-share,.page-hero{display:none !important;}
  body{background:#fff !important;}
  .rx-script{box-shadow:none;border:1px solid #ccc;}
  .section-pad{padding:0 !important;}
}

/* The card is a white sheet, so the outline button needs dark ink on it
   rather than the white it uses everywhere else on the site. */
.rx-script .btn-outline{
  border-color:rgba(17,19,21,.3);
  color:var(--lab-black);
}
.rx-script .btn-outline:hover{
  border-color:var(--lab-black);
  background:rgba(17,19,21,.06);
}

/* =========================================================================
   INSTALL TO HOME SCREEN
   A low, dismissible bar. Sits above the iPhone home indicator and above
   Safari's bottom toolbar, which is exactly where the Share button the
   angler needs to tap lives.
   ========================================================================= */
.pwa-install{
  position:fixed;left:12px;right:12px;z-index:400;
  bottom:calc(12px + env(safe-area-inset-bottom,0px));
  display:flex;align-items:center;gap:14px;
  padding:13px 14px;
  background:rgba(29,33,36,.96);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transform:translateY(130%);
  opacity:0;
  transition:transform .28s cubic-bezier(.22,1,.36,1),opacity .28s ease;
}
.pwa-install.show{transform:translateY(0);opacity:1;}
.pwa-install-icon{
  flex:0 0 auto;width:46px;height:46px;border-radius:11px;
  border:1px solid var(--line);
}
.pwa-install-text{flex:1 1 auto;min-width:0;}
.pwa-install-text b{
  display:block;font-family:var(--ff-head);font-weight:700;
  font-size:1.02rem;letter-spacing:.01em;color:var(--clinical-white);
  text-transform:uppercase;line-height:1.2;
}
.pwa-install-text span{
  display:block;margin-top:3px;
  font-size:.82rem;line-height:1.4;color:var(--steel-grey-light);
}
.pwa-install-text span b{
  display:inline;font-size:inherit;text-transform:none;
  font-family:var(--ff-body);font-weight:600;color:var(--clinical-white);
}
.pwa-share{vertical-align:-2px;margin:0 1px;}
.pwa-install-go{flex:0 0 auto;white-space:nowrap;}
.pwa-install-close{
  flex:0 0 auto;width:30px;height:30px;line-height:1;
  background:none;border:none;cursor:pointer;
  color:var(--steel-grey-light);font-size:1.5rem;
  border-radius:50%;
}
.pwa-install-close:hover{color:var(--clinical-white);background:rgba(255,255,255,.07);}

/* Keep the back-to-top button clear of the bar while it is showing. */
body.has-install-bar .to-top{
  bottom:calc(96px + env(safe-area-inset-bottom,0px));
}

@media (max-width:420px){
  .pwa-install{gap:11px;padding:11px 12px;}
  .pwa-install-icon{width:40px;height:40px;}
  .pwa-install-text b{font-size:.95rem;}
  .pwa-install-text span{font-size:.78rem;}
}

/* =========================================================================
   INSTALLED APP
   When launched from the home screen there is no browser chrome, so the
   page itself has to respect the notch and the home indicator.
   ========================================================================= */
@media (display-mode:standalone){
  .site-header{padding-top:env(safe-area-inset-top,0px);}
  .site-footer{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px));}
  .to-top{bottom:calc(22px + env(safe-area-inset-bottom,0px));}
}

/* =========================================================================
   FLOATS
   The float labels are 3:1 — much wider than the 16:9 dip labels — so they
   get their own aspect ratio. Without this the card crops the top and
   bottom off the artwork.
   ========================================================================= */
.formula-media--float{aspect-ratio:3/1;}

/* The range hub: three big cards, one per product line. */
.range-grid{
  display:grid;gap:24px;
  grid-template-columns:repeat(auto-fit,minmax(290px,1fr));
}
.range-card{
  position:relative;display:flex;flex-direction:column;
  background:linear-gradient(165deg,rgba(42,47,52,.92),rgba(24,27,30,.95));
  border:1px solid rgba(255,255,255,.09);
  border-radius:var(--radius-md);overflow:hidden;
  box-shadow:0 18px 40px -26px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.07);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.range-card:not(.is-soon):hover{
  transform:translateY(-6px);
  border-color:rgba(141,198,63,.4);
  box-shadow:0 30px 60px -22px rgba(0,0,0,.95),inset 0 1px 0 rgba(255,255,255,.1);
}
.range-card-media{position:relative;aspect-ratio:3/1;overflow:hidden;background:#000;}
.range-card-media img{width:100%;height:100%;object-fit:cover;}
.range-card-body{padding:24px;display:flex;flex-direction:column;gap:12px;flex:1;}
.range-card-body h3{font-size:1.5rem;margin:0;}
.range-card-count{
  font-family:var(--ff-mono);font-size:.7rem;letter-spacing:.08em;
  text-transform:uppercase;color:var(--formula-green);
}
.range-card .btn{margin-top:auto;align-self:flex-start;}
.range-card.is-soon{opacity:.72;}
.range-card.is-soon .range-card-count{color:var(--diagnostic-gold);}
.range-card-placeholder{
  display:flex;align-items:center;justify-content:center;
  aspect-ratio:3/1;background:var(--lab-black-soft);
  border-bottom:1px solid var(--line);
}
.range-card-placeholder svg{opacity:.3;}

/* "Also in floats" / "Also as a dip" cross-link on a product card. */
.formula-pair{
  display:inline-flex;align-items:center;gap:7px;
  font-family:var(--ff-mono);font-size:.68rem;letter-spacing:.06em;
  text-transform:uppercase;color:var(--steel-grey-light);
  border-top:1px solid var(--line-soft);padding-top:12px;margin-top:2px;
}
.formula-pair a{color:var(--formula-green);text-decoration:none;}
.formula-pair a:hover{text-decoration:underline;}

/* The matching float, under each prescribed dip on the prescription card. */
.rx-dip-float{
  margin-top:8px;font-size:.85rem;line-height:1.45;
  color:var(--lab-black);
}
.rx-dip-float span{
  font-family:var(--ff-mono);font-size:.7rem;letter-spacing:.06em;
  opacity:.65;margin-left:4px;
}
.rx-dip-float--none{opacity:.7;font-style:italic;}
@media print{.rx-dip-float{font-size:.8rem;}}
