/* ============================================================================
   HUBEI JIANXIANG IDENTITY — generated by site-factory/generate-identity.js
   pack: console · surface: light · primary: #2a759d
   Loaded LAST: this file owns the visual identity. It re-themes every page by
   overriding the base design tokens from global.css, then restyles the shared
   shop components (header/nav, buttons, flash, trending cards, FAQ, modals,
   mobile menu, footer) and patches per-page hard-coded hexes.
   Regenerate with: node site-factory/generate-identity.js <config.json>
   ============================================================================ */

:root {
    /* --- Primary ramp --- */
    --primary: #2a759d;
    --primary-dark: #215d7d;
    --primary-darker: #19455d;
    --primary-light: #3a98ca;
    --primary-lighter: #8ebad2;
    --primary-50: #f2f6f7;
    --primary-100: #e2eaee;

    /* --- Semantic --- */
    --secondary-green: #3f7d54;
    --success-green: #3f7d54;
    --warning-yellow: #b07d12;
    --error-red: #b3382c;
    --accent-navy: #11232c; /* legacy name — dark chip / heading ink */

    /* --- Accent (erp.css naming: data highlights, sparingly) --- */
    --amber: #41c8a9;
    --amber-dim: #2d9a81;

    /* --- Neutral ramp (hue-tinted from the primary) --- */
    --white: #fbfdfd;
    --paper: #eef3f6;
    --porcelain: #f8fafc;
    --gray-50: #eff3f6;
    --gray-100: #e2eaee;
    --gray-200: #cfdce2;
    --gray-300: #aec1cb;
    --gray-400: #7593a3;
    --gray-500: #4f6a78;
    --gray-600: #3b4f59;
    --gray-700: #2b3940;
    --gray-800: #1c262b;
    --gray-900: #141b1f;
    --ink: #141b1f;

    /* --- Borders / surfaces --- */
    --border-subtle: rgba(20, 27, 31, 0.09);
    --border-default: rgba(20, 27, 31, 0.16);
    --hairline: 1px solid rgba(20, 27, 31, 0.12);
    --surface-elevated: #f8fafc;
    --surface-sunken: #e5ecf0;
    --grid-line: rgba(25, 69, 93, 0.045);

    /* --- Type: console pack --- */
    --font-family: 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Chakra Petch', 'IBM Plex Sans', 'Noto Sans SC', sans-serif;
    --font-mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;

    /* --- Radius character: console --- */
    --radius-sm: 0;
    --radius-md: 2px;
    --radius-lg: 4px;
    --radius-xl: 4px;

    /* --- Shadows (primary-tinted ink shadows) --- */
    --shadow-sm: 0 1px 2px rgba(25, 69, 93, 0.06);
    --shadow-md: 0 1px 2px rgba(25, 69, 93, 0.05), 0 6px 16px -8px rgba(25, 69, 93, 0.14);
    --shadow-lg: 0 2px 4px rgba(25, 69, 93, 0.05), 0 14px 30px -12px rgba(25, 69, 93, 0.2);
    --shadow-xl: 0 4px 10px rgba(25, 69, 93, 0.06), 0 26px 52px -18px rgba(25, 69, 93, 0.26);
    --shadow-jade: 0 8px 20px -8px rgba(42, 117, 157, 0.36);
}

/* === BASE ================================================================ */
html { background: var(--paper); }
body {
    font-family: var(--font-family);
    background: var(--paper);
    color: var(--gray-700);
}
h1, h2, h3, h4, .section-heading, .section-header h2 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.005em;
    color: var(--ink);
}
a { color: var(--primary); }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.cn-accent { font-family: 'Noto Sans SC', var(--font-display); }

/* === TOPLINE (flash banner) ============================================== */
.site-flash {
    background: var(--ink);
    color: var(--primary-lighter);
    border-bottom: 2px solid var(--primary);
    font-family: var(--font-mono);
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    padding: 8px 12px;
    text-align: center;
}
.site-flash strong { font-weight: 700; color: #fff; }

/* === HEADER / NAV ======================================================== */
.header {
    background: rgba(238, 243, 246, 0.92);
    backdrop-filter: blur(11px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: none;
}
.header .logo-text, .logo-text {
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.06em;
}
.header .logo-text small, .logo-text small {
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.54rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}
.nav-link {
    font-family: var(--font-family);
    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    text-transform: none;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    border-bottom: none;
    padding: 7px 11px;
    white-space: nowrap;
}
.nav-link:hover { color: var(--primary-darker); background: var(--primary-50); }
.nav-link.active {
    color: var(--primary-darker);
    background: var(--primary-50);
    box-shadow: inset 0 -2px 0 var(--primary);
}
.nav-link-secondary { color: var(--primary); }
.nav-link-secondary:hover { color: var(--primary-darker); }

.header .warehouse-btn, .warehouse-btn {
    background: var(--white);
    border: 1px solid var(--border-default);
    color: var(--gray-700);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    border-radius: var(--radius-sm);
}
.header .warehouse-btn:hover, .warehouse-btn:hover { border-color: var(--primary); color: var(--primary-darker); }
.header .cart-btn, .cart-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    box-shadow: var(--shadow-jade);
}
.header .cart-btn:hover, .cart-btn:hover { background: var(--primary-dark); transform: none; }
.cart-count { background: var(--ink); color: #fff; font-family: var(--font-mono); font-weight: 700; }
.hamburger-line { background: var(--ink); }

/* Verified-On dropdown — panel on the identity surface */
.vo-dd-menu { background: var(--porcelain) !important; border-color: var(--border-default) !important; box-shadow: var(--shadow-lg) !important; border-radius: var(--radius-md) !important; }
.vo-dd-menu a { color: var(--gray-700) !important; }
.vo-dd-menu a:hover { background: var(--primary-50) !important; color: var(--primary-darker) !important; }
.vo-dd-menu i { color: var(--primary) !important; }

/* === BUTTONS ============================================================= */
.btn, .checkout-btn {
    font-family: var(--font-family);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    border-radius: var(--radius-sm);
}
.btn-primary, .checkout-btn {
    background: var(--primary);
    border: none;
    color: #fff;
    box-shadow: var(--shadow-jade);
}
.btn-primary:hover, .checkout-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary {
    background: var(--white);
    border: 1px solid var(--border-default);
    color: var(--gray-700);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-darker); background: var(--white); }

/* === TRENDING CARDS (#trendingGrid children — style only) ================ */
.trending-card {
    background: var(--porcelain);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.trending-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.trending-card-image { background: #fff; border-radius: var(--radius-sm); }
.trending-category {
    font-family: var(--font-mono);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    background: var(--primary-50);
    color: var(--primary-darker);
    border: none;
    border-radius: var(--radius-sm);
}
.trending-badge { border-radius: var(--radius-sm); font-family: var(--font-mono); letter-spacing: 0.04em; }
.trending-name { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.trending-spec { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gray-400); }
.trending-price-value { font-family: var(--font-mono); font-weight: 700; color: var(--primary-darker); }
.trending-bulk { font-family: var(--font-mono); color: var(--gray-500); }
.trending-cta { font-family: var(--font-mono); font-size: 0.69rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--primary); }

/* === FAQ — two-column grid (classes consumed by JS: style only) ========== */
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; border-top: none; }
.faq-item {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--porcelain);
    box-shadow: none;
    margin-bottom: 0;
}
.faq-item.open { border-color: var(--primary); }
.faq-question {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--ink);
    background: transparent;
}
.faq-question i { color: var(--primary); font-size: 0.7em; }
.faq-answer p { font-size: 0.87rem; line-height: 1.62; color: var(--gray-600); }
.faq-answer a, .faq-answer a[style] { color: var(--primary) !important; }

/* === MODALS / TOAST / INPUTS (#cartModal, #checkoutModal — style only) === */
.modal { background: rgba(20, 27, 31, 0.55); }
.modal-content {
    background: var(--porcelain);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
    border-top: 3px solid var(--primary);
    box-shadow: var(--shadow-xl);
    color: var(--gray-700);
}
.modal-title { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.modal-close { color: var(--gray-500); }
.notification-toast {
    background: var(--porcelain);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    border-left: 3px solid var(--primary);
    box-shadow: var(--shadow-xl);
    color: var(--gray-700);
}
.step-number { font-family: var(--font-mono); border-radius: var(--radius-sm); }
input, textarea, select {
    background: var(--white);
    color: var(--gray-800);
    border-color: var(--gray-300);
    border-radius: var(--radius-sm);
}
input::placeholder, textarea::placeholder { color: var(--gray-400); }

/* === MOBILE MENU / BOTTOM NAV (#mobileMenu — style only) ================= */
.mobile-menu { background: var(--porcelain); color: var(--gray-700); }
.mobile-menu-title { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--gray-500); }
.mobile-nav-link { color: var(--gray-700); border-radius: var(--radius-sm); }
.mobile-nav-link.active { background: var(--primary-50); color: var(--primary-darker); }
.mobile-nav-link i { color: var(--primary); }
.mobile-menu-footer a { color: var(--gray-600); }
.mobile-bottom-nav { background: rgba(238, 243, 246, 0.97) !important; border-top: 1px solid var(--border-default) !important; backdrop-filter: blur(10px); }
.bottom-nav-item { color: var(--gray-500); font-family: var(--font-mono); font-size: 0.6rem; }
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item.active i { color: var(--primary); }
.bottom-nav-badge { background: var(--primary); color: #fff; font-family: var(--font-mono); }

/* === FOOTER ============================================================== */
.footer {
    background: var(--ink);
    color: var(--gray-300);
    border-top: 3px solid var(--primary);
}
.footer-logo { font-family: var(--font-display); font-weight: 800; color: #fff; }
.footer-logo small { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-400); }
.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
    border-bottom: none;
}
.footer-col a, .footer-col p { color: var(--gray-300); }
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bottom p { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--gray-400); }
.footer-social a { color: var(--gray-300); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-sm); }
.footer-social a:hover { color: var(--primary-light); border-color: var(--primary); }

/* === PAGE-CSS PATCHES ====================================================
   Per-page stylesheets hardcode a few of the template's jade-green (and
   light-surface) hexes. Repaint them from the identity tokens so no page
   leaks the template palette. */
.section-alt { background: var(--surface-sunken); }
.products-hero, .page-hero { background: var(--surface-sunken); }
.page-hero::before { background-image: none; }
.trustpilot-banner { background: var(--ink); }
.trustpilot-banner:hover { background: #0e1316; }

/* products page header — retint title + glow */
.products-page-header {
    background:
        radial-gradient(ellipse 60% 130% at 85% -20%, rgba(42, 117, 157, 0.07), transparent 60%),
        linear-gradient(180deg, var(--porcelain) 0%, var(--paper) 100%) !important;
}
.products-page-title { color: var(--ink) !important; font-weight: 700; }

/* product / products / pay page hard-coded buttons and chips */
.view-product-btn { background: var(--primary) !important; color: #fff !important; }
.view-product-btn:hover { background: var(--primary-dark) !important; box-shadow: var(--shadow-jade) !important; }
.janoshik-link, .cat-coa-btn {
    background: var(--primary-50) !important;
    color: var(--primary-darker) !important;
    border-color: var(--primary-100) !important;
}
.janoshik-link:hover, .cat-coa-btn:hover {
    background: var(--primary-100) !important;
    border-color: var(--primary-light) !important;
    color: var(--primary-darker) !important;
}
.badge-popular { background: var(--primary-50); color: var(--primary-darker); }
.badge-tested { background: var(--primary-50); color: var(--primary-darker); }
.view-test-report-btn { background: var(--primary-50); color: var(--primary-darker); }
.view-test-report-btn:hover { background: var(--primary-100); }

/* === SKIP LINK =========================================================== */
.skip-link { background: var(--primary-darker); }
.skip-link:focus { background: var(--primary); color: #fff; }

/* === MOTION DISCIPLINE =================================================== */
@media (prefers-reduced-motion: reduce) {
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* === RESPONSIVE ========================================================== */
@media (max-width: 960px) {
    .faq-list { grid-template-columns: 1fr; }
}

/* ============================================================================
   LAYER 2 — BESPOKE HOMEPAGE SECTIONS  (hj-*)  ·  LIGHT / WHITE SURFACE
   ----------------------------------------------------------------------------
   Design direction: a manufacturer's SPEC SHEET, not a shop front.
   White paper, one near-white wash band tone, hairline rules, mono metadata
   labels, and a single restrained steel-blue (--primary) for structure. The
   mint (--amber) is used ONLY as a fill or a rule — never as text (2.1:1 on
   white). The console motifs survive but are inked, not lit: the blueprint grid
   is a faint pencil grid on white, the RP-HPLC trace a thin teal ink line.

   AUDIT DISCIPLINE FOR EVERY GRADIENT BELOW
   contrast-audit reads the DECLARED colour stops of a gradient, not the pixels
   it paints, and `transparent` computes to rgba(0,0,0,0) — i.e. BLACK. So no
   gradient in this file uses `transparent` (it uses rgba(255,255,255,0)) and no
   gradient carries a low-alpha dark/brand stop; every stop is pre-blended to the
   light colour it actually renders. That is what makes the hero and the products
   header auditable instead of "1.2:1 on #000000".
   ========================================================================== */
:root {
    /* the brand blue is a FILL colour; as small text it is only borderline, so
       small brand-coloured text uses this darkened variant (7.3:1 on white) */
    --brand-ink: #1d5c7c;
    --stamp-red: #a83a2b;        /* 6.3:1 on white — seal / audit stamp ink */
    --star-gold: #8a5f0c;        /* 5.6:1 on white — ★ glyphs are TEXT, AA applies */
    --accent-ink: #0d2b24;       /* text ON a mint fill (--amber): 8.3:1 */
    --hj-line: #dde5eb;          /* hairline */
    --hj-line-2: #c7d5de;        /* stronger hairline / dotted leader */
    --hj-wash: #f4f7f9;          /* the only band tone on the page */
    --hj-grid: #e4ecf1;          /* blueprint rule — light enough to read text on */
}

/* --- shared section chrome ------------------------------------------------ */
.hj-section { padding: 84px 0; background: #fff; border-top: 1px solid var(--hj-line); }
.hj-section-sunken { background: var(--hj-wash); }
.hj-section-last { border-bottom: 1px solid var(--hj-line); }
.hj-head { max-width: 760px; margin-bottom: 44px; }
.hj-idx {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-ink);
    margin-bottom: 16px;
}
.hj-idx::after { content: ""; display: block; width: 44px; height: 2px; background: var(--amber); }
.hj-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.2; margin: 0 0 12px;
    color: var(--ink); letter-spacing: -0.01em;
}
.hj-sub { font-size: 1rem; line-height: 1.65; color: var(--gray-600); margin: 0; max-width: 66ch; }
.hj-cn-quiet { color: var(--gray-400); font-weight: 500; margin-left: 6px; }
.hj-section-foot {
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
    margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--hj-line);
}

/* --- buttons / links shared by the bespoke sections ----------------------- */
.hj-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 22px; min-height: 46px;
    background: var(--primary); color: #fff; border: 1px solid var(--primary);
    font-family: var(--font-family); font-weight: 600; font-size: 0.9rem;
    letter-spacing: 0.01em; border-radius: var(--radius-sm); text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.hj-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.hj-btn-line {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 22px; min-height: 46px;
    background: #fff; color: var(--gray-800); border: 1px solid var(--hj-line-2);
    font-family: var(--font-family); font-weight: 600; font-size: 0.9rem;
    border-radius: var(--radius-sm); text-decoration: none;
    transition: border-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.hj-btn-line:hover { border-color: var(--primary); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.hj-btn-line i { color: var(--primary); }
.hj-link {
    font-family: var(--font-family); font-weight: 600; font-size: 0.9rem;
    color: var(--brand-ink); text-decoration: none;
    border-bottom: 1px solid var(--hj-line-2); padding-bottom: 2px;
}
.hj-link:hover { color: var(--primary-darker); border-bottom-color: var(--primary); }

/* === HERO — plant data plate ============================================== */
.hj-hero {
    position: relative; overflow: hidden; padding: 72px 0 0;
    background:
        linear-gradient(var(--hj-grid) 1px, rgba(255, 255, 255, 0) 1px),
        linear-gradient(90deg, var(--hj-grid) 1px, rgba(255, 255, 255, 0) 1px),
        radial-gradient(ellipse 90% 75% at 6% -18%, #eef4f8 0%, rgba(255, 255, 255, 0) 62%),
        #ffffff;
    background-size: 30px 30px, 30px 30px, auto, auto;
    border-bottom: 1px solid var(--hj-line);
}
/* the chromatogram: a thin ink trace, not a glow. CSS beats the SVG presentation
   attributes, so the markup keeps its hexes and we re-ink it from here. */
/* --ro-h = the height of the readout strip, which is opaque white and would
   otherwise bury the trace: the chromatogram baseline sits exactly on top of it. */
.hj-hero { --ro-h: 110px; }
.hj-chroma {
    position: absolute; left: 0; right: 0; bottom: var(--ro-h); width: 100%; height: 190px;
    z-index: 0; pointer-events: none; opacity: 0.85;
}
.hj-chroma g { stroke: #dbe5eb; opacity: 1; }
.hj-chroma-trace { stroke: var(--amber-dim); stroke-width: 1.5; }
.hj-chroma-fill { fill: var(--amber); opacity: 0.12; }

.hj-hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 56px; align-items: start; padding-bottom: 56px;
}
.hj-kicker {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500);
    margin-bottom: 22px;
}
.hj-kicker > span + span + span::before,
.hj-kicker > span + span + span + span::before {
    content: "·"; margin-right: 10px; color: var(--gray-400);
}
.hj-kicker-mark { color: var(--brand-ink); font-size: 0.6rem; line-height: 1; }
.hj-kicker .cn-accent { text-transform: none; letter-spacing: 0.04em; }
.hj-hero h1 {
    font-size: clamp(2rem, 4.2vw, 3.05rem); line-height: 1.14; letter-spacing: -0.02em;
    color: var(--ink); margin: 0 0 22px; max-width: 17ch;
}
.hj-lit {
    /* mint is a 2:1 colour on white — it underlines the word, it never inks it */
    color: var(--ink);
    box-shadow: inset 0 -0.26em 0 rgba(65, 200, 169, 0.38);
    padding: 0 2px;
}
.hj-hero-sub {
    font-size: 1.02rem; line-height: 1.7; color: var(--gray-600);
    max-width: 58ch; margin: 0 0 30px;
}
.hj-hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* --- plant specification plate -------------------------------------------- */
.hj-plate {
    background: #fff; border: 1px solid var(--hj-line-2);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius-md); box-shadow: var(--shadow-md);
    padding: 22px 24px 18px;
}
.hj-plate-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--hj-line);
}
.hj-plate-title {
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-500);
}
.hj-plate .cn-seal { color: var(--stamp-red); border-color: var(--stamp-red); }
.hj-plate-rows { margin: 0; }
.hj-plate-row { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; }
.hj-plate-row + .hj-plate-row { border-top: 1px dotted var(--hj-line); }
.hj-plate-row dt {
    display: flex; align-items: baseline; gap: 8px; flex: 1 1 auto; min-width: 0;
    font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
    letter-spacing: 0.07em; text-transform: uppercase; color: var(--gray-500);
    white-space: nowrap;
}
/* dotted leader — a pseudo-element border, deliberately NOT a background-image:
   a gradient here would become the audited background of the row's own text */
.hj-plate-row dt::after {
    content: ""; flex: 1 1 auto; min-width: 14px; position: relative; top: -3px;
    border-bottom: 1px dotted var(--hj-line-2);
}
.hj-plate-row dd {
    flex: 0 1 auto; margin: 0; text-align: right;
    font-size: 0.86rem; font-weight: 600; color: var(--gray-800); line-height: 1.4;
}
.hj-plate-foot {
    display: block; margin-top: 14px; padding-top: 12px;
    border-top: 1px solid var(--hj-line);
    font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--brand-ink); text-decoration: none;
}
.hj-plate-foot:hover { color: var(--primary-darker); }

/* --- instrument readout strip --------------------------------------------- */
.hj-readout {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: #fff; border-top: 1px solid var(--hj-line-2);
}
.hj-ro-cell {
    display: flex; flex-direction: column; gap: 3px;
    padding: 20px 22px; text-decoration: none;
    border-right: 1px solid var(--hj-line);
    transition: background 0.18s, box-shadow 0.18s;
}
.hj-ro-cell:last-child { border-right: none; }
.hj-ro-cell:hover { background: var(--hj-wash); box-shadow: inset 0 -2px 0 var(--amber); }
.hj-ro-cell .ro-key {
    font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-500);
}
.hj-ro-cell .ro-val {
    font-family: var(--font-display); font-size: 1.55rem; font-weight: 700;
    color: var(--ink); line-height: 1.15; letter-spacing: -0.01em;
}
.hj-ro-cell .ro-note { font-size: 0.75rem; color: var(--gray-500); line-height: 1.35; }

/* === 01 — QUALITY SYSTEM / AUDIT CARDS ==================================== */
.hj-audit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hj-audit-card {
    position: relative; background: #fff; border: 1px solid var(--hj-line-2);
    border-radius: var(--radius-md); padding: 26px 22px 22px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.hj-audit-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hj-audit-stamp {
    display: inline-block; transform: rotate(-3.5deg);
    padding: 4px 10px; margin-bottom: 16px;
    border: 1.5px solid var(--stamp-red); border-radius: 2px; background: #fff;
    font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--stamp-red);
}
.hj-audit-card h3 { font-size: 1.02rem; margin: 0 0 10px; color: var(--ink); letter-spacing: -0.005em; }
.hj-audit-card p { font-size: 0.88rem; line-height: 1.6; color: var(--gray-600); margin: 0 0 16px; }
.hj-audit-meta {
    display: block; padding-top: 12px; border-top: 1px solid var(--hj-line);
    font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.09em;
    text-transform: uppercase; color: var(--gray-500);
}

/* === VOLUME SCHEDULE (promo timer + the four $ tiers) ==================== */
.hj-sched { padding: 0; background: #fff; }
.hj-sched-inner {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center; gap: 28px;
    padding: 24px 26px; margin: 0 0 -1px;
    background: var(--hj-wash);
    border: 1px solid var(--hj-line-2); border-left: 4px solid var(--amber);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.hj-sched-title { display: flex; flex-direction: column; gap: 5px; }
.hj-sched-title .t1 {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink);
    white-space: nowrap;
}
.hj-sched-title .t1 i { color: var(--primary); }
.hj-sched-title .t2 {
    font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--gray-500); white-space: nowrap;
}
.hj-sched .deal-timer {
    display: inline-block; margin-left: 4px; padding: 1px 7px;
    background: var(--primary-50); border: 1px solid var(--primary-100);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono); font-weight: 700; color: var(--brand-ink);
}
.hj-sched .timer-num { color: var(--brand-ink); }
.hj-sched .timer-unit { color: var(--gray-500); }
.hj-sched .timer-sep { color: var(--gray-400); }
.hj-sched-ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hj-tier {
    display: flex; flex-direction: column; gap: 4px;
    padding: 12px 14px; background: #fff;
    border: 1px solid var(--hj-line-2); border-top: 2px solid var(--amber);
    border-radius: var(--radius-sm);
}
.hj-tier-band {
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-ink);
}
.hj-tier-value { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.hj-btn-sched { white-space: nowrap; }

/* === 02 — CATALOGUE ====================================================== */
.hj-section .trending-grid { margin-top: 4px; }

/* === 03 — ANALYTICAL / RELEASE METHOD TABLE ============================== */
.hj-methods {
    background: #fff; border: 1px solid var(--hj-line-2);
    border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
}
.hj-method-head, .hj-method {
    display: grid; grid-template-columns: 190px 1fr 1fr; gap: 20px;
    padding: 13px 22px; align-items: center;
}
.hj-method-head {
    background: var(--hj-wash); border-bottom: 1px solid var(--hj-line-2);
    font-family: var(--font-mono); font-size: 0.63rem; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-500);
}
.hj-method { border-bottom: 1px solid var(--hj-line); transition: background 0.15s; }
.hj-method:last-child { border-bottom: none; }
.hj-method:hover { background: var(--primary-50); }
.hj-m-code {
    font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
    color: var(--brand-ink); letter-spacing: 0.02em;
}
.hj-m-attr { font-size: 0.9rem; font-weight: 600; color: var(--gray-800); }
.hj-m-spec { font-family: var(--font-mono); font-size: 0.82rem; color: var(--gray-600); }
.hj-verify-strip { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--hj-line); }

/* === 04 — THE PLANT ====================================================== */
.hj-plant { display: flex; flex-direction: column; gap: 18px; }
.hj-plant figure {
    margin: 0; background: #fff; border: 1px solid var(--hj-line-2);
    border-radius: var(--radius-md); overflow: hidden;
}
.hj-plant img { display: block; width: 100%; height: auto; object-fit: cover; }
.hj-plant-lead img { max-height: 400px; }
.hj-plant-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hj-plant-cell img { height: 210px; }
.hj-plant figcaption {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 12px 16px; border-top: 1px solid var(--hj-line);
    font-size: 0.8rem; color: var(--gray-600); line-height: 1.4;
}
.hj-fig-code {
    font-family: var(--font-mono); font-size: 0.63rem; font-weight: 700;
    letter-spacing: 0.1em; padding: 3px 7px; white-space: nowrap;
    background: var(--primary-50); border: 1px solid var(--primary-100);
    border-radius: 2px; color: var(--brand-ink);
}

/* === 05 — ROUTE (ops rail) =============================================== */
.hj-route {
    display: grid; grid-template-columns: repeat(5, 1fr);
    list-style: none; margin: 0; padding: 0;
    background: #fff; border: 1px solid var(--hj-line-2);
    border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden;
}
.hj-op {
    position: relative; padding: 24px 20px 26px;
    border-right: 1px solid var(--hj-line); border-top: 3px solid var(--hj-line);
    transition: border-top-color 0.18s, background 0.18s;
}
.hj-op:last-child { border-right: none; }
.hj-op:hover { border-top-color: var(--amber); background: var(--porcelain); }
.hj-op-code {
    display: block; margin-bottom: 12px;
    font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.14em; color: var(--brand-ink);
}
.hj-op h4 { font-family: var(--font-display); font-size: 0.95rem; margin: 0 0 8px; color: var(--ink); }
.hj-op p { font-size: 0.83rem; line-height: 1.6; color: var(--gray-600); margin: 0; }

/* === REVIEWS LINE + SETTLEMENT BADGES =================================== */
.hj-reviews {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    padding: 22px 26px; text-decoration: none;
    background: #fff; border: 1px solid var(--hj-line-2);
    border-left: 4px solid var(--amber); border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); transition: box-shadow 0.18s, transform 0.18s;
}
.hj-reviews:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.hj-rv-score {
    font-family: var(--font-display); font-size: 2rem; font-weight: 700;
    color: var(--ink); line-height: 1;
}
.hj-rv-score small { font-size: 0.9rem; font-weight: 600; color: var(--gray-500); }
.hj-rv-stars { color: var(--star-gold); font-size: 1.05rem; letter-spacing: 2px; }
.hj-rv-count { font-size: 0.9rem; font-weight: 500; color: var(--gray-600); }
.hj-rv-go {
    margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-ink);
}
.hj-pay {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--hj-line);
}
.hj-pay-label {
    font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-500);
    margin-right: 6px;
}
.hj-pay-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px; background: #fff;
    border: 1px solid var(--hj-line-2); border-radius: var(--radius-sm);
    font-size: 0.82rem; font-weight: 600; color: var(--gray-800);
}
.hj-pay-badge i { color: var(--gray-500); font-size: 0.95rem; }
.hj-pay-crypto { border-color: var(--amber-dim); }
.hj-pay-crypto i { color: var(--amber-dim); }
.hj-pay-tag {
    padding: 2px 7px; border-radius: 2px;
    background: var(--amber); color: var(--accent-ink);   /* mint as FILL, dark ink on it */
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
}

/* === 06 — FAQ (base grid is in LAYER 1; this is the light-surface finish) = */
.hj-section .faq-item { background: #fff; border-color: var(--hj-line-2); }
.hj-section .faq-item.open { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.hj-section .faq-question { padding: 18px 20px; }
.hj-section .faq-answer p { color: var(--gray-600); }

/* ============================================================================
   LAYER 3 — LIGHT-SURFACE CONTRAST REPAIR   (contrast-audit gate)
   ----------------------------------------------------------------------------
   The failure modes on a LIGHT surface are the mirror image of a dark one, and
   every fix below is a measured contrast-audit finding, not a guess.

   (a) THE MUTED END OF THE NEUTRAL RAMP WAS TOO LIGHT.
       --gray-400 (#7593a3) on white measured 3.25:1 — it is the colour of every
       mono label on the site (trending spec, vl-badge prefix, review dates,
       checkout step labels, "Free Shipping"), so it failed ~10 elements at once.
       It is darkened here. The FOOTER is the one genuinely DARK panel on this
       site, so the ramp is re-lifted inside .footer (see (e)) — a light surface
       wants near-black text, a dark surface wants light text, and this site has
       both.

   (b) COLOURS THAT ARE FILLS BEING USED AS TEXT.
       --amber (#41c8a9) is 2.08:1 on white and is NEVER text here. --primary
       (#2a759d) is a fill; where a brand-coloured LABEL is wanted, --brand-ink.

   (c) DARK INK STRANDED ON A DARK FILL / LIGHT INK ON A LIGHT FILL.
       Both directions occur: the gold "Fastest"/"TRACKED" chips carried a mid
       brown on gold (3.24:1) and the template's Material-palette review avatars
       put #fff on pastel (1.94:1).

   (d) GRADIENTS WITH DISHONEST STOPS. See the note at the top of LAYER 2.
   ========================================================================== */

/* --- (a) the muted ramp: darken for the light surface ---------------------- */
:root {
    --gray-400: #5a6975;   /* was #7593a3 — 3.25:1 on white; now 5.6:1 */
    --gray-500: #4a5c68;   /* was #4f6a78 — used for secondary label text */
    --secondary-green: #2f6742;  /* was #3f7d54 — .price-save measured 4.40:1 */
    --success-green: #2f6742;    /* white on it is 6.7:1, so fills stay safe */
}

/* --- (b) brand/mint as text: pin the small labels to the darkened blue ----- */
.nav-link-secondary, .trending-cta, .bulk-tier, .product-code,
.pl-catno, .pl-price-contact, .review-tag, .about-team-role,
.about-cat-count, .contact-team-role, .pd-price-highlight,
.spec-highlight, .company-url, .contact-handle { color: var(--brand-ink); }
.pl-raw-sep { color: var(--gray-400); }          /* was --gray-300: 1.7:1 */

/* --- (c) template inks that are too light for a light panel ---------------- */
/* product.css / about.css / pricelist.css hardcode #98a09a and #6c7670 (the old
   template's greens-greys): 2.3–4.35:1 on their own white cards. */
.pd-detail-label, .pd-price-label, .pd-section-subtitle, .pd-specification,
.pd-similar-spec, .pd-breadcrumb-link, .pd-qty-label,
.checkout-steps .step-number, .checkout-steps .step-text,
.company-response-date, .review-author-meta, .review-posted-date,
.review-action-btn { color: var(--gray-500); }
.trust-score-label { color: #036c4b; }           /* Trustpilot green: 2.58:1 -> 5.9:1 */

/* --- (c) dark ink on a dark fill, and light ink on a light fill ------------ */
/* gold chips: #5c3d0d on #c08a1e is 3.24:1. Keep the gold, deepen the ink. */
.about-team-badge-fastest, .contact-team-badge-fastest,
.shipping-options-row span[style*="linear-gradient"] { color: #241a02 !important; }
/* reviews.ejs inlines a Material-400 fill per avatar; no single ink clears all of
   them (white was 1.94:1 on amber), so the avatars move onto the theme surface. */
.review-avatar {
    background: var(--primary-50) !important;
    color: var(--gray-900);
    border: 1px solid var(--primary-100);
}
/* about/contact inline `style="background:#525c55"` (an olive slab from the old
   template) stranded --gray-900 / --gray-500 text on it at 2.5:1 and 1.21:1.
   !important is required: it must beat an inline background. */
.about-team-contact[style], .contact-team-contact[style] {
    background: var(--primary-50) !important;
    border: 1px solid var(--primary-100);
}
.about-team-contact strong, .about-team-contact div span { color: var(--gray-800); }
.about-team-contact > i, .contact-response-banner > i { color: var(--primary); }
.about-team-btn[style], .contact-team-btn[style] {
    background: var(--primary) !important; color: #fff !important;   /* 5.1:1 */
}

/* --- (d) the sale bar: a red band whose lightest stop (#c14e3c) left the mono
       timer at 1.11–3.51:1. Deepen the red (the shimmer is unchanged) and put
       the timer parts back on the light ink the bar was designed for. -------- */
.sale-bar {
    background: linear-gradient(90deg, #5f1c15 0%, #7a2419 25%, #8f2f23 50%, #7a2419 75%, #5f1c15 100%);
    background-size: 200% 100%;
}
.sale-bar .timer-num, .sale-bar .timer-sep, .sale-bar .timer-unit,
.sale-bar .sale-bar-timer, .sale-bar-link { color: #f6e5df; }   /* 6.0:1 on #8f2f23 */

/* --- (d) products page header: the generated gradient carried a 7%-alpha brand
       stop and a `transparent` stop, which audit as #2a759d and #000000 — the
       page title measured 1.21:1 and the subtitle 1.69:1 against colours that
       are never actually painted. Same picture, honest stops. --------------- */
.products-page-header {
    background: linear-gradient(180deg, #ffffff 0%, #eef4f8 100%) !important;
    border-bottom: 1px solid var(--hj-line);
}
.products-page-title { color: var(--ink) !important; }
.products-page-subtitle { color: var(--gray-600) !important; }

/* --- (e) THE FOOTER IS THE ONE DARK PANEL — it must keep LIGHT text --------
   The ramp darkened in (a) is correct everywhere on the white page and WRONG
   here, so it is re-lifted inside .footer only. footer.ejs also inlines
   `color: var(--gray-500)` on the address line and `color:#2a759d` on the seal,
   and an inline style cannot be beaten by a class rule — so the address is fixed
   by re-pointing the VARIABLE and the seal with !important. */
.footer {
    --gray-300: #c8d5dd;
    --gray-400: #a6bac6;   /* 8.7:1 on --ink */
    --gray-500: #bccbd4;   /* the inlined address line: 3.04:1 -> 10.4:1 */
    --gray-600: #d3dee4;
}
.footer .cn-seal {
    color: var(--primary-lighter) !important;    /* 3.42:1 -> 8.4:1 */
    border-color: var(--primary) !important;
}

/* --- (f) form fields on the light surface ---------------------------------- */
/* Inputs are white with dark text here, which is right — but Chrome's autofill
   repaints the field and can strand the text, so pin both. */
.form-group input, .form-group textarea, .form-group select,
.promo-code-row input, .pd-qty-input {
    color: var(--gray-900);
    -webkit-text-fill-color: var(--gray-900);
}
.form-group input:-webkit-autofill, .form-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--gray-900);
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
}

/* ============================================================================
   MOBILE   (<= 900px / <= 600px)   — hard requirement: no horizontal scroll,
   tap targets >= 46px, the method table becomes stacked records.
   ========================================================================== */
@media (max-width: 1024px) {
    .hj-hero { --ro-h: 218px; }   /* readout wraps to two rows at 3 columns */
    .hj-audit { grid-template-columns: repeat(2, 1fr); }
    .hj-route { grid-template-columns: repeat(2, 1fr); }
    .hj-op { border-bottom: 1px solid var(--hj-line); }
    .hj-sched-inner { grid-template-columns: 1fr; gap: 18px; }
    .hj-readout { grid-template-columns: repeat(3, 1fr); }
    .hj-ro-cell { border-bottom: 1px solid var(--hj-line); }
}

@media (max-width: 900px) {
    /* hero stacks */
    .hj-hero { padding-top: 48px; }
    .hj-hero-inner { grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; }
    .hj-hero h1 { max-width: none; font-size: clamp(1.85rem, 7vw, 2.4rem); }
    .hj-hero-sub { font-size: 0.97rem; }
    /* the readout stacks to 2-3 rows here, so the trace has nowhere honest to
       sit — the blueprint grid carries the motif on small screens */
    .hj-chroma { display: none; }
    .hj-section { padding: 56px 0; }
    .hj-head { margin-bottom: 30px; }

    /* CTAs: full-width, >= 46px */
    .hj-hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
    .hj-hero-cta .hj-btn, .hj-hero-cta .hj-btn-line { width: 100%; min-height: 48px; }
    .hj-hero-cta .hj-link { align-self: flex-start; min-height: 46px; line-height: 46px; }
    .hj-btn-sched { width: 100%; min-height: 48px; }
    .hj-section-foot { flex-direction: column; align-items: stretch; gap: 14px; }
    .hj-section-foot .hj-btn-line { width: 100%; min-height: 48px; }
    .hj-section-foot .hj-link { min-height: 46px; line-height: 46px; }

    /* readout reflows to two columns */
    .hj-readout { grid-template-columns: repeat(2, 1fr); border-top: none; }
    .hj-ro-cell { padding: 16px 18px; min-height: 46px; }
    .hj-ro-cell .ro-val { font-size: 1.3rem; }
    .hj-ro-cell:nth-child(2n) { border-right: none; }
    .hj-ro-cell:last-child { grid-column: 1 / -1; }

    .hj-audit { grid-template-columns: 1fr; gap: 14px; }
    .hj-sched-ladder { grid-template-columns: repeat(2, 1fr); }

    /* METHOD TABLE -> stacked records (no horizontal scroll) */
    .hj-method-head { display: none; }
    .hj-method {
        display: block; padding: 16px 18px;
        border-bottom: 1px solid var(--hj-line);
    }
    .hj-m-code { display: block; margin-bottom: 6px; font-size: 0.76rem; }
    .hj-m-attr { display: block; margin-bottom: 4px; font-size: 0.95rem; }
    .hj-m-spec { display: block; font-size: 0.82rem; }
    .hj-m-spec::before {
        content: "Release spec — "; color: var(--gray-500);
        font-size: 0.72rem; letter-spacing: 0.04em;
    }

    /* route rail goes vertical */
    .hj-route { grid-template-columns: 1fr; }
    .hj-op { border-right: none; border-top: 1px solid var(--hj-line); border-left: 3px solid var(--hj-line); padding: 18px 18px 20px; }
    .hj-op:first-child { border-top: none; }
    .hj-op:hover { border-top-color: var(--hj-line); border-left-color: var(--amber); }

    .hj-plant-row { grid-template-columns: 1fr; }
    .hj-plant-cell img, .hj-plant-lead img { height: auto; max-height: 260px; }

    .hj-reviews { gap: 12px; padding: 18px; }
    .hj-rv-go { margin-left: 0; width: 100%; min-height: 46px; line-height: 46px; }
    .hj-pay-badge { flex: 1 1 100%; justify-content: center; min-height: 46px; }
    .hj-pay-label { width: 100%; margin-bottom: 2px; }
    .faq-question { min-height: 48px; }
}

@media (max-width: 600px) {
    .hj-readout { grid-template-columns: 1fr; }
    .hj-ro-cell { border-right: none; }
    .hj-sched-ladder { grid-template-columns: 1fr; }
    .hj-plate { padding: 18px 16px 14px; }
    .hj-plate-row { flex-direction: column; align-items: flex-start; gap: 2px; }
    .hj-plate-row dt { width: 100%; white-space: normal; }
    .hj-plate-row dd { text-align: left; }
    .hj-plate-foot { min-height: 46px; line-height: 34px; }
    .hj-kicker { font-size: 0.62rem; gap: 8px; }
    .hj-reviews { flex-direction: column; align-items: flex-start; }
}

/* --- mobile header overflow (measured, not cosmetic) ----------------------
   LAYER 1 gives the logo's legal-name subtitle `white-space: nowrap`, so at
   390px the logo block measured 260px wide, the header actions 193px, and the
   HAMBURGER LANDED AT x=433 — off-screen and untappable. The wordmark stays;
   the 36-character company line is dropped below 640px. */
@media (max-width: 640px) {
    .header .logo-text small, .logo-text small { display: none; }
    .header .cart-btn, .cart-btn { padding-left: 12px; padding-right: 12px; }
}
