/*
Theme Name: GTR Labs
Theme URI: https://gtechresearch.net
Author: G Tech Research
Description: A modern, clinical WooCommerce theme for research-grade peptides. Light lab aesthetic with live telemetry banner, specimen-style product panels, and a sitewide research-use-only disclosure. Blends Amino Club minimalism with EXOMA blue-authority signaling.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gtrlabs
Tags: e-commerce, woocommerce, light, science, biotech, clinical
*/

/* =============================================
   DESIGN TOKENS  (LIGHT)
   ============================================= */
:root {
  /* surfaces: was near-black voids -> now white / soft blue-white */
  --void:      #FFFFFF;   /* page background */
  --void-2:    #F5F8FC;   /* soft alt background / bands */
  --panel:     #FFFFFF;   /* card background */
  --panel-2:   #F0F5FB;   /* alt panel */
  --line:      #E4EAF2;   /* hairline borders */
  --line-soft: #EEF2F8;   /* softer divider */

  /* ink: was ice-white text -> now navy ink for light bg */
  --ice:       #0F2A4A;   /* primary text (navy) */

  /* accents: cyan-teal -> EXOMA royal/blue authority */
  --cyan:      #1D4ED8;   /* primary accent (was teal) */
  --cyan-dim:  #1E40AF;   /* darker accent */
  --blue:      #0891B2;   /* secondary accent (cyan pop) */

  --muted:     #51617A;   /* muted body text */
  --muted-2:   #8A99AC;   /* faint captions */
  --danger:    #DC2626;

  --grad-signal: linear-gradient(120deg, var(--cyan) 0%, var(--blue) 100%);
  --grad-panel:  linear-gradient(180deg, rgba(29,78,216,0.03), rgba(8,145,178,0.015));

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* glow -> soft blue drop shadow for light mode */
  --glow-cyan: 0 0 0 1px rgba(29,78,216,0.18), 0 18px 40px rgba(29,78,216,0.14);
  --shadow-panel: 0 12px 34px rgba(15,42,74,0.10);

  --maxw: 1240px;
  --pad-section: 104px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ice);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle backdrop: was starfield glow -> now faint blue wash on white */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 15%, rgba(29,78,216,0.05), transparent 42%),
    radial-gradient(circle at 85% 60%, rgba(8,145,178,0.04), transparent 46%);
  pointer-events: none;
}
/* faint technical grid, lightened for white bg */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(15,42,74,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,42,74,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  opacity: 0.7;
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--blue); }
ul { list-style: none; }

::selection { background: var(--cyan); color: #fff; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ice);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p  { max-width: 68ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--cyan);
}

.gradient-text {
  background: var(--grad-signal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 28px;
}
.section { padding-block: var(--pad-section); position: relative; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 12px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.22s ease;
  position: relative;
}
.btn-primary {
  background: var(--grad-signal);
  color: #fff;
  box-shadow: 0 4px 18px rgba(29,78,216,0.24);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(29,78,216,0.34);
}
.btn-ghost {
  background: #fff;
  color: var(--ice);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(29,78,216,0.04);
}

/* =============================================
   LIVE TELEMETRY BANNER
   ============================================= */
#telemetry {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: 38px;
  background: var(--void-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: var(--font-mono);
}
#telemetry .live-dot {
  position: absolute;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 3;
  background: linear-gradient(90deg, var(--void-2) 70%, transparent);
  padding-right: 26px;
  height: 100%;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  font-weight: 600;
}
#telemetry .live-dot span.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(29,78,216,0.6);
  animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(29,78,216,0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(29,78,216,0); }
  100% { box-shadow: 0 0 0 0 rgba(29,78,216,0); }
}
.telem-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: telemScroll 34s linear infinite;
  padding-left: 120px;
  will-change: transform;
}
.telem-track:hover { animation-play-state: paused; }
@keyframes telemScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.telem-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0 26px;
  border-right: 1px solid var(--line-soft);
}
.telem-item b { color: var(--ice); font-weight: 600; }
.telem-item .ok { color: var(--cyan); }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 38px;
  z-index: 200;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ice);
}
.brand:hover { color: var(--ice); }
.brand .mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--grad-signal);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 0 14px rgba(29,78,216,0.3);
  position: relative;
  overflow: hidden;
}
.brand .mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.5) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: markSheen 4s ease-in-out infinite;
}
@keyframes markSheen { 0%,60% { transform: translateX(-120%);} 80%,100% { transform: translateX(120%);} }
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-top: 2px;
}

.primary-nav ul { display: flex; gap: 34px; }
.primary-nav a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width 0.22s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--ice); }
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--ice);
}
.cart-link:hover { color: var(--cyan); }
.cart-link .count {
  position: absolute;
  top: -8px; right: -10px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--ice);
  border-radius: 2px;
  transition: 0.25s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  padding-block: 120px 100px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(29,78,216,0.05);
  border: 1px solid rgba(29,78,216,0.22);
  padding: 7px 15px;
  border-radius: var(--r-pill);
  margin-bottom: 26px;
}
.hero-tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  animation: livePulse 1.8s infinite;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; }
.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.hero-stats .val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ice);
}
.hero-stats .val span { color: var(--cyan); }
.hero-stats .lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Hero visual: molecular node panel */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--grad-panel), var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}
.hero-visual .scanline {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(29,78,216,0.10), transparent);
  animation: scan 5s ease-in-out infinite;
}
@keyframes scan {
  0%,100% { transform: translateY(-120px); opacity: 0; }
  50%     { transform: translateY(360px); opacity: 1; }
}
.hero-visual .readout {
  position: absolute;
  bottom: 18px; left: 18px; right: 18px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.hero-visual .readout b { color: var(--cyan); }

/* =============================================
   MARQUEE STRIP (trust)
   ============================================= */
.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--void-2);
  padding-block: 22px;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
  flex-wrap: wrap;
}
.trust-inner .item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}
.trust-inner .item svg { color: var(--cyan); flex-shrink: 0; }

/* =============================================
   PRODUCT PANELS (WooCommerce + generic)
   ============================================= */
.woocommerce ul.products,
ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 24px;
  margin: 0; padding: 0;
}
.woocommerce ul.products li.product,
ul.products li.product {
  list-style: none;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.woocommerce ul.products li.product::before,
ul.products li.product::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-signal);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 2;
}
.woocommerce ul.products li.product:hover,
ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-cyan);
}
.woocommerce ul.products li.product:hover::before,
ul.products li.product:hover::before { opacity: 1; }

.woocommerce ul.products li.product a img,
ul.products li.product a img,
.woocommerce ul.products li.product img,
ul.products li.product img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--void-2);
  transition: transform 0.5s ease;
}
.woocommerce ul.products li.product > a,
ul.products li.product > a.woocommerce-LoopProduct-link,
ul.products li.product > a {
  display: block;
  position: relative;
  overflow: hidden;
}
.woocommerce ul.products li.product:hover img,
ul.products li.product:hover img { transform: scale(1.06); }

/* spec chip overlay */
.woocommerce ul.products li.product > a::after,
ul.products li.product > a::after {
  content: '≥98% · HPLC';
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(29,78,216,0.3);
  padding: 4px 9px;
  border-radius: var(--r-pill);
  z-index: 3;
  backdrop-filter: blur(4px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2,
ul.products li.product h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ice);
  padding: 18px 18px 6px;
  max-width: 100%;
  line-height: 1.3;
}
.woocommerce ul.products li.product .price,
ul.products li.product .price {
  padding: 0 18px 14px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cyan);
  margin-top: auto;
}
.woocommerce ul.products li.product .price del,
ul.products li.product .price del {
  color: var(--muted-2);
  font-weight: 400;
  margin-right: 7px;
  font-size: 0.85rem;
}
.woocommerce ul.products li.product .price ins,
ul.products li.product .price ins { text-decoration: none; }

.woocommerce ul.products li.product .button,
ul.products li.product .button {
  display: block;
  margin: 0 18px 18px;
  text-align: center;
  background: var(--grad-signal);
  border: 1px solid transparent;
  color: #fff;
  border-radius: var(--r-pill);
  padding: 11px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.woocommerce ul.products li.product .button:hover,
ul.products li.product .button:hover {
  background: var(--cyan-dim);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(29,78,216,0.3);
}
.woocommerce ul.products li.product .added_to_cart,
ul.products li.product .added_to_cart {
  display: block;
  text-align: center;
  margin: -8px 18px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
}
.woocommerce span.onsale {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--danger);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  z-index: 3;
  min-height: auto;
  min-width: auto;
  line-height: 1.4;
}

/* =============================================
   FEATURE CARDS (generic panels)
   ============================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.panel:hover {
  border-color: rgba(29,78,216,0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-panel);
}
.panel .icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: rgba(29,78,216,0.06);
  border: 1px solid rgba(29,78,216,0.2);
  display: grid; place-items: center;
  color: var(--cyan);
  margin-bottom: 18px;
}
.panel h3 { margin-bottom: 10px; }
.panel p { color: var(--muted); font-size: 0.92rem; max-width: 100%; }

/* index number for sequenced panels */
.panel .seq {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}

/* =============================================
   DISCLOSURE BLOCK (sitewide, every page)
   ============================================= */
.disclosure {
  background: var(--void-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--r-md);
  padding: 26px 30px;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--muted);
}
.disclosure .disc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ice);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
}
.disclosure .disc-title .tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(29,78,216,0.35);
  border-radius: var(--r-pill);
  padding: 3px 9px;
}
.disclosure p { max-width: 100%; margin-bottom: 10px; }
.disclosure p:last-child { margin-bottom: 0; }
.disclosure strong { color: var(--ice); font-weight: 600; }

.disclosure-band {
  border-top: 1px solid var(--line);
  background: var(--void);
  padding-block: 46px;
}

/* compact inline disclosure used inside sections */
.disclosure-mini {
  background: rgba(29,78,216,0.03);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--r-sm);
  padding: 16px 20px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}
.disclosure-mini strong { color: var(--ice); }

/* =============================================
   PAGE HERO (interior pages)
   ============================================= */
.page-hero {
  padding-block: 110px 60px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-hero p { color: var(--muted); font-size: 1.12rem; max-width: 60ch; margin-top: 16px; }

/* =============================================
   CONTACT
   ============================================= */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; }
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 34px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover { border-color: rgba(29,78,216,0.35); transform: translateY(-3px); box-shadow: var(--shadow-panel); }
.contact-card .ic {
  width: 54px; height: 54px;
  border-radius: var(--r-md);
  background: rgba(29,78,216,0.06);
  border: 1px solid rgba(29,78,216,0.2);
  display: grid; place-items: center;
  color: var(--cyan);
  margin: 0 auto 18px;
}
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: 0.88rem; margin: 0 auto 18px; max-width: 34ch; }
.contact-value {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(29,78,216,0.06);
  border: 1px solid rgba(29,78,216,0.25);
  color: var(--cyan);
  padding: 9px 18px;
  border-radius: var(--r-pill);
  transition: all 0.2s;
}
.contact-value:hover { background: var(--grad-signal); color: #fff; border-color: transparent; }

/* =============================================
   CTA
   ============================================= */
.cta {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--grad-panel), var(--panel);
  padding: 64px 52px;
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(29,78,216,0.08), transparent 60%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--muted); max-width: 52ch; margin: 0 auto 30px; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--void-2);
  padding-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand { color: var(--ice); margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 0.88rem; max-width: 30ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.9rem; color: var(--muted); }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 24px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-2);
  flex-wrap: wrap;
  gap: 12px;
}

/* =============================================
   WOOCOMMERCE MISC
   ============================================= */
.woocommerce-message, .woocommerce-info {
  background: rgba(29,78,216,0.05);
  border-top: 3px solid var(--cyan);
  color: var(--ice);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.woocommerce-error {
  background: rgba(220,38,38,0.06);
  border-top: 3px solid var(--danger);
  color: var(--ice);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.woocommerce div.product .product_title { font-family: var(--font-display); }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--cyan); font-family: var(--font-mono); }
.woocommerce #respond input#submit,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce div.product form.cart .button {
  background: var(--grad-signal);
  color: #fff;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 13px 30px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce div.product form.cart .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29,78,216,0.3);
}
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.woocommerce table.shop_table th { background: var(--void-2); color: var(--muted); }

/* =============================================
   REVEAL ANIMATION
   ============================================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --pad-section: 68px; }
  .primary-nav {
    display: none;
    position: fixed;
    inset: 114px 0 0 0;
    background: var(--void);
    padding: 36px 28px;
    z-index: 199;
  }
  .primary-nav.open { display: block; }
  .primary-nav.open ul { flex-direction: column; gap: 22px; }
  .primary-nav.open a { font-size: 1.3rem; color: var(--ice); }
  .menu-toggle { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 26px; flex-wrap: wrap; }
  .cta { padding: 40px 26px; }
  #telemetry .live-dot span:not(.dot) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =============================================
   GTR LABS — SHOP PAGE BLEND (Amino Club + EXOMA)
   Append to the bottom of style.css. Uses existing :root tokens.
   ============================================= */

/* ---- Shop hero ---------------------------------------------------------- */
.gtr-shop-hero {
  background: linear-gradient(180deg, rgba(29,78,216,0.05), transparent);
  border-bottom: 1px solid var(--line);
  padding-block: 64px 44px;
  margin-bottom: 44px;
  text-align: center;
}
.gtr-shop-hero__inner {
  max-width: 640px;
  margin-inline: auto;
  padding-inline: 28px;
}
.gtr-shop-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  display: block;
  margin-bottom: 16px;
}
.gtr-shop-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ice);
  margin-bottom: 16px;
}
.gtr-shop-hero__title span { color: var(--cyan); }
.gtr-shop-hero__sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 56ch;
  margin: 0 auto 26px;
}

/* ---- Trust bar ---------------------------------------------------------- */
.gtr-trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.gtr-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  padding: 9px 15px;
  border-radius: var(--r-pill);
}
.gtr-trust-chip b { color: var(--cyan); font-weight: 600; }
.gtr-trust-chip .gtr-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ---- Purity tag on cards ------------------------------------------------ */
/* The loop item hook renders the tag; position it over the image corner. */
.woocommerce ul.products li.product,
ul.products li.product { position: relative; }
.gtr-purity-tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(29,78,216,0.3);
  padding: 4px 9px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
/* Hide the theme's old auto-generated ::after chip so we don't double up. */
.woocommerce ul.products li.product > a::after,
ul.products li.product > a::after { content: none !important; }

/* ---- COA badge ---------------------------------------------------------- */
.gtr-coa-badge {
  display: block;
  padding: 0 18px 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.gtr-coa-badge .gtr-check { color: #16a34a; margin-right: 4px; }
.gtr-coa-badge--yes { color: var(--muted); }

@media (max-width: 560px) {
  .gtr-shop-hero { padding-block: 44px 32px; }
  .gtr-trust-chip { font-size: 0.66rem; padding: 8px 12px; }
}

/* =============================================
   GTR LABS — MINIMAL FOOTER (mockup match)
   Append to bottom of style.css.
   ============================================= */
.site-footer--minimal {
  border-top: 1px solid var(--line);
  background: var(--void);
  padding-top: 0;
}
.site-footer--minimal .footer-min {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding-block: 36px;
}
.site-footer--minimal .footer-min__line {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer--minimal .footer-min__sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  color: var(--muted-2);
}

/* =============================================
   GTR LABS — ANNOUNCE BAR (mockup) + stacking fix
   Announce bar on top, telemetry below it, header below that.
   Append to bottom of style.css.
   ============================================= */
.gtr-announce {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 320;               /* above telemetry (300) */
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 14px;
  background: var(--ice);      /* navy in the light theme */
  color: #dce7f5;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* Push telemetry down below the announce bar */
#telemetry {
  top: 34px !important;
}

/* Push sticky header down below announce (34) + telemetry (38) = 72 */
.site-header {
  top: 72px !important;
}

/* Give the body enough top offset so fixed bars don't cover content.
   Original theme relied on telemetry(38)+header(76). Now announce adds 34. */
body {
  padding-top: 34px;           /* height of the new announce bar */
}

/* Mobile: announce text can wrap; give it a touch more height */
@media (max-width: 560px) {
  .gtr-announce {
    height: auto;
    min-height: 34px;
    padding: 6px 12px;
    font-size: 0.62rem;
  }
  #telemetry { top: 46px !important; }
  .site-header { top: 84px !important; }
  body { padding-top: 46px; }
}

.site-header .brand__logo,
.site-header .brand--logo img,
.brand__logo{
    height: 48px !important;
    width: auto !important;
    max-width: none !important;
    display: block;
    object-fit: contain;
}
@media (max-width: 560px){
    .site-header .brand__logo,
    .brand__logo{ height: 40px !important; }
}
/* keep the readout bar above the image */
.hero-visual .readout { z-index: 3; }
.hero-visual .scanline { z-index: 2; }
/* =============================================
   GTR LABS — BLOCK CHECKOUT STYLING
   Append to the bottom of style.css.
   Matches existing :root tokens. Targets WooCommerce
   block checkout (wc-block-*) — the newer checkout UI.
   ============================================= */

/* ---- Page frame --------------------------------------------------------- */
.wp-block-woocommerce-checkout {
  font-family: var(--font-body);
}
.wc-block-checkout__main {
  padding-right: 40px;
}

/* ---- Section headings --------------------------------------------------- */
.wc-block-components-checkout-step__title,
.wc-block-components-title {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  color: var(--ice) !important;
}
.wc-block-components-checkout-step__heading {
  margin-bottom: 6px;
}
/* numbered step badge -> brand accent */
.wc-block-components-checkout-step__title-content {
  color: var(--cyan) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- Input fields ------------------------------------------------------- */
.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-select select,
.wc-block-components-address-form input,
.wc-blocks-components-select__container {
  border: 1px solid var(--line) !important;
  border-radius: var(--r-sm) !important;
  background: #fff !important;
  color: var(--ice) !important;
  font-family: var(--font-body) !important;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.wc-block-components-text-input input:focus,
.wc-block-components-text-input textarea:focus,
.wc-block-components-select select:focus {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 3px rgba(29,78,216,0.12) !important;
  outline: none !important;
}
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input label {
  color: var(--muted) !important;
}

/* ---- Shipping / payment option cards ------------------------------------ */
.wc-block-components-radio-control__option {
  border: 1px solid var(--line) !important;
  border-radius: var(--r-md) !important;
  padding: 16px 18px 16px 44px !important;
  margin-bottom: 12px !important;
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.wc-block-components-radio-control__option:hover {
  border-color: rgba(29,78,216,0.4) !important;
  box-shadow: 0 4px 16px rgba(15,42,74,0.06);
}
/* selected card */
.wc-block-components-radio-control__option-checked,
.wc-block-components-radio-control__option:has(input:checked) {
  border-color: var(--cyan) !important;
  background: rgba(29,78,216,0.035) !important;
  box-shadow: var(--glow-cyan) !important;
}
/* the radio dot */
.wc-block-components-radio-control__input {
  border-color: var(--line) !important;
}
.wc-block-components-radio-control__input:checked {
  border-color: var(--cyan) !important;
  background: var(--cyan) !important;
}
/* label text + price inside each card */
.wc-block-components-radio-control__label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ice);
}
.wc-block-components-radio-control__secondary-label,
.wc-block-components-radio-control__option .wc-block-components-formatted-money-amount {
  font-family: var(--font-mono) !important;
  color: var(--cyan) !important;
  font-weight: 600;
}

/* ---- Order summary panel ------------------------------------------------ */
.wc-block-components-sidebar,
.wc-block-checkout__sidebar {
  background: var(--void-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px !important;
}
.wc-block-components-order-summary__content {
  border-radius: var(--r-sm);
}
.wc-block-components-totals-item__value,
.wc-block-formatted-money-amount {
  font-family: var(--font-mono) !important;
  color: var(--ice);
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--cyan) !important;
  font-weight: 700;
  font-size: 1.15rem;
}
.wc-block-components-totals-item__label {
  color: var(--muted);
}
/* divider lines in summary */
.wc-block-components-totals-item {
  border-color: var(--line-soft) !important;
}

/* product line in summary */
.wc-block-components-order-summary-item__description .wc-block-components-product-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ice);
}

/* ---- Coupon accordion --------------------------------------------------- */
.wc-block-components-totals-coupon__button,
.wc-block-components-panel__button {
  color: var(--cyan) !important;
  font-family: var(--font-display);
  font-weight: 600;
}

/* ---- Place Order button ------------------------------------------------- */
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button,
button.wc-block-components-checkout-place-order-button {
  background: var(--grad-signal) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--r-pill) !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  padding: 16px 28px !important;
  box-shadow: 0 4px 18px rgba(29,78,216,0.24);
  transition: transform 0.18s, box-shadow 0.18s;
}
.wc-block-components-checkout-place-order-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(29,78,216,0.34);
}

/* ---- Express checkout (G Pay) divider ----------------------------------- */
.wc-block-components-express-payment__event-buttons {
  border-radius: var(--r-sm);
  overflow: hidden;
}
.wc-block-components-express-payment-continue-rule {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Terms / fine print ------------------------------------------------- */
.wc-block-checkout__terms {
  color: var(--muted);
  font-size: 0.82rem;
}
.wc-block-checkout__terms a { color: var(--cyan); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1024px) {
  .wc-block-checkout__main { padding-right: 0; }
}