﻿
/* ================================================================
   ZARK SOVEREIGN — Marketing site stylesheet
   Phase: L1-07 Day-2 (extracted from inline partial in L2-WEBSITE-CHAT1)

   ⚠️  SINGLE SOURCE OF TRUTH for all marketing CSS.

   The historical Jinja mirror (templates/marketing/partials/_preview_css.html)
   was deleted 2026-10-14 to eliminate drift bugs — its existence caused 3
   separate bugs where CSS changes landed in only one file. Any marketing CSS
   change MUST land in THIS file.

   Cache invalidation:
     After editing this file, bump ?v=N in templates/marketing/base.html.
     nginx serves /static/* with a 30-day immutable cache, so without a bump,
     clients keep serving the stale stylesheet until hard refresh.

   Served via:
     <link rel="stylesheet" href="/static/marketing/css/preview.css?v=N">
   ================================================================ */

:root,
  [data-theme="light"] {
    /* ---- Brand scale (retained for signature use) ---- */
    --z-brand-navy:          #0F172A;
    --z-brand-navy-elev:     #1E293B;
    --z-brand-navy-subtle:   #334155;
    --z-brand-gold:          #D97706;   /* darker gold on light bg */
    --z-brand-gold-hover:    #B45309;
    --z-brand-emerald:       #059669;
    --z-brand-emerald-hover: #047857;
    --z-brand-cyan:          #0891B2;   /* darker cyan on light bg */
    --z-brand-blue:          #2563EB;
    --z-brand-purple:        #7C3AED;
    --z-brand-rose:          #BE123C;

    /* ---- Light surfaces ---- */
    --z-bg:            #FAFAF7;         /* warm off-white */
    --z-bg-elevated:   #FFFFFF;
    --z-bg-subtle:     #F1F1EC;
    --z-bg-inset:      #E8E8E2;
    --z-fg:            #0F172A;         /* headings + primary text */
    --z-fg-muted:      #475569;         /* body paragraphs */
    --z-fg-subtle:     #64748B;         /* meta text */
    --z-fg-on-accent:  #FFFFFF;
    --z-border:        #E5E5DF;
    --z-border-strong: #C9C9C2;
    --z-border-accent: rgba(8, 145, 178, 0.35);

    /* ---- Accents ---- */
    --z-accent:          #0891B2;       /* cyan â€” primary */
    --z-accent-hover:    #0E7490;
    --z-accent-pressed:  #155E75;
    --z-accent-subtle:   rgba(8, 145, 178, 0.08);
    --z-accent-2:        #2563EB;       /* blue â€” secondary */
    --z-accent-2-subtle: rgba(37, 99, 235, 0.08);
    --z-accent-3:        #D97706;       /* gold â€” signature only */
    --z-accent-3-subtle: rgba(217, 119, 6, 0.08);

    /* ---- Gradient + glow ---- */
    --z-gradient-brand:        linear-gradient(135deg, #0891B2 0%, #2563EB 100%);
    --z-gradient-brand-soft:   linear-gradient(135deg, rgba(8,145,178,0.12) 0%, rgba(37,99,235,0.12) 100%);
    --z-gradient-text:         linear-gradient(135deg, #0891B2 0%, #2563EB 100%);
    --z-glow-cyan:             0 8px 32px rgba(8, 145, 178, 0.22);
    --z-glow-cyan-strong:      0 12px 40px rgba(8, 145, 178, 0.32);
    --z-glow-gold:             0 8px 32px rgba(217, 119, 6, 0.22);
    --z-glow-emerald:          0 8px 32px rgba(5, 150, 105, 0.22);

    /* ---- Semantic ---- */
    --z-success: #059669;
    --z-warning: #D97706;
    --z-danger:  #DC2626;
    --z-info:    #0891B2;

    /* ---- Typography ---- */
    --z-font-heading: 'Fraunces', 'Playfair Display', Georgia, serif;
    --z-font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --z-font-mono:    'JetBrains Mono', 'SF Mono', Consolas, monospace;

    /* ---- Spacing ---- */
    --z-space-1:  4px;
    --z-space-2:  8px;
    --z-space-3:  12px;
    --z-space-4:  16px;
    --z-space-5:  20px;
    --z-space-6:  24px;
    --z-space-8:  32px;
    --z-space-10: 40px;
    --z-space-12: 48px;
    --z-space-16: 64px;
    --z-space-20: 80px;

    /* ---- Radii ---- */
    --z-radius-sm:   6px;
    --z-radius-md:   10px;
    --z-radius-lg:   16px;
    --z-radius-xl:   24px;
    --z-radius-full: 9999px;

    /* ---- Layout ---- */
    --z-container-max: 1280px;
    --z-grid-gutter:   24px;
    --z-section-y:     96px;
    --z-touch-target:  44px;

    /* ---- Motion ---- */
    --z-t-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
    --z-t-normal: 220ms cubic-bezier(0.4, 0, 0.2, 1);
    --z-t-slow:   320ms cubic-bezier(0.4, 0, 0.2, 1);

    /* ---- Focus ---- */
    --z-focus-ring: 0 0 0 3px rgba(8, 145, 178, 0.45);

    /* ---- Heading token (kept for backward compat â€” white/navy) ---- */
    --z-heading-color: var(--z-brand-navy);   /* #0A0E1A */
  }

  [data-theme="dark"] {
    /* ---- Dark surfaces (deep navy-black) ---- */
    --z-bg:            #070B14;
    --z-bg-elevated:   #0F1626;
    --z-bg-subtle:     #161D2E;
    --z-bg-inset:      #0A101C;
    --z-fg:            #F8FAFC;         /* headings + primary text */
    --z-fg-muted:      #94A3B8;         /* body paragraphs */
    --z-fg-subtle:     #64748B;         /* meta text */
    --z-fg-on-accent:  #070B14;
    --z-border:        rgba(248, 250, 252, 0.08);
    --z-border-strong: rgba(248, 250, 252, 0.18);
    --z-border-accent: rgba(34, 211, 238, 0.35);

    /* ---- Accents (bright cyan/blue on dark) ---- */
    --z-accent:          #22D3EE;       /* bright cyan â€” primary */
    --z-accent-hover:    #06B6D4;
    --z-accent-pressed:  #0891B2;
    --z-accent-subtle:   rgba(34, 211, 238, 0.10);
    --z-accent-2:        #3B82F6;       /* blue â€” secondary */
    --z-accent-2-subtle: rgba(59, 130, 246, 0.10);
    --z-accent-3:        #F5B700;       /* signature gold */
    --z-accent-3-subtle: rgba(245, 183, 0, 0.10);

    /* ---- Brand (dark-mode variants) ---- */
    --z-brand-gold:          #F5B700;
    --z-brand-gold-hover:    #FFC72C;
    --z-brand-emerald:       #10B981;
    --z-brand-emerald-hover: #34D399;
    --z-brand-cyan:          #22D3EE;
    --z-brand-blue:          #3B82F6;
    --z-brand-purple:        #B14AED;
    --z-brand-rose:          #F43F5E;

    /* ---- Gradient + glow (dark) ---- */
    --z-gradient-brand:        linear-gradient(135deg, #22D3EE 0%, #3B82F6 100%);
    --z-gradient-brand-soft:   linear-gradient(135deg, rgba(34,211,238,0.15) 0%, rgba(59,130,246,0.15) 100%);
    --z-gradient-text:         linear-gradient(135deg, #22D3EE 0%, #3B82F6 100%);
    --z-glow-cyan:             0 8px 32px rgba(34, 211, 238, 0.25);
    --z-glow-cyan-strong:      0 0 32px rgba(34, 211, 238, 0.45);
    --z-glow-gold:             0 8px 32px rgba(245, 183, 0, 0.25);
    --z-glow-emerald:          0 8px 32px rgba(16, 185, 129, 0.22);

    /* ---- Semantic ---- */
    --z-success: #10B981;
    --z-warning: #F59E0B;
    --z-danger:  #EF4444;
    --z-info:    #38BDF8;

    /* ---- Focus ---- */
    --z-focus-ring: 0 0 0 3px rgba(34, 211, 238, 0.55);

    /* ---- Heading token (white on dark) ---- */
    --z-heading-color: var(--z-brand-gold);   /* #F5B700 */
  }

  /* ---- Shadows (theme-aware) ---- */
  :root {
    --z-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --z-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --z-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
    --z-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.06);
    --z-shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.16), 0 8px 16px rgba(15, 23, 42, 0.08);
  }
  [data-theme="dark"] {
    --z-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.30);
    --z-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.40), 0 1px 2px rgba(0, 0, 0, 0.30);
    --z-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.30);
    --z-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55), 0 4px 8px rgba(0, 0, 0, 0.35);
    --z-shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.60), 0 8px 16px rgba(0, 0, 0, 0.40);
  }



  /* ================================================================
     Reset
     ================================================================ */
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body { margin: 0; }
  img, svg { max-width: 100%; height: auto; display: block; }
  button { font: inherit; }
  a { color: inherit; text-decoration: none; }
  ::selection { background: var(--z-accent); color: var(--z-fg-on-accent); }

  /* ================================================================
     Base
     ================================================================ */
  html, body {
    background: var(--z-bg);
    color: var(--z-fg);
    font-family: var(--z-font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--z-t-normal), color var(--z-t-normal);
  }
  h1, h2, h3, h4 {
    font-family: var(--z-font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 var(--z-space-4);
    color: var(--z-heading-color);
  }
  h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; }
  h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.2; }
  h3 { font-size: 1.25rem; line-height: 1.3; }
  p  { margin: 0 0 var(--z-space-4); }

  /* ================================================================
     Utility â€” gradient text (competitor-style accent word)
     ================================================================ */
  .z-gradient-text {
    background: var(--z-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: inherit;
  }

  /* ================================================================
     Utility â€” neon pill (colored dot + text, competitor style)
     ================================================================ */
  .z-pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--z-radius-full);
    background: var(--z-accent-subtle);
    border: 1px solid var(--z-border-accent);
    color: var(--z-accent);
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
  }
  .z-pill::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    flex: 0 0 auto;
  }

  /* ================================================================
     Utility â€” stat number (big cyan, competitor style)
     ================================================================ */
  .z-stat-number {
    display: block;
    font-family: var(--z-font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1;
    color: var(--z-accent);
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.5rem;
  }

  /* ================================================================
     Container / section
     ================================================================ */
  .z-container {
    max-width: var(--z-container-max);
    margin: 0 auto;
    padding-left: var(--z-space-4);
    padding-right: var(--z-space-4);
  }
  .z-section { padding: var(--z-section-y) 0; }
  .z-muted   { color: var(--z-fg-muted); }

  /* ================================================================
     Skip link
     ================================================================ */
  .z-skip-link {
    position: absolute; left: -9999px; top: 0;
    padding: var(--z-space-3) var(--z-space-4);
    background: var(--z-accent); color: var(--z-fg-on-accent);
    font-weight: 600; z-index: 9999;
    border-radius: 0 0 var(--z-radius-md) 0;
  }
  .z-skip-link:focus { left: 0; top: 0; }

  /* ================================================================
     Focus visibility
     ================================================================ */
  :focus-visible {
    outline: none;
    box-shadow: var(--z-focus-ring);
    border-radius: var(--z-radius-sm);
  }

  /* ================================================================
     NAV
     ================================================================ */
  .z-nav {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--z-bg-elevated) 85%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--z-border);
  }
  .z-nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--z-space-3); min-height: 64px;
  }
  .z-nav-brand {
    display: inline-flex; align-items: center; gap: var(--z-space-3);
    font-family: var(--z-font-heading); font-weight: 700;
    font-size: 0.95rem; letter-spacing: 0.02em;
    color: var(--z-fg);
    flex: 0 0 auto;                      /* ← NEW: brand never shrinks */
  }
  .z-nav-brand img { width: 32px; height: 32px; object-fit: contain; }
  .z-nav-sub {
    display: block;
    font-family: var(--z-font-body);
    font-size: 0.7rem; font-weight: 400;
    color: var(--z-fg-muted);
    letter-spacing: 0.05em; text-transform: uppercase;
  }
  .z-nav-links {
    display: none; align-items: center;
    gap: 2px;                            /* ← was var(--z-space-1) = 4px; tighter */
    font-size: 0.88rem;                  /* ← was 0.9rem; slight shrink */
    flex-wrap: nowrap;                   /* ← NEW: never wrap to 2nd row */
    flex: 1 1 auto;                      /* ← NEW: take available middle space */
    justify-content: center;             /* ← NEW: center between brand + actions */
  }
  .z-nav-links a {
    padding: 0.55rem 0.7rem;             /* ← was 0.85rem; tighter horizontal */
    border-radius: var(--z-radius-md);
    color: var(--z-fg-muted); font-weight: 500;
    white-space: nowrap;                 /* ← CORE FIX: no label wrapping */
    transition: color var(--z-t-fast), background var(--z-t-fast);
  }
  .z-nav-links a:hover { color: var(--z-fg); background: var(--z-bg-subtle); }
  .z-nav-links a[aria-current="page"] {
    color: var(--z-accent);
    background: var(--z-accent-subtle);
  }
  .z-nav-actions {
    display: flex; align-items: center; gap: var(--z-space-2);
    flex: 0 0 auto;                      /* ← NEW: actions never shrink */
  }
  .z-nav-cta { display: none; }

  /* ================================================================
     Region pills (nav-level, compact)
     ================================================================ */
  .z-region {
    display: inline-flex; align-items: center; gap: 2px;
    padding: 3px;
    background: var(--z-bg-subtle);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-full);
    font-size: 0.8rem;
  }
  .z-region a {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    border-radius: var(--z-radius-full);
    color: var(--z-fg-muted); font-weight: 500;
    min-height: 32px;
    transition: color var(--z-t-fast), background var(--z-t-fast);
  }
  .z-region a[aria-current="true"] {
    background: var(--z-accent);
    color: var(--z-fg-on-accent);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
  }
  .z-region-label { display: none; }

  /* ================================================================
     Mobile drawer
     ================================================================ */
  .z-nav-mobile { position: relative; }
  .z-nav-mobile summary {
    list-style: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    width: var(--z-touch-target); height: var(--z-touch-target);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-md);
    color: var(--z-fg);
  }
  .z-nav-mobile summary::-webkit-details-marker { display: none; }
  .z-nav-mobile-panel {
    position: absolute; right: 0; top: calc(100% + 8px);
    min-width: 220px;
    padding: var(--z-space-2);
    background: var(--z-bg-elevated);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-lg);
    box-shadow: var(--z-shadow-lg);
    display: flex; flex-direction: column; gap: 2px;
  }
  .z-nav-mobile-panel a {
    padding: 0.65rem 0.85rem;
    border-radius: var(--z-radius-md);
    color: var(--z-fg); font-weight: 500;
  }
  .z-nav-mobile-panel a:hover { background: var(--z-bg-subtle); }

  /* ================================================================
     Buttons
     ================================================================ */
  .z-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem;
    min-height: var(--z-touch-target);
    padding: 0.75rem 1.25rem;
    border-radius: var(--z-radius-md);
    font-family: var(--z-font-body);
    font-weight: 600; font-size: 0.95rem; line-height: 1;
    cursor: pointer; border: 1px solid transparent;
    transition: background var(--z-t-fast), color var(--z-t-fast),
                border-color var(--z-t-fast), box-shadow var(--z-t-fast),
                transform var(--z-t-fast);
    text-decoration: none;
  }
  .z-btn:active { transform: translateY(1px); }

  .z-btn-primary {
    background: var(--z-gradient-brand);
    color: var(--z-fg-on-accent);
    box-shadow: var(--z-glow-cyan);
    font-weight: 700;
  }
  .z-btn-primary:hover {
    box-shadow: var(--z-glow-cyan-strong);
    filter: brightness(1.05);
  }

  .z-btn-secondary {
    background: transparent;
    color: var(--z-fg);
    border-color: var(--z-border-strong);
  }
  .z-btn-secondary:hover {
    background: var(--z-bg-subtle);
    border-color: var(--z-accent);
    color: var(--z-accent);
  }

  .z-btn-whatsapp {
    background: var(--z-brand-emerald);
    color: #fff;
  }
  .z-btn-whatsapp:hover {
    background: var(--z-brand-emerald-hover);
    box-shadow: var(--z-glow-emerald);
  }

  .z-btn-sm { min-height: 36px; padding: 0.5rem 0.9rem; font-size: 0.85rem; }

  /* ================================================================
     Footer
     ================================================================ */
  .z-footer {
    background: var(--z-bg-subtle);
    border-top: 1px solid var(--z-border);
    padding: var(--z-space-16) 0 var(--z-space-8);
    margin-top: var(--z-section-y);
    color: var(--z-fg-muted);
    font-size: 0.9rem;
  }
  .z-footer-grid { display: grid; gap: var(--z-space-8); grid-template-columns: 1fr; }
  .z-footer h4 {
    font-family: var(--z-font-body);
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--z-fg);
    margin: 0 0 var(--z-space-3);
  }
  .z-footer ul { list-style: none; padding: 0; margin: 0; }
  .z-footer li { margin-bottom: var(--z-space-2); }
  .z-footer a  { color: var(--z-fg-muted); transition: color var(--z-t-fast); }
  .z-footer a:hover { color: var(--z-accent); }
  .z-footer-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: var(--z-space-3); }
  .z-footer-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--z-radius-full);
    background: var(--z-bg-elevated);
    border: 1px solid var(--z-border);
    font-size: 0.72rem; color: var(--z-fg-muted);
  }
  .z-footer-bottom {
    margin-top: var(--z-space-12);
    padding-top: var(--z-space-6);
    border-top: 1px solid var(--z-border);
    display: flex; flex-wrap: wrap;
    gap: var(--z-space-4);
    justify-content: space-between; align-items: center;
    font-size: 0.8rem;
  }
  .z-footer-social { display: inline-flex; gap: var(--z-space-2); }
  .z-footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--z-radius-md);
    border: 1px solid var(--z-border);
    color: var(--z-fg-muted);
    transition: color var(--z-t-fast), border-color var(--z-t-fast), box-shadow var(--z-t-fast);
  }
  .z-footer-social a:hover {
    color: var(--z-accent);
    border-color: var(--z-accent);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.30);
  }

  /* ================================================================
     Sticky mobile CTA
     ================================================================ */
  .z-sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--z-border);
    border-top: 1px solid var(--z-border);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .z-sticky-cta a {
    display: flex; align-items: center; justify-content: center;
    gap: 0.5rem;
    min-height: var(--z-touch-target);
    padding: 0.75rem 1rem;
    background: var(--z-bg-elevated);
    color: var(--z-fg);
    font-weight: 600; font-size: 0.9rem;
  }
  .z-sticky-cta a.z-cta-primary {
    background: var(--z-brand-emerald);
    color: #fff;
  }
  .z-sticky-cta a:hover { filter: brightness(1.05); }

  /* ================================================================
     Region switcher â€” SEGMENT variant
     ================================================================ */
  .z-region-switch {
    position: relative;
    display: flex; align-items: stretch;
    gap: 4px;
    padding: 4px;
    background: var(--z-bg-subtle);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-full);
    width: 100%;
    max-width: 420px;
  }
  .z-region-switch-item {
    flex: 1 1 0;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border-radius: var(--z-radius-full);
    color: var(--z-fg-muted);
    font-family: var(--z-font-body);
    font-size: 0.88rem; font-weight: 600;
    transition: color var(--z-t-normal), background var(--z-t-normal),
                box-shadow var(--z-t-normal);
  }
  .z-region-switch-item:hover { color: var(--z-fg); }
  .z-region-switch-item.is-active {
    color: var(--z-fg-on-accent);
    background: var(--z-gradient-brand);
    box-shadow: var(--z-glow-cyan);
  }
  .z-region-switch-flag { font-size: 1rem; line-height: 1; }
  .z-region-switch-label { display: none; }

  /* ================================================================
     Region switcher â€” CARDS variant
     ================================================================ */
  .z-region-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--z-space-4);
  }
  .z-region-card {
    position: relative;
    display: flex; align-items: center; gap: var(--z-space-4);
    min-height: 88px;
    padding: var(--z-space-4) var(--z-space-6);
    background: var(--z-bg-elevated);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-lg);
    color: var(--z-fg);
    transition: border-color var(--z-t-normal),
                box-shadow var(--z-t-normal),
                transform var(--z-t-normal);
  }
  .z-region-card:hover {
    border-color: var(--z-accent);
    box-shadow: var(--z-glow-cyan);
    transform: translateY(-2px);
  }
  .z-region-card.is-active {
    border-color: var(--z-accent);
    box-shadow: var(--z-glow-cyan-strong);
  }
  .z-region-card.is-active::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    background: var(--z-gradient-brand-soft);
    pointer-events: none;
  }
  .z-region-card-flag { font-size: 2rem; line-height: 1; flex: 0 0 auto; }
  .z-region-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
  .z-region-card-name {
    font-family: var(--z-font-heading);
    font-weight: 700; font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--z-heading-color);
  }
  .z-region-card-meta {
    font-size: 0.8rem; color: var(--z-fg-muted);
    font-variant-numeric: tabular-nums;
  }
  .z-region-card-cities { font-size: 0.78rem; color: var(--z-fg-subtle); }
  .z-region-card-check {
    margin-left: auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    border-radius: var(--z-radius-full);
    background: var(--z-gradient-brand);
    color: var(--z-fg-on-accent);
    flex: 0 0 auto;
    box-shadow: var(--z-glow-cyan);
  }

  /* ================================================================
     Feature card
     ================================================================ */
  .z-feature-card {
    position: relative;
    display: flex; flex-direction: column;
    gap: var(--z-space-3);
    padding: var(--z-space-6);
    background: var(--z-bg-elevated);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-lg);
    min-height: 200px;
    transition: transform var(--z-t-normal),
                box-shadow var(--z-t-normal),
                border-color var(--z-t-normal);
  }
  .z-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--z-glow-cyan), var(--z-shadow-md);
    border-color: var(--z-accent);
  }
  .z-feature-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: var(--z-space-2);
  }
  .z-feature-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    border-radius: var(--z-radius-md);
    font-size: 1.5rem; line-height: 1;
    background: var(--z-accent-subtle);
    border: 1px solid var(--z-border-accent);
    color: var(--z-accent);
  }
  .z-tint-emerald .z-feature-icon {
    background: rgba(16, 185, 129, 0.10);
    border-color: rgba(16, 185, 129, 0.30);
    color: var(--z-brand-emerald);
  }
  .z-tint-purple .z-feature-icon {
    background: rgba(177, 74, 237, 0.10);
    border-color: rgba(177, 74, 237, 0.30);
    color: var(--z-brand-purple);
  }
  .z-tint-cyan .z-feature-icon {
    background: var(--z-accent-subtle);
    border-color: var(--z-border-accent);
    color: var(--z-accent);
  }
  .z-tint-rose .z-feature-icon {
    background: rgba(244, 63, 94, 0.10);
    border-color: rgba(244, 63, 94, 0.30);
    color: var(--z-brand-rose);
  }
  .z-tint-gold .z-feature-icon {
    background: var(--z-accent-3-subtle);
    border-color: rgba(245, 183, 0, 0.30);
    color: var(--z-accent-3);
  }
  .z-feature-title {
    font-family: var(--z-font-heading);
    font-size: 1.05rem; font-weight: 700;
    letter-spacing: -0.01em; margin: 0;
    color: var(--z-heading-color);
  }
  .z-feature-desc {
    font-size: 0.9rem; line-height: 1.55;
    color: var(--z-fg-muted); margin: 0;
    overflow-wrap: anywhere;
  }
  .z-feature-badge {
    display: inline-flex; align-items: center;
    height: 24px; padding: 0 0.6rem;
    border-radius: var(--z-radius-full);
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase;
    border: 1px solid var(--z-border);
    color: var(--z-fg-muted);
    background: var(--z-bg-subtle);
  }
  .z-badge-professional {
    border-color: rgba(34, 211, 238, 0.40);
    color: var(--z-accent);
    background: var(--z-accent-subtle);
  }
  .z-badge-enterprise {
    border-color: rgba(16, 185, 129, 0.40);
    color: var(--z-brand-emerald);
    background: rgba(16, 185, 129, 0.10);
  }
  .z-badge-on_request {
    border-color: rgba(245, 183, 0, 0.40);
    color: var(--z-accent-3);
    background: var(--z-accent-3-subtle);
  }

  /* ================================================================
     Industry card
     ================================================================ */
  .z-industry-card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--z-bg-elevated);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-lg);
    overflow: hidden;
    min-height: 280px;
    transition: transform var(--z-t-normal),
                box-shadow var(--z-t-normal),
                border-color var(--z-t-normal);
  }
  .z-industry-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--z-glow-cyan), var(--z-shadow-lg);
    border-color: var(--z-accent);
  }
  .z-industry-stripe {
    height: 6px;
    background: var(--z-industry-accent, var(--z-accent));
    box-shadow: 0 0 16px var(--z-industry-accent, var(--z-accent));
    flex: 0 0 auto;
  }
  .z-industry-body {
    display: flex; flex-direction: column;
    gap: var(--z-space-3);
    padding: var(--z-space-6);
    flex: 1 1 auto;
  }
  .z-industry-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px;
    border-radius: var(--z-radius-md);
    font-size: 1.75rem; line-height: 1;
    background: var(--z-bg-subtle);
    border: 1px solid var(--z-border);
    margin-top: -2rem;
    box-shadow: 0 0 0 4px var(--z-bg-elevated);
  }
  .z-industry-title {
    font-family: var(--z-font-heading);
    font-size: 1.25rem; font-weight: 700;
    letter-spacing: -0.015em; margin: 0;
    color: var(--z-heading-color);
  }
  .z-industry-sub {
    font-size: 0.9rem; line-height: 1.55;
    color: var(--z-fg-muted); margin: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
  }
  .z-industry-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    min-height: 44px; padding: 0.5rem 0;
    font-size: 0.9rem; font-weight: 600;
    color: var(--z-accent);
    text-decoration: none;
    transition: gap var(--z-t-fast), color var(--z-t-fast);
  }
  .z-industry-link:hover {
    gap: 0.75rem;
    color: var(--z-accent-hover);
  }

  /* ================================================================
     Card grids
     ================================================================ */
  .z-feature-grid  { display: grid; grid-template-columns: 1fr; gap: var(--z-space-4); }
  .z-industry-grid { display: grid; grid-template-columns: 1fr; gap: var(--z-space-4); }
  .z-region-grid   { display: grid; grid-template-columns: 1fr; gap: var(--z-space-4); }

  /* ================================================================
     [data-reveal] â€” kept for Day-5 JS activation
     ================================================================ */
  [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--z-t-slow), transform var(--z-t-slow);
  }
  [data-reveal].is-revealed { opacity: 1; transform: none; }

  /* ================================================================
     Section head (pill + heading + sub, centered)
     ================================================================ */
  .z-section-head {
    max-width: 760px;
    margin: 0 auto var(--z-space-12);
    text-align: center;
  }
  .z-section-head .z-pill { margin-bottom: var(--z-space-4); }
  .z-section-head h2 {
    margin-bottom: var(--z-space-3);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  }
  .z-section-sub {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--z-fg-muted);
    margin: 0;
  }

  /* ================================================================
     Hero
     ================================================================ */
  .z-hero {
    position: relative;
    padding: var(--z-space-12) 0 var(--z-space-16);
    overflow: hidden;
  }
  .z-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }
  .z-hero-bg::before {
    content: "";
    position: absolute;
    top: -200px; right: -200px;
    width: 640px; height: 640px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18) 0%, transparent 65%);
    filter: blur(80px);
  }
  .z-hero-bg::after {
    content: "";
    position: absolute;
    bottom: -200px; left: -200px;
    width: 640px; height: 640px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, transparent 65%);
    filter: blur(80px);
  }
  [data-theme="light"] .z-hero-bg::before {
    background: radial-gradient(circle, rgba(8, 145, 178, 0.14) 0%, transparent 65%);
  }
  [data-theme="light"] .z-hero-bg::after {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.10) 0%, transparent 65%);
  }

  .z-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--z-space-12);
    align-items: center;
  }

  .z-hero-copy { display: flex; flex-direction: column; gap: var(--z-space-4); }
  .z-hero-pill { align-self: flex-start; }

  .z-hero-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--z-heading-color);
    max-width: 20ch;
  }
  .z-hero-sub {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--z-fg-muted);
    margin: 0;
    max-width: 52ch;
  }

  .z-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--z-space-3);
    margin-top: var(--z-space-2);
  }

  .z-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--z-space-3) var(--z-space-5);
    margin-top: var(--z-space-4);
    padding-top: var(--z-space-4);
    border-top: 1px solid var(--z-border);
  }
  .z-hero-trust-item {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--z-fg-muted);
  }
  .z-hero-trust-item svg { color: var(--z-accent); flex: 0 0 auto; }

  /* ---- Phone mockup ---- */
  .z-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
  }
  .z-hero-phone {
    position: relative;
    width: 240px;
    height: 480px;
    background: var(--z-bg-elevated);
    border: 8px solid var(--z-bg-subtle);
    border-radius: 36px;
    box-shadow:
      0 32px 72px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(255, 255, 255, 0.05),
      0 0 60px rgba(34, 211, 238, 0.15);
    overflow: hidden;
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform var(--z-t-slow);
  }
  [data-theme="light"] .z-hero-phone {
    box-shadow:
      0 32px 72px rgba(15, 23, 42, 0.16),
      0 0 0 1px rgba(15, 23, 42, 0.04),
      0 0 60px rgba(8, 145, 178, 0.12);
  }
  .z-hero-phone:hover { transform: rotateY(0deg) rotateX(0deg); }
  .z-hero-phone-notch {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 90px; height: 22px;
    background: var(--z-bg);
    border-radius: 0 0 14px 14px;
    z-index: 10;
  }
  .z-hero-phone-screen {
    height: 100%;
    padding: 32px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(180deg, var(--z-bg-elevated) 0%, var(--z-bg) 100%);
  }
  .z-hero-phone-head {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700;
    color: var(--z-fg);
    letter-spacing: 0.02em;
  }
  .z-hero-phone-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--z-accent);
    box-shadow: 0 0 8px var(--z-accent);
  }
  .z-hero-phone-title { color: var(--z-fg); }

  .z-hero-phone-search {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 10px;
    background: var(--z-accent-subtle);
    border: 1px solid var(--z-border-accent);
    border-radius: 8px;
    font-size: 10px;
    color: var(--z-accent);
    font-weight: 500;
  }

  .z-hero-phone-chips {
    display: flex; gap: 6px;
  }
  .z-hero-phone-chip {
    font-size: 9px;
    padding: 4px 8px;
    border-radius: var(--z-radius-full);
    background: var(--z-bg-subtle);
    border: 1px solid var(--z-border);
    color: var(--z-fg-subtle);
    font-weight: 600;
  }
  .z-hero-phone-chip.is-active {
    background: var(--z-gradient-brand);
    color: var(--z-fg-on-accent);
    border-color: transparent;
  }

  .z-hero-phone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 1 1 auto;
  }
  .z-hero-phone-tile {
    background: var(--z-bg-subtle);
    border: 1px solid var(--z-border);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .z-hero-phone-tile-img {
    aspect-ratio: 1 / 1;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--z-accent-subtle), var(--z-accent-2-subtle));
  }
  .z-hero-phone-tile-line {
    height: 5px;
    background: var(--z-border-strong);
    border-radius: 3px;
  }
  .z-hero-phone-tile-line.short { width: 55%; }

  .z-hero-phone-cta {
    display: flex; align-items: center; justify-content: center;
    gap: 5px;
    padding: 10px;
    background: var(--z-gradient-brand);
    color: var(--z-fg-on-accent);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: var(--z-glow-cyan);
  }

  /* ================================================================
     Stats bar
     ================================================================ */
  .z-stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--z-space-6) var(--z-space-4);
    padding: var(--z-space-8) var(--z-space-6);
    background: var(--z-bg-elevated);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-xl);
    box-shadow: var(--z-shadow-md);
    position: relative;
    overflow: hidden;
  }
  .z-stats-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--z-gradient-brand-soft);
    opacity: 0.35;
    pointer-events: none;
  }
  .z-stats-item { text-align: center; position: relative; z-index: 1; }
  .z-stats-item .z-stat-number {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--z-accent);
    text-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
  }
  [data-theme="light"] .z-stats-item .z-stat-number {
    text-shadow: none;
  }
  .z-stats-label {
    display: block;
    font-size: 0.8rem;
    color: var(--z-fg-muted);
    letter-spacing: 0.02em;
    margin-top: 4px;
  }

  /* ================================================================
     Final CTA block
     ================================================================ */
  .z-cta-block {
    position: relative;
    text-align: center;
    padding: var(--z-space-16) var(--z-space-6);
    background: var(--z-bg-elevated);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-xl);
    overflow: hidden;
    max-width: 840px;
    margin: 0 auto;
  }
  .z-cta-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--z-gradient-brand-soft);
    pointer-events: none;
  }
  .z-cta-block > * { position: relative; z-index: 1; }
  .z-cta-block h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: var(--z-space-3);
    color: var(--z-heading-color);
  }
  .z-cta-block p {
    color: var(--z-fg-muted);
    max-width: 52ch;
    margin: 0 auto var(--z-space-6);
    font-size: 1.05rem;
  }
  .z-cta-block-actions {
    display: flex; flex-wrap: wrap; gap: var(--z-space-3);
    justify-content: center;
  }

  /* ================================================================
     Section tight (reduced vertical padding, for stats + marquee)
     ================================================================ */
  .z-section-tight { padding: var(--z-space-8) 0 var(--z-space-12); }
  .z-section.is-alt {
    background: var(--z-bg-elevated);
    border-top: 1px solid var(--z-border);
    border-bottom: 1px solid var(--z-border);
  }

  /* ================================================================
     Marquee â€” infinite horizontal scroll
     ================================================================ */
  .z-marquee {
    position: relative;
    overflow: hidden;
    padding: var(--z-space-6) 0;
    border-top: 1px solid var(--z-border);
    border-bottom: 1px solid var(--z-border);
    background: var(--z-bg-elevated);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  }
  .z-marquee-track {
    display: flex;
    gap: var(--z-space-4);
    width: max-content;
    animation: z-marquee-scroll 42s linear infinite;
  }
  .z-marquee:hover .z-marquee-track { animation-play-state: paused; }
  .z-marquee-item {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    background: var(--z-bg-subtle);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--z-fg-muted);
    white-space: nowrap;
    flex: 0 0 auto;
    transition: color var(--z-t-fast), border-color var(--z-t-fast);
  }
  .z-marquee-item:hover {
    color: var(--z-accent);
    border-color: var(--z-accent);
  }
  .z-marquee-icon { font-size: 1rem; line-height: 1; }
  .z-marquee-label { letter-spacing: 0.01em; }

  @keyframes z-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  @media (prefers-reduced-motion: reduce) {
    .z-marquee-track { animation: none; }
  }

  /* ================================================================
     How it works â€” numbered steps
     ================================================================ */
  .z-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--z-space-6);
  }
  .z-step {
    position: relative;
    padding: var(--z-space-6);
    background: var(--z-bg-elevated);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-lg);
    display: flex;
    flex-direction: column;
    gap: var(--z-space-3);
    transition: border-color var(--z-t-normal), box-shadow var(--z-t-normal);
  }
  .z-step:hover {
    border-color: var(--z-accent);
    box-shadow: var(--z-glow-cyan);
  }
  .z-step-num {
    position: absolute;
    top: var(--z-space-4); right: var(--z-space-4);
    font-family: var(--z-font-mono, monospace);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--z-accent);
    opacity: 0.6;
  }
  .z-step-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    border-radius: var(--z-radius-md);
    background: var(--z-accent-subtle);
    border: 1px solid var(--z-border-accent);
    font-size: 1.5rem;
    color: var(--z-accent);
  }
  .z-step-title {
    font-family: var(--z-font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--z-heading-color);
  }
  .z-step-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--z-fg-muted);
    margin: 0;
  }

  /* ================================================================
     Demo grid + cards
     ================================================================ */
  .z-demo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--z-space-4);
  }
  .z-demo-card {
    display: flex;
    flex-direction: column;
    gap: var(--z-space-3);
    padding: var(--z-space-6);
    background: var(--z-bg);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-lg);
    transition: transform var(--z-t-normal), border-color var(--z-t-normal), box-shadow var(--z-t-normal);
  }
  .z-demo-card:hover {
    transform: translateY(-3px);
    border-color: var(--z-accent);
    box-shadow: var(--z-glow-cyan);
  }
  .z-demo-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--z-space-2);
  }
  .z-demo-flag { font-size: 1.5rem; line-height: 1; }
  .z-demo-badge {
    display: inline-flex; align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: var(--z-radius-full);
    background: var(--z-accent-subtle);
    border: 1px solid var(--z-border-accent);
    color: var(--z-accent);
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
  }
  .z-demo-name {
    font-family: var(--z-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--z-heading-color);
  }
  .z-demo-highlight {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--z-fg-muted);
    margin: 0;
    flex: 1 1 auto;
  }
  .z-demo-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    min-height: 44px;
    padding: 0.5rem 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--z-accent);
    transition: gap var(--z-t-fast);
  }
  .z-demo-link:hover { gap: 0.75rem; }

  /* ================================================================
     Pricing preview (compact)
     ================================================================ */
  .z-pricing {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--z-space-4);
  }
  .z-pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--z-space-4);
    padding: var(--z-space-8) var(--z-space-6);
    background: var(--z-bg-elevated);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-lg);
    transition: transform var(--z-t-normal), box-shadow var(--z-t-normal), border-color var(--z-t-normal);
  }
  .z-pricing-card:hover {
    transform: translateY(-3px);
    border-color: var(--z-accent);
    box-shadow: var(--z-glow-cyan);
  }
  .z-pricing-card.is-featured {
    border-color: var(--z-accent);
    box-shadow: var(--z-glow-cyan);
  }
  .z-pricing-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 0.9rem;
    background: var(--z-gradient-brand);
    color: var(--z-fg-on-accent);
    border-radius: var(--z-radius-full);
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    white-space: nowrap;
    box-shadow: var(--z-glow-cyan);
  }
  .z-pricing-head { display: flex; flex-direction: column; gap: 0.4rem; align-items: center; text-align: center; }
  .z-pricing-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    border-radius: var(--z-radius-md);
    background: var(--z-accent-subtle);
    border: 1px solid var(--z-border-accent);
    font-size: 1.4rem;
    color: var(--z-accent);
  }
  .z-pricing-tier {
    font-family: var(--z-font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
    color: var(--z-heading-color);
  }
  .z-pricing-tagline {
    font-size: 0.85rem;
    color: var(--z-fg-muted);
    margin: 0;
  }
  .z-pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    font-family: var(--z-font-heading);
  }
  .z-pricing-currency { font-size: 1rem; font-weight: 600; color: var(--z-fg-muted); }
  .z-pricing-amount { font-size: 2.5rem; font-weight: 700; color: var(--z-heading-color); line-height: 1; }
  .z-pricing-period { font-size: 0.85rem; color: var(--z-fg-muted); }
  .z-pricing-setup {
    text-align: center;
    font-size: 0.78rem;
    color: var(--z-fg-subtle);
  }
  .z-pricing-features {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--z-fg-muted);
    border-top: 1px solid var(--z-border);
    padding-top: var(--z-space-4);
  }
  .z-pricing-features li {
    display: flex; align-items: flex-start; gap: 0.5rem;
  }
  .z-pricing-features li::before {
    content: "âœ“";
    color: var(--z-accent);
    font-weight: 700;
    flex: 0 0 auto;
  }
  .z-pricing-cta { margin-top: auto; }
  .z-pricing-cta .z-btn { width: 100%; }

  /* ================================================================
     Testimonials
     ================================================================ */
  .z-testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--z-space-4);
  }
  .z-testimonial-card {
    display: flex;
    flex-direction: column;
    gap: var(--z-space-4);
    padding: var(--z-space-8);
    background: var(--z-bg);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-lg);
    position: relative;
    transition: transform var(--z-t-normal), border-color var(--z-t-normal), box-shadow var(--z-t-normal);
  }
  .z-testimonial-card:hover {
    transform: translateY(-2px);
    border-color: var(--z-accent);
    box-shadow: var(--z-glow-cyan);
  }
  .z-testimonial-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--z-accent);
  }
  .z-testimonial-quote {
    font-family: var(--z-font-heading);
    font-size: 1.05rem;
    line-height: 1.55;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--z-fg);
    margin: 0;
    flex: 1 1 auto;
  }
  .z-testimonial-author {
    display: flex; align-items: center; gap: var(--z-space-3);
    padding-top: var(--z-space-4);
    border-top: 1px solid var(--z-border);
  }
  .z-testimonial-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: var(--z-radius-full);
    background: var(--z-gradient-brand);
    color: var(--z-fg-on-accent);
    font-family: var(--z-font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    flex: 0 0 auto;
    box-shadow: var(--z-glow-cyan);
  }
  .z-testimonial-author-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .z-testimonial-author-name {
    font-size: 0.95rem; font-weight: 600;
    color: var(--z-fg);
  }
  .z-testimonial-author-meta {
    font-size: 0.8rem;
    color: var(--z-fg-muted);
  }
  .z-testimonial-author-region {
    display: inline-flex; align-self: flex-start;
    padding: 0.15rem 0.5rem;
    border-radius: var(--z-radius-full);
    background: var(--z-accent-subtle);
    color: var(--z-accent);
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    margin-top: 2px;
  }

  /* ================================================================
     FAQ accordion
     ================================================================ */
  .z-faq-wrap { max-width: 840px; margin: 0 auto; }
  .z-faq {
    display: flex;
    flex-direction: column;
    gap: var(--z-space-3);
  }
  .z-faq-item {
    background: var(--z-bg-elevated);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-lg);
    transition: border-color var(--z-t-fast);
    overflow: hidden;
  }
  .z-faq-item[open] {
    border-color: var(--z-accent);
    box-shadow: var(--z-glow-cyan);
  }
  .z-faq-q {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--z-space-4);
    min-height: 60px;
    padding: var(--z-space-4) var(--z-space-6);
    cursor: pointer;
    list-style: none;
    font-family: var(--z-font-heading);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--z-heading-color);
    transition: background var(--z-t-fast);
  }
  .z-faq-q::-webkit-details-marker { display: none; }
  .z-faq-q::marker { content: ""; }
  .z-faq-q:hover { background: var(--z-bg-subtle); }
  .z-faq-q:focus-visible {
    outline: none;
    box-shadow: var(--z-focus-ring);
    border-radius: var(--z-radius-lg);
  }
  .z-faq-q-label { flex: 1 1 auto; }
  .z-faq-q-chevron {
    flex: 0 0 auto;
    color: var(--z-accent);
    transition: transform var(--z-t-normal);
  }
  .z-faq-item[open] .z-faq-q-chevron { transform: rotate(180deg); }
  .z-faq-a {
    padding: 0 var(--z-space-6) var(--z-space-5);
    color: var(--z-fg-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }
  .z-faq-a p { margin: 0; }

  /* ================================================================
     Scroll reveal (activated by inline JS in base.html)
     ================================================================ */
  [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }
  [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }
  @media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
  }

  /* ================================================================
     Breakpoint overrides
     ================================================================ */
  @media (min-width: 640px) {
    .z-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .z-region-label { display: inline; }
    .z-region-switch-label { display: inline; }
    .z-region-switch { max-width: none; width: auto; display: inline-flex; }
    .z-region-switch-item { flex: 0 0 auto; padding: 0.6rem 1.1rem; }
    .z-region-cards { grid-template-columns: 1fr 1fr; }
    .z-feature-grid  { grid-template-columns: repeat(2, 1fr); }
    .z-industry-grid { grid-template-columns: repeat(2, 1fr); }
    .z-region-grid   { grid-template-columns: repeat(2, 1fr); }
    .z-stats-bar     { grid-template-columns: repeat(4, 1fr); padding: var(--z-space-10) var(--z-space-8); }
    .z-hero-phone    { width: 260px; height: 520px; }
    .z-steps          { grid-template-columns: repeat(3, 1fr); }
    .z-demo-grid      { grid-template-columns: repeat(2, 1fr); }
    .z-pricing        { grid-template-columns: repeat(3, 1fr); }
    .z-testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (min-width: 768px) {
    .z-sticky-cta { display: none; }
  }
  @media (min-width: 1024px) {
    .z-nav-links { display: flex; }
    .z-nav-mobile { display: none; }
    .z-nav-cta   { display: inline-flex; }
    .z-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; }
    .z-region-cards { grid-template-columns: repeat(3, 1fr); }
    .z-feature-grid  { grid-template-columns: repeat(3, 1fr); }
    .z-industry-grid { grid-template-columns: repeat(3, 1fr); }
    .z-region-grid   { grid-template-columns: repeat(3, 1fr); }
    .z-hero          { padding: var(--z-space-16) 0 var(--z-space-20); }
    .z-hero-inner    { grid-template-columns: 1.15fr 0.85fr; gap: var(--z-space-16); }
    .z-hero-phone    { width: 280px; height: 560px; }
    .z-demo-grid        { grid-template-columns: repeat(3, 1fr); }
    .z-testimonial-grid { grid-template-columns: repeat(3, 1fr); }
  }
  @media (min-width: 1280px) {
    .z-feature-grid { grid-template-columns: repeat(4, 1fr); }
  }

  /* ================================================================
     Body padding â€” sticky mobile CTA
     ================================================================ */
  @media (max-width: 767px) {
    body { padding-bottom: calc(var(--z-touch-target) + 0.5rem); }
  }

  /* ================================================================
     Reduced motion
     ================================================================ */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
  }

    @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
  }

  /* ================================================================
     Filter tabs — blog category / case studies industry
     ================================================================ */
  .z-filter-tab {
    display: inline-block;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--z-radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid var(--z-border);
    background: var(--z-bg-elevated);
    color: var(--z-fg-muted);
    transition: border-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
                background 150ms cubic-bezier(0.4, 0, 0.2, 1),
                color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .z-filter-tab:hover {
    border-color: var(--z-accent);
    color: var(--z-fg);
  }
  .z-filter-tab.is-active {
    border-color: var(--z-accent);
    background: var(--z-accent);
    color: var(--z-fg-on-accent);
  }

  /* ================================================================
     Wholesaler Portal — badge + feature grid (pricing page, MBS v4.0 §1.5)
     ================================================================ */
  .z-portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: var(--z-space-2);
    padding: 0.3rem 0.7rem;
    border-radius: var(--z-radius-full);
    background: var(--z-accent-subtle);
    border: 1px solid var(--z-border-accent);
    color: var(--z-accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
  }
  .z-portal-badge svg {
    flex: 0 0 auto;
    stroke: currentColor;
  }

  .z-portal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--z-space-4);
  }
  .z-portal-card {
    display: flex;
    flex-direction: column;
    gap: var(--z-space-2);
    padding: var(--z-space-5);
    background: var(--z-bg-elevated);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-lg);
    transition: transform var(--z-t-normal),
                box-shadow var(--z-t-normal),
                border-color var(--z-t-normal);
  }
  .z-portal-card:hover {
    transform: translateY(-2px);
    border-color: var(--z-accent);
    box-shadow: var(--z-glow-cyan), var(--z-shadow-md);
  }
  .z-portal-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--z-radius-md);
    font-size: 1.25rem;
    line-height: 1;
    background: var(--z-accent-subtle);
    border: 1px solid var(--z-border-accent);
  }
  .z-portal-card-label {
    font-family: var(--z-font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--z-heading-color);
    letter-spacing: -0.01em;
  }
  .z-portal-card-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--z-fg-muted);
    margin: 0;
    overflow-wrap: anywhere;
  }

  @media (min-width: 640px) {
    .z-portal-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (min-width: 1024px) {
    .z-portal-grid { grid-template-columns: repeat(3, 1fr); }
  }

  /* ================================================================
     RESPONSIVE HARDENING (L2-WEBSITE) — mobile + narrow desktop
     ================================================================ */

  /* Guard: any element wider than the viewport is clipped, not scrolled.
     Prevents "content cut off on right" bugs across all devices. */
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Long words / URLs / emails never break the layout */
  body {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* ---- Narrow desktop (1024–1199px): compress nav so 9 items fit ---- */
  @media (min-width: 1024px) and (max-width: 1199px) {
    .z-nav-links a {
      padding: 0.5rem 0.55rem;
      font-size: 0.8rem;
    }
    .z-nav-links { gap: 1px; }
    .z-region a { padding: 0.3rem 0.55rem; }
    .z-region-label { display: none; }  /* flag-only on tight desktop */
  }

  /* ---- Tablet + mobile (<= 1023px): tighten overall spacing ---- */
  @media (max-width: 1023px) {
    .z-nav-inner {
      min-height: 60px;
      gap: var(--z-space-3);
    }
    .z-nav-brand { font-size: 0.9rem; }
    .z-nav-brand img { width: 28px; height: 28px; }
    .z-nav-sub { font-size: 0.65rem; }

    /* ---- FIX: hamburger visibility + CTA hiding on mobile ---- */
    .z-nav-cta    { display: none !important; }
    .z-region     { display: none !important; }
    .z-nav-mobile { display: inline-flex !important; }

    .z-nav-actions {
      flex: 0 0 auto;
      gap: var(--z-space-2);
    }

    /* Brand text truncates gracefully if viewport is narrow */
    .z-nav-brand {
      flex: 1 1 auto;
      min-width: 0;
      overflow: hidden;
    }
    .z-nav-brand > span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  @media (max-width: 480px) {
    .z-nav-brand { font-size: 0.82rem; }
    .z-nav-sub   { display: none; }  /* drop "TRADE CATALOG OS" on tiny screens */
    .z-nav-brand img { width: 24px; height: 24px; }
  }

  /* ---- Mobile (<= 639px): single column everywhere + tighter spacing ---- */
  @media (max-width: 639px) {
    /* Container: slightly tighter padding */
    .z-container {
      padding-left: 20px;
      padding-right: 20px;
    }

    /* Every grid class floors at single-column */
    .z-portal-grid,
    .z-feature-grid,
    .z-industry-grid,
    .z-region-grid,
    .z-demo-grid,
    .z-pricing,
    .z-testimonial-grid,
    .z-steps,
    .z-region-cards {
      grid-template-columns: 1fr !important;
    }

    /* Any inline grid using minmax(2xx px, 1fr) → single column */
    [style*="minmax(2"],
    [style*="minmax(3"] {
      grid-template-columns: 1fr !important;
    }

    /* Section + hero padding: tighter on mobile */
    .z-hero {
      padding: var(--z-space-8) 0 var(--z-space-10);
    }
    .z-section {
      padding: var(--z-space-12) 0;
    }
    .z-section-tight {
      padding: var(--z-space-6) 0 var(--z-space-8);
    }
    .z-section-head {
      margin-bottom: var(--z-space-8);
    }

    /* Hero + section titles: smaller minimum so they wrap nicely */
    .z-hero-title {
      font-size: clamp(1.6rem, 7vw, 2.25rem);
      max-width: 100%;
    }
    .z-section-head h2 {
      font-size: clamp(1.4rem, 6vw, 1.9rem);
    }
    .z-hero-sub,
    .z-section-sub {
      font-size: 0.98rem;
    }

    /* Nav: hide region pills on mobile — mobile menu handles region */
    .z-region {
      display: none;
    }

    /* Tighter brand text so it doesn't crowd the hamburger */
    .z-nav-brand { font-size: 0.85rem; }
    .z-nav-sub { display: none; }  /* hide "TRADE CATALOG OS" subtext */

    /* CTA block: tighter padding */
    .z-cta-block {
      padding: var(--z-space-10) var(--z-space-5);
    }
    .z-cta-block-actions {
      flex-direction: column;
      align-items: stretch;
    }
    .z-cta-block-actions .z-btn {
      width: 100%;
    }

    /* Portal card + feature card: tighter padding */
    .z-portal-card,
    .z-feature-card,
    .z-industry-card,
    .z-demo-card,
    .z-pricing-card,
    .z-testimonial-card {
      padding: var(--z-space-5);
    }

    /* Tables: allow horizontal scroll on the table itself, not the page */
    .z-container > table,
    .z-container table[style*="min-width"] {
      display: block;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    /* Footer: extra bottom padding so sticky CTA doesn't overlap */
    .z-footer {
      padding-bottom: calc(var(--z-touch-target) + var(--z-space-8));
    }
  }

  /* ---- Very small phones (<= 380px) ---- */
  @media (max-width: 380px) {
    .z-container {
      padding-left: 16px;
      padding-right: 16px;
    }
    .z-hero-title {
      font-size: clamp(1.5rem, 8vw, 2rem);
    }
    .z-nav-brand img { width: 24px; height: 24px; }
    .z-nav-brand { font-size: 0.78rem; }
  }

  /* ================================================================
     Contact form (z-form / z-form-row)
     ================================================================ */
  .z-form {
    display: flex;
    flex-direction: column;
    gap: var(--z-space-4);
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
  .z-form-row {
    display: flex;
    flex-direction: column;
    gap: var(--z-space-2);
  }
  .z-form-row > label,
  .z-form-row > .z-form-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--z-fg);
    letter-spacing: 0.01em;
    margin: 0;
    font-family: var(--z-font-body);
  }
  .z-form-row > label .z-req,
  .z-form-row > .z-form-label .z-req {
    color: var(--z-danger);
    margin-left: 2px;
  }
  .z-form-row > input,
  .z-form-row > select,
  .z-form-row > textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-md);
    background: var(--z-bg-elevated);
    color: var(--z-fg);
    font-size: 0.95rem;
    font-family: var(--z-font-body);
    line-height: 1.4;
    transition: border-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
  }
  .z-form-row > input:focus,
  .z-form-row > select:focus,
  .z-form-row > textarea:focus {
    outline: none;
    border-color: var(--z-accent);
    box-shadow: var(--z-focus-ring);
  }
  .z-form-row > textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.55;
    font-family: var(--z-font-body);
  }
  .z-form-row > select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
  }
  .z-form-row > input::placeholder,
  .z-form-row > textarea::placeholder {
    color: var(--z-fg-subtle);
    opacity: 1;
  }
  .z-form > button,
  .z-form > .z-btn,
  .z-form-row + button,
  .z-form-row + .z-btn {
    align-self: flex-start;
    min-width: 180px;
    margin-top: var(--z-space-2);
  }
  /* Bare submit button fallback if not wrapped in .z-btn */
  .z-form > button[type="submit"] {
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--z-radius-md);
    background: var(--z-gradient-brand);
    color: var(--z-fg-on-accent);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: box-shadow 150ms, filter 150ms;
    box-shadow: var(--z-glow-cyan);
  }
  .z-form > button[type="submit"]:hover {
    filter: brightness(1.05);
    box-shadow: var(--z-glow-cyan-strong);
  }

  /* Mobile: form fields and button stretch full width */
  @media (max-width: 639px) {
    .z-form {
      max-width: 100%;
      gap: var(--z-space-3);
    }
    .z-form > button,
    .z-form > .z-btn,
    .z-form-row + button,
    .z-form-row + .z-btn {
      align-self: stretch;
      width: 100%;
    }
    .z-form-row > input,
    .z-form-row > select,
    .z-form-row > textarea {
      font-size: 16px; /* prevents iOS zoom-on-focus */
      padding: 12px 12px;
    }
  }

  /* ================================================================
   Prose — legal pages + blog post body
   Added: L2-WEBSITE-CHAT2 (was referenced by blog_post.html but never defined)
   ================================================================ */
.z-prose {
  color: var(--z-fg);
  font-size: 1rem;
  line-height: 1.75;
}
.z-prose h2 {
  font-family: var(--z-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: var(--z-space-8) 0 var(--z-space-3);
  color: var(--z-heading-color);
}
.z-prose h3 {
  font-family: var(--z-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin: var(--z-space-6) 0 var(--z-space-2);
  color: var(--z-heading-color);
}
.z-prose h2:first-child,
.z-prose h3:first-child { margin-top: 0; }
.z-prose p {
  margin: 0 0 var(--z-space-4);
  color: var(--z-fg-muted);
}
.z-prose ul,
.z-prose ol {
  margin: 0 0 var(--z-space-4);
  padding-left: 1.5rem;
  color: var(--z-fg-muted);
}
.z-prose li { margin-bottom: var(--z-space-2); }
.z-prose a {
  color: var(--z-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.z-prose a:hover { color: var(--z-accent-hover); }
.z-prose strong { color: var(--z-fg); font-weight: 600; }
.z-prose code {
  font-family: var(--z-font-mono, monospace);
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--z-bg-subtle);
  border-radius: var(--z-radius-sm);
}
