/* ============================================================================
   SHANGHAI WIBSON BIOTECHNOLOGY IDENTITY — generated by site-factory/generate-identity.js
   pack: grotesk · surface: light · primary: #0068B0
   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: #0068b0;
    --primary-dark: #005087;
    --primary-darker: #00385e;
    --primary-light: #008ced;
    --primary-lighter: #61b1e8;
    --primary-50: #f0f6f9;
    --primary-100: #deeaf2;

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

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

    /* --- Neutral ramp (hue-tinted from the primary) --- */
    --white: #fbfdfe;
    --paper: #edf3f7;
    --porcelain: #f8fafc;
    --gray-50: #eef3f7;
    --gray-100: #e0e9f0;
    --gray-200: #cddbe5;
    --gray-300: #a9c0d1;
    --gray-400: #6c92ac;
    --gray-500: #48697f;
    --gray-600: #354e5f;
    --gray-700: #273845;
    --gray-800: #1a262e;
    --gray-900: #121b21;
    --ink: #121b21;

    /* --- Borders / surfaces --- */
    --border-subtle: rgba(18, 27, 33, 0.09);
    --border-default: rgba(18, 27, 33, 0.16);
    --hairline: 1px solid rgba(18, 27, 33, 0.12);
    --surface-elevated: #f8fafc;
    --surface-sunken: #e3ecf2;
    --grid-line: rgba(0, 56, 94, 0.045);

    /* --- Type: grotesk pack --- */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', 'Noto Sans SC', sans-serif;
    --font-mono: 'Space Mono', 'SF Mono', Consolas, monospace;

    /* --- Radius character: grotesk --- */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;

    /* --- Shadows (primary-tinted ink shadows) --- */
    --shadow-sm: 0 1px 2px rgba(0, 56, 94, 0.06);
    --shadow-md: 0 1px 2px rgba(0, 56, 94, 0.05), 0 6px 16px -8px rgba(0, 56, 94, 0.14);
    --shadow-lg: 0 2px 4px rgba(0, 56, 94, 0.05), 0 14px 30px -12px rgba(0, 56, 94, 0.2);
    --shadow-xl: 0 4px 10px rgba(0, 56, 94, 0.06), 0 26px 52px -18px rgba(0, 56, 94, 0.26);
    --shadow-jade: 0 8px 20px -8px rgba(0, 104, 176, 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.01em;
    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(237, 243, 247, 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.01em;
}
.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(18, 27, 33, 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(237, 243, 247, 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: #0d1317; }

/* products page header — retint title + glow */
.products-page-header {
    background:
        radial-gradient(ellipse 60% 130% at 85% -20%, rgba(0, 104, 176, 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; }
}

/* ============================================================================
   HAND LAYER — SWB homepage identity (authored, not generated)
   ----------------------------------------------------------------------------
   Direction: a certificate-of-analysis / technical datasheet. Hairline rules,
   monospace index labels, bilingual section heads, restrained azure on white.
   Appended AFTER the generated base — it extends the ramp, never fights it.
   LIGHT SURFACE (rule 17): every light surface here is white/porcelain, so its
   text resolves to --ink / --gray-600; the two deliberately inverted blocks
   (.swb-figures, .swb-standing) sit on --ink and take #fff / --gray-300.
   ============================================================================ */

/* --- shared scaffolding ---------------------------------------------------- */
.swb-section { padding: 4.5rem 0; background: var(--white); }
.swb-section.swb-tint { background: var(--surface-sunken); }

/* mono index label: "01 ── Catalogue" */
.swb-rule-label {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.68rem; font-weight: 500;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 1.1rem;
}
.swb-rule-idx {
    color: var(--primary); font-weight: 700;
    border: 1px solid var(--primary-100);
    background: var(--primary-50);
    border-radius: var(--radius-sm);
    padding: 2px 6px; letter-spacing: 0.06em;
}
.swb-rule-line { flex: 1; height: 1px; background: var(--border-default); min-width: 18px; }

.swb-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 2rem; margin-bottom: 2.5rem;
    padding-bottom: 1.25rem; border-bottom: 1px solid var(--border-default);
}
.swb-head-left { max-width: 640px; }
.swb-head-title {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15;
    letter-spacing: -0.02em; color: var(--ink); margin: 0 0 0.5rem;
}
.swb-head-title-sm { font-size: 1.15rem; margin-bottom: 1rem; }
.swb-head-title-sm i { color: var(--primary); font-size: 0.85em; margin-right: 6px; }
.swb-head-sub { font-size: 0.94rem; line-height: 1.6; color: var(--gray-600); margin: 0; }
.swb-head-link {
    flex: 0 0 auto; white-space: nowrap;
    font-family: var(--font-mono); font-size: 0.72rem;
    letter-spacing: 0.09em; text-transform: uppercase;
    color: var(--primary); text-decoration: none; font-weight: 500;
    padding-bottom: 2px; border-bottom: 1px solid var(--primary-100);
    transition: border-color var(--transition-fast), color var(--transition-fast);
}
.swb-head-link:hover { color: var(--primary-darker); border-bottom-color: var(--primary); }
.swb-head-link i { font-size: 0.85em; margin-left: 4px; }

/* --- buttons --------------------------------------------------------------- */
.swb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 1.25rem;
    font-family: var(--font-family); font-size: 0.88rem; font-weight: 600;
    letter-spacing: 0.01em; border-radius: var(--radius-sm);
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background var(--transition-fast), border-color var(--transition-fast),
                color var(--transition-fast), transform var(--transition-fast);
}
.swb-btn i { font-size: 0.9em; }
.swb-btn-primary { background: var(--primary); color: #fff; border: 1px solid var(--primary); box-shadow: var(--shadow-jade); }
.swb-btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.swb-btn-ghost { background: var(--white); color: var(--gray-700); border: 1px solid var(--border-default); }
.swb-btn-ghost:hover { border-color: var(--primary); color: var(--primary-darker); background: var(--primary-50); }
.swb-btn-block { display: flex; width: 100%; }

/* === 01 — HERO ============================================================= */
.swb-hero {
    padding: 3.5rem 0 4rem;
    background: linear-gradient(180deg, var(--white) 0%, var(--porcelain) 100%);
    border-bottom: 1px solid var(--border-subtle);
    position: relative; overflow: hidden;
}
/* faint engineering graticule — the datasheet cue */
.swb-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 78% 12%, #000 0%, transparent 72%);
            mask-image: radial-gradient(ellipse 70% 80% at 78% 12%, #000 0%, transparent 72%);
}
.swb-hero .container { position: relative; z-index: 1; }
.swb-hero-grid {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem; align-items: start;
}
.swb-hero-title {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2rem, 4.1vw, 3.15rem); line-height: 1.08;
    letter-spacing: -0.03em; color: var(--ink); margin: 0 0 1.1rem;
}
.swb-hero-title em { font-style: normal; color: var(--primary); }
.swb-seal {
    display: inline-block; vertical-align: 0.28em; margin-left: 10px;
    font-family: 'Noto Sans SC', var(--font-display);
    font-size: 0.3em; font-weight: 700; line-height: 1;
    color: var(--primary); background: var(--primary-50);
    border: 1px solid var(--primary-100); border-radius: var(--radius-sm);
    padding: 5px 7px;
}
.swb-hero-sub {
    font-size: 1.02rem; line-height: 1.68; color: var(--gray-600);
    max-width: 46ch; margin: 0 0 1.75rem;
}
.swb-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.75rem; }
.swb-hero-ledger { list-style: none; margin: 0; padding: 1.25rem 0 0; border-top: 1px solid var(--border-default); }
.swb-hero-ledger li {
    display: flex; align-items: center; gap: 9px;
    font-size: 0.85rem; color: var(--gray-600); padding: 5px 0;
}
.swb-hero-ledger li i { color: var(--primary); width: 15px; text-align: center; font-size: 0.9em; }
.swb-hero-ledger a { color: var(--gray-600); text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.swb-hero-ledger a:hover { color: var(--primary-darker); }

/* trade-terms datasheet */
.swb-terms {
    background: var(--white);
    border: 1px solid var(--border-default);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
}
.swb-terms-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; padding-bottom: 0.85rem; margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--border-default);
}
.swb-terms-title { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.swb-terms-title .cn-accent { color: var(--primary); margin-right: 4px; }
.swb-terms-meta {
    font-family: var(--font-mono); font-size: 0.62rem;
    letter-spacing: 0.11em; text-transform: uppercase; color: var(--gray-400); white-space: nowrap;
}
.swb-terms-table { width: 100%; border-collapse: collapse; margin-bottom: 0.85rem; }
.swb-terms-table td { padding: 0.7rem 0; border-bottom: 1px solid var(--border-subtle); vertical-align: baseline; }
.swb-terms-table tr:last-child td { border-bottom: none; }
.swb-t-idx {
    width: 1%; padding-right: 12px !important;
    font-family: var(--font-mono); font-size: 0.62rem; color: var(--gray-300); letter-spacing: 0.06em;
}
.swb-t-tier { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gray-700); white-space: nowrap; }
.swb-t-val { text-align: right; font-size: 0.84rem; font-weight: 700; color: var(--primary-darker); }
.swb-t-val small { display: block; font-weight: 500; font-size: 0.68rem; color: var(--gray-500); margin-top: 1px; }
.swb-t-max .swb-t-tier { color: var(--ink); font-weight: 700; }
.swb-t-max .swb-t-val { color: var(--primary); font-size: 0.95rem; }

.swb-terms-timer {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--ink); border-radius: var(--radius-sm);
    padding: 0.7rem 0.85rem; margin-bottom: 0.85rem;
}
.swb-terms-timer > span:first-child {
    font-family: var(--font-mono); font-size: 0.62rem;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-400);
}
.swb-timer-val {
    font-family: var(--font-mono); font-size: 0.95rem; font-weight: 700;
    letter-spacing: 0.04em; color: var(--primary-lighter);
}
.swb-terms-foot { font-size: 0.72rem; line-height: 1.5; color: var(--gray-500); margin: 0.85rem 0 0; text-align: center; }
.swb-terms-foot a { color: var(--primary); font-weight: 600; word-break: break-word; }

/* === 02 — KEY FIGURES ====================================================== */
.swb-figures { background: var(--ink); padding: 0; }
.swb-figures-row {
    display: grid; grid-template-columns: repeat(5, 1fr);
    margin: 0; padding: 0;
}
.swb-figure {
    padding: 1.6rem 1rem; text-align: center; text-decoration: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: background var(--transition-fast);
}
.swb-figure:first-child { border-left: none; }
.swb-figure:hover { background: rgba(255, 255, 255, 0.045); }
.swb-figure dt {
    font-family: var(--font-mono); font-weight: 700;
    font-size: 1.6rem; letter-spacing: -0.02em; color: #fff; line-height: 1;
}
.swb-figure dt span { color: var(--primary-lighter); }
.swb-figure dd {
    margin: 7px 0 0; font-family: var(--font-mono);
    font-size: 0.6rem; letter-spacing: 0.11em; text-transform: uppercase;
    color: var(--gray-400); line-height: 1.4;
}

/* === 03 — CATALOGUE ======================================================== */
.swb-catalog .trending-grid { max-width: none; }
.swb-catalog-foot {
    display: flex; justify-content: center; gap: 10px;
    margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--border-subtle);
}

/* === 04 — VERIFICATION DOSSIER ============================================= */
.swb-labs { margin-bottom: 2.5rem; }
.swb-dossier {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--border-default); border: 1px solid var(--border-default);
    border-radius: var(--radius-md); overflow: hidden;
}
.swb-doc {
    position: relative; display: block; padding: 1.6rem 1.35rem;
    background: var(--white); text-decoration: none;
    transition: background var(--transition-fast);
}
.swb-doc:hover { background: var(--primary-50); }
.swb-doc-idx {
    display: block; font-family: var(--font-mono); font-size: 0.64rem;
    font-weight: 700; letter-spacing: 0.1em; color: var(--primary);
    margin-bottom: 0.85rem;
}
.swb-doc h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 0.55rem; }
.swb-doc p { font-size: 0.82rem; line-height: 1.6; color: var(--gray-600); margin: 0 0 1rem; }
.swb-doc-link {
    font-family: var(--font-mono); font-size: 0.63rem;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); font-weight: 500;
}
.swb-doc-link i { font-size: 0.85em; margin-left: 4px; }

.swb-community {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border-default);
}
.swb-community-label {
    font-family: var(--font-mono); font-size: 0.62rem;
    letter-spacing: 0.13em; text-transform: uppercase; color: var(--gray-500); margin-right: 4px;
}
.swb-community a {
    display: inline-flex; align-items: center; gap: 7px;
    min-height: 36px; padding: 0 12px;
    background: var(--white); border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    font-size: 0.8rem; font-weight: 600; color: var(--gray-700); text-decoration: none;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}
.swb-community a:hover { border-color: var(--primary); color: var(--primary-darker); }
.swb-community a i { color: var(--primary); font-size: 0.9em; }

/* === 05 — FACILITY PLATES ================================================== */
.swb-plate { margin: 0; background: var(--white); border: 1px solid var(--border-default); border-radius: var(--radius-md); overflow: hidden; }
.swb-plate img { display: block; width: 100%; height: auto; }
.swb-plate figcaption {
    display: flex; align-items: center; gap: 10px;
    padding: 0.75rem 0.9rem; border-top: 1px solid var(--border-subtle);
    font-size: 0.78rem; color: var(--gray-600); line-height: 1.4;
}
.swb-fig {
    flex: 0 0 auto; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.09em; text-transform: uppercase; color: var(--primary);
    background: var(--primary-50); border: 1px solid var(--primary-100);
    border-radius: var(--radius-sm); padding: 3px 6px;
}
.swb-plate-lead { margin-bottom: 1rem; }
.swb-plate-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* === 06 — ORDER PATHWAY RAIL =============================================== */
.swb-rail {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
    position: relative;
}
/* the connecting hairline the step numbers sit on */
.swb-rail::before {
    content: ''; position: absolute; left: 0; right: 0; top: 15px;
    height: 1px; background: var(--border-default);
}
.swb-rail-step { position: relative; padding: 0 1.25rem 0 0; }
.swb-rail-num {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; margin-bottom: 1rem;
    background: var(--primary); color: #fff;
    border: 3px solid var(--surface-sunken);
    border-radius: 50%;
    font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.02em;
}
.swb-rail-step h4 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--ink); margin: 0 0 0.35rem; }
.swb-rail-step p { font-size: 0.81rem; line-height: 1.55; color: var(--gray-600); margin: 0; }

/* === 07 — SETTLEMENT + STANDING ============================================ */
.swb-settle-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 1.5rem; align-items: stretch; }
.swb-pay {
    background: var(--white); border: 1px solid var(--border-default);
    border-radius: var(--radius-md); padding: 1.6rem;
}
.swb-pay-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.swb-chip {
    display: inline-flex; align-items: center; gap: 7px;
    min-height: 38px; padding: 0 12px;
    background: var(--porcelain); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.8rem; font-weight: 600; color: var(--gray-700);
}
.swb-chip i { color: var(--gray-500); font-size: 0.95em; }
.swb-chip-alt { background: var(--primary-50); border-color: var(--primary-100); color: var(--primary-darker); }
.swb-chip-alt i { color: var(--primary); }
.swb-chip-alt b {
    font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.06em; background: var(--primary); color: #fff;
    border-radius: var(--radius-sm); padding: 2px 5px;
}
.swb-pay-note { font-size: 0.76rem; color: var(--gray-500); margin: 1rem 0 0; }

.swb-standing {
    display: flex; flex-direction: column; justify-content: center;
    background: var(--ink); border-radius: var(--radius-md);
    padding: 1.6rem; text-decoration: none;
    transition: background var(--transition-fast);
}
.swb-standing:hover { background: #0d1317; }
.swb-rule-label-inv { color: var(--gray-400); margin-bottom: 1rem; }
.swb-rule-label-inv .swb-rule-idx { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: var(--primary-lighter); }
.swb-standing-score { display: flex; align-items: center; gap: 12px; margin-bottom: 0.6rem; }
.swb-standing-score strong { font-family: var(--font-mono); font-size: 2.3rem; font-weight: 700; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.swb-stars { display: inline-flex; gap: 2px; color: #d9a441; font-size: 0.9rem; }
.swb-standing-count { font-size: 0.82rem; line-height: 1.5; color: var(--gray-300); margin: 0 0 1.1rem; }
.swb-standing-count strong { color: #fff; }
.swb-standing-link {
    font-family: var(--font-mono); font-size: 0.63rem;
    letter-spacing: 0.11em; text-transform: uppercase; color: var(--primary-lighter); font-weight: 500;
}
.swb-standing-link i { font-size: 0.85em; margin-left: 4px; }

/* === 08 — FAQ ============================================================== */
.swb-faq .faq-item { background: var(--white); }
.swb-faq .faq-question { min-height: 46px; }

/* ============================================================================
   CONTRAST REPAIR — driven by site-factory/contrast-audit.js (WCAG AA)
   ----------------------------------------------------------------------------
   The surface is LIGHT, so the template's mid-greys (--gray-300/--gray-400) and
   the WWB sage leftovers (#98a09a, #6c7670) land under 4.5:1 on white/porcelain
   panels. The two INVERTED contexts (footer on --ink, the red sale bar) need the
   opposite move: their template greys must go light. Both directions are below.
   Grouped by the surface being fixed, not by page.
   ============================================================================ */

/* --- light panels: mid-grey -> --gray-600 / --gray-500 ---------------------- */
.swb-t-idx { color: var(--gray-500); }              /* 1.85 -> 5.72 */
.swb-terms-meta { color: var(--gray-600); }         /* 3.24 -> 8.44 */
.trending-spec { color: var(--gray-600); }          /* 3.16 -> 7.70 */
.pl-raw-sep { color: var(--gray-500); }             /* 1.69 -> 5.22 */

/* verified-labs partial ships its own <style> after this file -> needs !important */
.verified-labs .vl-badge .vl-prefix { color: var(--gray-600) !important; }  /* 3.31 -> 8.44 */
.mobile-nav-links li > span { color: var(--gray-600) !important; }          /* 2.43 -> 7.70 */

/* reviews: template greys + the Trustpilot green were all sub-AA on white */
.review-author-meta,
.review-posted-date,
.company-response-date,
.review-action-btn { color: var(--gray-600); }      /* 2.96-3.24 -> 7.70-8.44 */
.trust-score-label { color: #2f6647; }              /* 2.58 -> 6.62 */
.price-save { color: #2f6647; }                     /* 4.40 -> 6.04 */

/* product page: WWB sage greys (#98a09a / #6c7670) stranded on light panels */
.pd-detail-label,
.pd-section-subtitle,
.pd-price-label,
.pd-specification,
.pd-breadcrumb-link { color: var(--gray-600); }     /* 2.26-4.35 -> 7.27+ */
.step-number, .step-text { color: var(--gray-600); }/* 2.99 -> 7.5 */

/* checkout: unreached milestones + courier lines are inline var(--gray-400) */
#savingsProgressBar [style*="--gray-400"] { color: var(--gray-600) !important; }  /* 2.96 -> 7.70 */
#shippingCourierExpress,
#shippingCourierStandard { color: var(--gray-600) !important; }                   /* 3.16 -> 7.70 */

/* bilingual accent on the sunken about panel */
.section-heading .cn-accent { color: var(--primary-dark) !important; }  /* 2.77 -> 7.03 */

/* gold "Fastest"/"TRACKED" chips: gradient is too light for #5c3d0d text */
.about-team-badge-fastest,
.contact-team-badge-fastest { color: var(--ink); }          /* 3.24 -> 5.76 */
span[style*="5c3d0d"] { color: var(--ink) !important; }     /* 3.24 -> 5.76 */

/* --- INVERTED contexts: template greys must go LIGHT, not dark -------------- */

/* footer sits on --ink; its seal + address carry inline light-surface colours */
.footer .cn-seal { color: var(--primary-lighter) !important; border-color: var(--primary-lighter) !important; }  /* 2.99 -> 7.44 */
.footer .footer-col > p { color: var(--gray-300) !important; }  /* 2.99 -> 9.32 */

/* countdown: on the --ink band keep the num/unit hierarchy ... */
.timer-num { color: #fff; }
.timer-sep, .timer-unit { color: var(--gray-300); }         /* 2.99 -> 9.32 */
/* ... but the red sale bar's lightest stop (#c14e3c) only clears AA at pure white */
.sale-bar .timer-num,
.sale-bar .timer-sep,
.sale-bar .timer-unit { color: #fff; }                      /* 1.09 -> 4.69 */

/* about: inline background:#525c55 (WWB sage) is a DARK chip — invert its text
   rather than leave --ink stranded on it, and re-tone it onto the ink ramp. */
.about-team-contact { background: var(--ink) !important; }
.about-team-contact strong { color: #fff; }                 /* 2.51 -> 18.1 */
.about-team-contact div span { color: var(--gray-300); }    /* 1.19 -> 9.32 */

/* products header: the azure glow was rgba(...,0.07) + `transparent`, i.e. the
   band's real stops are a DARK blue and BLACK. Painting the same wash with
   opaque ramp stops keeps the look and makes the measurement match the render. */
.products-page-header {
    background: linear-gradient(215deg, var(--primary-100) 0%, var(--porcelain) 42%, var(--paper) 100%) !important;
}                                                           /* title 1.20 -> 17.4, subtitle 1.50 -> 7.03 */

/* reviews avatars: the template's pastel palette clears AA against NEITHER white
   nor ink at these mid-tones. Recolour onto dark brand tones (white initials stay
   readable) and cycle 8 of them so the avatar wall keeps its variety. */
.review-avatar { background: var(--primary-dark) !important; color: #fff; }
.review-card:nth-of-type(8n+1) .review-avatar { background: var(--primary-darker) !important; }
.review-card:nth-of-type(8n+2) .review-avatar { background: var(--primary) !important; }
.review-card:nth-of-type(8n+3) .review-avatar { background: var(--gray-700) !important; }
.review-card:nth-of-type(8n+4) .review-avatar { background: var(--amber-dim) !important; }
.review-card:nth-of-type(8n+5) .review-avatar { background: var(--secondary-green) !important; }
.review-card:nth-of-type(8n+6) .review-avatar { background: var(--error-red) !important; }
.review-card:nth-of-type(8n+7) .review-avatar { background: var(--ink) !important; }
.review-card:nth-of-type(8n+8) .review-avatar { background: var(--primary-dark) !important; }
/* 1.94-4.37 -> 4.81+ */

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .swb-section { padding: 2.75rem 0; }

    /* hero stacks; the datasheet follows the pitch */
    .swb-hero { padding: 2rem 0 2.5rem; }
    .swb-hero::before { display: none; }
    .swb-hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .swb-hero-title { font-size: 1.95rem; }
    .swb-hero-sub { font-size: 0.95rem; max-width: none; margin-bottom: 1.5rem; }
    /* the seal wraps below the headline at this width — set it as a deliberate
       chop/stamp under the statement rather than a stray trailing glyph */
    .swb-seal { vertical-align: baseline; margin: 0.6rem 0 0; font-size: 0.95rem; }

    /* full-width CTAs, 46px tap targets */
    .swb-btn { min-height: 46px; }
    .swb-hero-cta { flex-direction: column; gap: 8px; }
    .swb-hero-cta .swb-btn { width: 100%; }
    .swb-catalog-foot { flex-direction: column; }
    .swb-catalog-foot .swb-btn { width: 100%; }

    .swb-terms { padding: 1rem; }
    .swb-terms-head { flex-direction: column; align-items: flex-start; gap: 3px; }
    .swb-t-tier { font-size: 0.75rem; white-space: normal; }
    .swb-t-val { font-size: 0.8rem; }

    /* section heads stack, the "all products" link drops below as a real control */
    .swb-head { flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 1.75rem; }
    .swb-head-title { font-size: 1.4rem; }
    .swb-head-sub { font-size: 0.88rem; }
    .swb-head-link {
        display: inline-flex; align-items: center; min-height: 46px;
        border-bottom: none;
    }

    /* figures: 5 across -> 2 across */
    .swb-figures-row { grid-template-columns: repeat(2, 1fr); }
    .swb-figure { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.25rem 0.75rem; }
    .swb-figure:first-child, .swb-figure:nth-child(2) { border-top: none; }
    .swb-figure:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.1); }
    .swb-figure:last-child { grid-column: 1 / -1; border-right: none; }
    .swb-figure dt { font-size: 1.35rem; }

    /* dossier + plates + rail all collapse to one column */
    .swb-dossier { grid-template-columns: 1fr; }
    .swb-doc { padding: 1.25rem; }
    .swb-plate-row { grid-template-columns: 1fr; gap: 0.75rem; }

    .swb-rail { grid-template-columns: 1fr; gap: 1.25rem; }
    .swb-rail::before { display: none; }
    .swb-rail-step {
        display: grid; grid-template-columns: 32px 1fr; column-gap: 14px;
        padding: 0 0 1.25rem; border-bottom: 1px solid var(--border-default);
    }
    .swb-rail-step:last-child { border-bottom: none; padding-bottom: 0; }
    .swb-rail-num { grid-row: 1 / 3; margin-bottom: 0; border-width: 0; }
    .swb-rail-step h4 { align-self: center; }

    .swb-settle-grid { grid-template-columns: 1fr; }
    .swb-pay, .swb-standing { padding: 1.25rem; }
    .swb-chip { min-height: 46px; }
    .swb-community a { min-height: 46px; }
}
