/* ============================================================================
   FLOURISHGLOBAL PEPTIDE IDENTITY — generated by site-factory/generate-identity.js
   pack: register · surface: light · primary: #1D4E9B
   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: #1d4e9b;
    --primary-dark: #173d79;
    --primary-darker: #102b56;
    --primary-light: #2768cf;
    --primary-lighter: #7c9fd5;
    --primary-50: #f2f4f8;
    --primary-100: #e1e6ef;

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

    /* --- Accent (erp.css naming: data highlights, sparingly) --- */
    --amber: #c8416a;
    --amber-dim: #9a2d4e;

    /* --- Neutral ramp (hue-tinted from the primary) --- */
    --white: #fbfcfe;
    --paper: #eef1f7;
    --porcelain: #f8f9fc;
    --gray-50: #eef1f6;
    --gray-100: #e1e7ef;
    --gray-200: #ced6e3;
    --gray-300: #abb9ce;
    --gray-400: #7186a8;
    --gray-500: #4c5e7b;
    --gray-600: #38465c;
    --gray-700: #293342;
    --gray-800: #1b222c;
    --gray-900: #131820;
    --ink: #131820;

    /* --- Borders / surfaces --- */
    --border-subtle: rgba(19, 24, 32, 0.09);
    --border-default: rgba(19, 24, 32, 0.16);
    --hairline: 1px solid rgba(19, 24, 32, 0.12);
    --surface-elevated: #f8f9fc;
    --surface-sunken: #e4e9f1;
    --grid-line: rgba(16, 43, 86, 0.045);

    /* --- Type: register pack --- */
    --font-family: 'Public Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Archivo', 'Public Sans', 'Songti SC', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

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

    /* --- Shadows (primary-tinted ink shadows) --- */
    --shadow-sm: 0 1px 2px rgba(16, 43, 86, 0.06);
    --shadow-md: 0 1px 2px rgba(16, 43, 86, 0.05), 0 6px 16px -8px rgba(16, 43, 86, 0.14);
    --shadow-lg: 0 2px 4px rgba(16, 43, 86, 0.05), 0 14px 30px -12px rgba(16, 43, 86, 0.2);
    --shadow-xl: 0 4px 10px rgba(16, 43, 86, 0.06), 0 26px 52px -18px rgba(16, 43, 86, 0.26);
    --shadow-jade: 0 8px 20px -8px rgba(29, 78, 155, 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: 800;
    letter-spacing: -0.015em;
    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 Serif 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, 241, 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: 900;
    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: 700;
    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: 700;
    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: 800; 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: 700;
    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(19, 24, 32, 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: 800; 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, 241, 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: 900; 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: #0d1116; }

/* products page header — retint title + glow.
   The glow is a ::before layer, not a low-alpha stop on the element background —
   see the CONTRAST REPAIR layer at the foot of this file. */
.products-page-header {
    position: relative;
    background: linear-gradient(180deg, var(--porcelain) 0%, var(--paper) 100%) !important;
}
.products-page-header::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 130% at 85% -20%, rgba(29, 78, 155, 0.07), transparent 60%);
}
.products-page-header > .container { position: relative; z-index: 1; }
.products-page-title { color: var(--ink) !important; font-weight: 800; }

/* 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 — "THE COMET ROUTE"  (authored; not emitted by generate-identity)
   ----------------------------------------------------------------------------
   Concept: the logo's swoosh is the shipping route. It originates at the
   Chengdu factory, tapers outward, and the four real warehouses (CN/US/AU/CA)
   sit ON it as stations. The arc is structure, not ornament.
   Surface is LIGHT: porcelain page, near-black ink. The ONE dark object is the
   offer card — it is the focal point by contrast, not by decoration.
   The rose accent (--amber #c8416a) is spent ONLY on the live sale timer.
   Italic mono echoes the italic FGP monogram in the logo.
   ============================================================================ */

/* --- shared band rhythm ---------------------------------------------------- */
.fgp-band { padding: 74px 0; background: var(--porcelain); }
.fgp-band-sunken { background: var(--paper); border-top: var(--hairline); border-bottom: var(--hairline); }
.fgp-shead { margin-bottom: 40px; max-width: 62ch; }
.fgp-shead-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--primary);
    margin-bottom: 12px;
}
.fgp-shead-eyebrow::before {
    content: ""; width: 26px; height: 2px; background: var(--primary); flex: none;
}
.fgp-shead h2 {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(1.6rem, 3.1vw, 2.3rem); line-height: 1.1;
    letter-spacing: -0.025em; color: var(--ink); margin: 0 0 10px;
}
.fgp-shead p { font-size: 1rem; line-height: 1.65; color: var(--gray-600); margin: 0; }

/* === HERO — the comet ==================================================== */
.fgp-hero {
    position: relative; overflow: hidden;
    /* NB: the blue tint that used to live here as a low-alpha gradient stop now
       sits on ::before — see the CONTRAST REPAIR layer at the foot of this file
       for why. The visual is unchanged. */
    background: linear-gradient(180deg, var(--white) 0%, var(--porcelain) 62%, var(--paper) 100%);
    border-bottom: var(--hairline);
    padding: 60px 0 0;
}
.fgp-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse 66% 70% at 88% 6%, rgba(29, 78, 155, 0.09), transparent 62%);
}
/* the swoosh, abstracted from the logo ring — sweeps behind the copy */
.fgp-comet {
    position: absolute; top: -70px; right: -140px;
    width: 780px; max-width: 78vw; height: auto;
    pointer-events: none; opacity: 0.5; z-index: 0;
}
.fgp-hero .container { position: relative; z-index: 1; }
.fgp-hero-grid {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 54px; align-items: start;
}
.fgp-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-mono); font-size: 0.67rem; font-weight: 600;
    letter-spacing: 0.17em; text-transform: uppercase;
    color: var(--primary-darker);
    background: var(--primary-50); border: 1px solid var(--primary-100);
    padding: 7px 13px; border-radius: 100px; margin-bottom: 22px;
}
.fgp-eyebrow i { color: var(--primary); }
.fgp-h1 {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(2.2rem, 5.1vw, 3.85rem); line-height: 1.04;
    letter-spacing: -0.035em; color: var(--ink);
    max-width: 15ch; margin: 0 0 20px;
}
/* the one italic in the headline — the FGP monogram is italic */
.fgp-h1 .fgp-swoosh {
    position: relative; font-style: italic; color: var(--primary); white-space: nowrap;
}
.fgp-h1 .fgp-swoosh::after {
    content: ""; position: absolute; left: -2%; right: -2%; bottom: -0.14em; height: 0.13em;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 62%, rgba(39, 104, 207, 0) 100%);
    border-radius: 100px;
}
.fgp-lede {
    font-size: 1.06rem; line-height: 1.68; color: var(--gray-600);
    max-width: 52ch; margin: 0 0 28px;
}
.fgp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.fgp-cta, .fgp-cta-line {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-family); font-size: 0.93rem; font-weight: 700;
    padding: 14px 24px; min-height: 48px; border-radius: var(--radius-md);
    text-decoration: none; white-space: nowrap;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.fgp-cta { background: var(--primary); color: #fff; border: 1px solid var(--primary); box-shadow: var(--shadow-jade); }
.fgp-cta:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.fgp-cta-line { background: var(--white); color: var(--gray-700); border: 1px solid var(--border-default); }
.fgp-cta-line:hover { border-color: var(--primary); color: var(--primary-darker); }
.fgp-trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.fgp-trust-item, .fgp-trust-item a {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.82rem; font-weight: 600; color: var(--gray-600); text-decoration: none;
}
.fgp-trust-item i { color: var(--primary); }
.fgp-trust-item a:hover { color: var(--primary-darker); }

/* --- offer card: the single dark object on a light page -------------------- */
.fgp-deal {
    position: relative; overflow: hidden;
    background: linear-gradient(168deg, var(--primary-darker) 0%, #0a1c39 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}
.fgp-deal::before { /* the swoosh again, as a light sweep */
    content: ""; position: absolute; top: -60%; right: -30%;
    width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(39, 104, 207, 0.5) 0%, transparent 68%);
    pointer-events: none;
}
.fgp-deal-head {
    position: relative; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.fgp-deal-name {
    font-family: var(--font-display); font-weight: 800; font-size: 0.98rem;
    color: #fff; letter-spacing: -0.01em;
}
.fgp-deal-name .cn-accent { color: var(--primary-lighter); margin-right: 6px; font-weight: 400; }
.fgp-deal-flag {
    font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: #fff; background: var(--amber);
    padding: 4px 9px; border-radius: 100px; white-space: nowrap;
}
.fgp-deal-tiers { position: relative; padding: 6px 20px 12px; }
.fgp-deal-tier {
    display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
    padding: 11px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}
.fgp-deal-tier:last-child { border-bottom: none; }
.fgp-deal-tier-label {
    font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
    color: var(--primary-lighter); letter-spacing: 0.02em;
}
.fgp-deal-tier-value {
    font-family: var(--font-display); font-size: 0.86rem; font-weight: 800;
    color: #fff; text-align: right;
}
.fgp-deal-timer {
    position: relative; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 13px 20px;
    background: rgba(0, 0, 0, 0.28); border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.fgp-deal-timer-label {
    font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500;
    letter-spacing: 0.15em; text-transform: uppercase; color: var(--primary-lighter);
}
/* the ONE place the rose accent is spent (lightened for AA on the navy panel) */
#promoTimerCard {
    font-family: var(--font-mono); font-size: 1.02rem; font-weight: 700;
    color: #ff8fb0; letter-spacing: 0.05em; font-variant-numeric: tabular-nums;
}
.fgp-deal-foot { position: relative; padding: 16px 20px 18px; }
.fgp-deal-btn {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; min-height: 48px; padding: 14px 20px;
    background: #fff; color: var(--primary-darker);
    font-family: var(--font-family); font-size: 0.93rem; font-weight: 800;
    border-radius: var(--radius-md); text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.fgp-deal-btn:hover { background: var(--primary-lighter); color: var(--primary-darker); }
.fgp-deal-mail {
    display: block; margin-top: 12px; text-align: center;
    font-size: 0.78rem; color: var(--gray-300);
}
.fgp-deal-mail a { color: #fff; font-weight: 600; text-decoration: none; }
.fgp-deal-mail a:hover { color: var(--primary-lighter); text-decoration: underline; }

/* --- spec rail: hard facts, mono, hairline-separated ----------------------- */
.fgp-specrail {
    display: grid; grid-template-columns: repeat(4, 1fr);
    margin-top: 56px; border-top: var(--hairline);
}
.fgp-spec { padding: 20px 22px 24px; border-right: var(--hairline); }
.fgp-spec:last-child { border-right: none; }
.fgp-spec-value {
    font-family: var(--font-display); font-weight: 900;
    font-size: 1.55rem; line-height: 1; letter-spacing: -0.03em;
    color: var(--ink); margin-bottom: 7px;
}
.fgp-spec-label {
    font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500;
    letter-spacing: 0.11em; text-transform: uppercase; color: var(--gray-500);
    line-height: 1.5;
}

/* === THE ROUTE — signature: warehouses as stations on the swoosh ========== */
.fgp-route { position: relative; overflow: hidden; }
.fgp-route-stage { position: relative; }
.fgp-route-arc {
    position: absolute; top: 0; left: 0; width: 100%; height: 130px;
    pointer-events: none; overflow: visible; z-index: 0;
}
.fgp-route-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    padding-top: 34px;
}
/* the cards themselves trace the arc — the layout IS the swoosh */
.fgp-station { --fgp-lift: 0px; transform: translateY(var(--fgp-lift)); }
.fgp-station:nth-child(1) { --fgp-lift: 46px; }
.fgp-station:nth-child(4) { --fgp-lift: 46px; }
.fgp-station {
    background: var(--white); border: 1px solid var(--border-subtle);
    border-top: 2px solid var(--primary);
    border-radius: var(--radius-lg); padding: 20px 18px 22px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.fgp-station:hover { box-shadow: var(--shadow-lg); }
/* station code — italic mono, echoing the italic FGP monogram */
.fgp-station-code {
    font-family: var(--font-mono); font-style: italic; font-weight: 700;
    font-size: 1.5rem; letter-spacing: 0.02em; color: var(--primary);
    line-height: 1; margin-bottom: 10px;
}
.fgp-station h3 {
    font-family: var(--font-display); font-weight: 800; font-size: 1rem;
    color: var(--ink); margin: 0 0 6px; letter-spacing: -0.01em;
}
.fgp-station p { font-size: 0.84rem; line-height: 1.6; color: var(--gray-600); margin: 0; }
.fgp-station-tag {
    display: inline-block; margin-top: 12px;
    font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--primary-darker); background: var(--primary-50);
    padding: 4px 8px; border-radius: var(--radius-sm);
}
.fgp-station-tag.origin { color: #fff; background: var(--primary); }
.fgp-route-note {
    margin-top: 78px; padding-top: 20px; border-top: var(--hairline);
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
    color: var(--gray-500); text-align: center;
}
.fgp-route-note strong { color: var(--primary-darker); font-weight: 700; }

/* === VERIFICATION LEDGER ================================================== */
.fgp-ledger { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fgp-ledger-row {
    display: flex; align-items: flex-start; gap: 16px;
    background: var(--white); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); padding: 20px;
    text-decoration: none; color: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.fgp-ledger-row:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.fgp-ledger-icon {
    flex: none; width: 42px; height: 42px; display: grid; place-items: center;
    background: var(--primary-50); color: var(--primary);
    border-radius: var(--radius-md); font-size: 1.05rem;
}
.fgp-ledger-body h4 {
    font-family: var(--font-display); font-weight: 800; font-size: 0.98rem;
    color: var(--ink); margin: 0 0 5px;
}
.fgp-ledger-body p { font-size: 0.84rem; line-height: 1.6; color: var(--gray-600); margin: 0; }
.fgp-ledger-link {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 10px;
    font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary);
}

/* === PAYMENT INDEX ======================================================== */
.fgp-pay-head {
    display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-500);
}
.fgp-pay-head i { color: var(--primary); }
.fgp-pay { display: flex; flex-wrap: wrap; gap: 10px; }
.fgp-paychip {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--white); border: 1px solid var(--border-subtle);
    border-radius: 100px; padding: 10px 16px; min-height: 46px;
    font-size: 0.83rem; font-weight: 600; color: var(--gray-700);
}
.fgp-paychip-tag {
    font-family: var(--font-mono); font-size: 0.58rem; font-weight: 700;
    letter-spacing: 0.1em; color: #fff; background: var(--amber);
    padding: 3px 7px; border-radius: 100px;
}

/* === PROCESS — a real sequence, so it is numbered ========================= */
.fgp-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.fgp-step { position: relative; padding-top: 18px; border-top: 2px solid var(--border-default); }
.fgp-step:first-child { border-top-color: var(--primary); }
.fgp-step-n {
    font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700;
    letter-spacing: 0.14em; color: var(--primary); margin-bottom: 10px;
}
.fgp-step h4 {
    font-family: var(--font-display); font-weight: 800; font-size: 0.98rem;
    color: var(--ink); margin: 0 0 5px;
}
.fgp-step p { font-size: 0.83rem; line-height: 1.58; color: var(--gray-600); margin: 0; }

/* === FACILITY ============================================================= */
.fgp-facility-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-subtle); }
.fgp-facility-hero img, .fgp-facility-cell img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fgp-facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.fgp-facility-cell { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-subtle); }
.fgp-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; gap: 8px;
    padding: 22px 14px 11px;
    background: linear-gradient(180deg, transparent 0%, rgba(16, 43, 86, 0.92) 100%);
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
    letter-spacing: 0.06em; color: #fff;
}
.fgp-cap i { color: var(--primary-lighter); }

/* === STATS BAR ============================================================ */
.fgp-stats {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
    background: var(--border-subtle); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); overflow: hidden;
}
.fgp-stat { background: var(--white); padding: 22px 14px; text-align: center; text-decoration: none; transition: background var(--transition-fast); }
.fgp-stat:hover { background: var(--primary-50); }
.fgp-stat-v { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; color: var(--primary-darker); letter-spacing: -0.03em; line-height: 1; margin-bottom: 7px; }
.fgp-stat-l { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.11em; text-transform: uppercase; color: var(--gray-500); }

/* ============================================================================
   MOBILE — hero stacks, the route straightens, CTAs go full width,
   every tap target >= 46px.
   ============================================================================ */
@media (max-width: 1024px) {
    .fgp-hero-grid { grid-template-columns: 1fr; gap: 38px; }
    .fgp-h1 { max-width: 20ch; }
    .fgp-lede { max-width: none; }
    .fgp-comet { top: -40px; right: -180px; opacity: 0.3; }
    .fgp-steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .fgp-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    /* the arc straightens — same route, no curve to trace.
       NB: must match the :nth-child specificity that sets the lift, or the
       outer two stations stay shifted and overlap the cards below them. */
    .fgp-route-grid { grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 0; }
    .fgp-station:nth-child(1), .fgp-station:nth-child(2),
    .fgp-station:nth-child(3), .fgp-station:nth-child(4) { --fgp-lift: 0px; }
    .fgp-route-arc { display: none; }
    .fgp-route-note { margin-top: 34px; }
    .fgp-ledger { grid-template-columns: 1fr; }
    .fgp-facility-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    /* the generated base sets `white-space: nowrap` on the logo tagline, which
       pushes the warehouse/cart controls off-screen at 390px. The FGP mark
       carries the brand on its own here. */
    .header .logo-text small, .logo-text small { display: none; }

    .fgp-band { padding: 48px 0; }
    .fgp-hero { padding: 34px 0 0; }
    .fgp-comet { display: none; }
    .fgp-h1 { font-size: clamp(1.95rem, 8.4vw, 2.5rem); max-width: none; }
    .fgp-lede { font-size: 0.98rem; }
    .fgp-shead { margin-bottom: 28px; }

    /* full-width CTAs */
    .fgp-cta-row { flex-direction: column; gap: 10px; }
    .fgp-cta, .fgp-cta-line { width: 100%; min-height: 50px; font-size: 0.95rem; }

    .fgp-trust-row { gap: 9px 16px; }
    .fgp-trust-item, .fgp-trust-item a { font-size: 0.78rem; }

    /* spec rail reflows 4 -> 2 */
    .fgp-specrail { grid-template-columns: 1fr 1fr; margin-top: 34px; }
    .fgp-spec { padding: 16px 14px 18px; border-bottom: var(--hairline); }
    .fgp-spec:nth-child(2n) { border-right: none; }
    .fgp-spec:nth-child(n+3) { border-bottom: none; }
    .fgp-spec-value { font-size: 1.3rem; }

    .fgp-route-grid { grid-template-columns: 1fr; }
    .fgp-station { padding: 18px 16px 20px; }
    .fgp-station-code { font-size: 1.3rem; }

    /* the sequence turns vertical but stays a sequence */
    .fgp-steps { grid-template-columns: 1fr; gap: 0; }
    .fgp-step { border-top: none; border-left: 2px solid var(--border-default); padding: 14px 0 14px 16px; }
    .fgp-step:first-child { border-left-color: var(--primary); }

    .fgp-facility-grid { grid-template-columns: 1fr; }
    .fgp-stats { grid-template-columns: 1fr 1fr; }
    .fgp-stat { padding: 18px 10px; }
    .fgp-stat:last-child { grid-column: 1 / -1; }

    .fgp-paychip { min-height: 46px; padding: 11px 15px; }
    .fgp-ledger-row { padding: 16px; gap: 13px; }
    .fgp-deal-btn { min-height: 50px; }
    .fgp-pay-head { margin-bottom: 14px; }
}

/* ============================================================================
   CONTRAST REPAIR — readability, not restyling.
   Gate: `node site-factory/contrast-audit.js <url> [--checkout]` must exit 0.
   ----------------------------------------------------------------------------
   SURFACE IS LIGHT. Two failure families, both invisible to a CSS grep:
     1. LIGHT-ON-LIGHT — muted tokens (and leftover template greys the identity
        pass never repainted) sitting on porcelain/paper.
     2. DARK-ON-DARK — the same muted tokens stranded on the few genuinely dark
        objects (the footer, the sale bar, the navy offer card).
   The comet-route design above is untouched: the offer card stays dark with
   light text, the rose timer stays rose, the stations keep their stagger.
   ============================================================================ */

/* --- 1. the muted-text token ---------------------------------------------
   --gray-400 was #7186a8: only 3.70:1 on white, 3.03:1 on --surface-sunken.
   It is the shop's "metadata" ink (review dates, spec lines, the Verified-On
   prefix, checkout hints) and is referenced by inline `var(--gray-400)` in the
   templates, so retinting the TOKEN fixes those too — no !important needed.
   New value keeps the blue-grey hue and clears 4.5:1 on every light surface
   in use (>=4.75:1 on the darkest, --surface-sunken #e4e9f1). */
:root { --gray-400: #52658a; }

/* --- 2. the dark objects: re-light the muted tokens for their subtrees -----
   These panels are INTENTIONALLY dark. Rebinding the custom properties inside
   them flips their inherited + inline muted text back to light, which is the
   correct direction here — do NOT scope these as light containers. */
.footer { --gray-400: #9fb0c8; --gray-500: #b9c4d4; --gray-600: #cfd7e2; }
/* the seal is inline-styled to the primary, which dies on the ink footer */
.footer .cn-seal { color: var(--primary-lighter) !important; border-color: var(--primary-lighter) !important; }

/* the sale bar is a dark red gradient — its timer inherited light-surface greys */
.sale-bar .sale-bar-timer,
.sale-bar .timer-num, .sale-bar .timer-unit, .sale-bar .timer-sep { color: #fff; }

/* the offer card's timer: units/separators join the rose (#ff8fb0) they sit in,
   rather than staying grey. Keeps the "rose is spent only on the timer" rule. */
.fgp-deal-timer .timer-num,
.fgp-deal-timer .timer-unit,
.fgp-deal-timer .timer-sep { color: inherit; }

/* --- 3. leftover template greys the identity pass missed ------------------
   #98a09a / #6c7670 / #525c55 are the template's green-grey ramp, hardcoded in
   product.css / home.css. Repaint from the identity ramp. */
.pd-detail-label, .pd-section-subtitle, .pd-price-label { color: var(--gray-500); }
.pd-specification, .pd-breadcrumb-link { color: var(--gray-600); }
.pay-badge { color: var(--gray-600); }
.pl-raw-sep { color: var(--gray-400); }

/* --- 4. leftover template greens ------------------------------------------
   Trustpilot green #00b67a is 2.63:1 on white. Darken it — it stays green. */
.tp-banner-btn, .trust-score-label { color: #00734f; }
.price-save { color: #356b47; }

/* --- 5. the gold "fastest / tracked" pills --------------------------------
   #5c3d0d on the gold gradient is 3.24:1. Near-black warm ink clears it while
   keeping the gold pill. The checkout one is inline-styled, hence the
   attribute selector + !important. */
.about-team-badge-fastest, .contact-team-badge-fastest,
span[style*="5c3d0d"] { color: #33220a !important; }

/* --- 6. the about "email" panels ------------------------------------------
   Inline background:#525c55 is a stranded template grey-green: a mid-tone panel
   carrying near-black <strong> (2.56:1) and grey <span> (1.06:1). On a light
   surface it should be a light panel. */
.about-team-contact[style] {
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100)) !important;
    border: 1px solid var(--primary-100);
}
.about-team-btn[style] { background: var(--primary) !important; color: #fff !important; }

/* --- 7. review avatars ----------------------------------------------------
   Inline pastel backgrounds (#ffa726, #4db6ac, …) carry white initials at
   1.94–4.37:1. Rebind to identity tints that all clear 4.5:1 with white, and
   cycle them so the avatars stay individuated. */
.review-avatar[style] { background: var(--primary) !important; color: #fff !important; }
.review-card:nth-child(4n+2) .review-avatar[style] { background: var(--primary-darker) !important; }
.review-card:nth-child(4n+3) .review-avatar[style] { background: var(--amber-dim) !important; }
.review-card:nth-child(4n+4) .review-avatar[style] { background: var(--secondary-green) !important; }
