/* LegalStack Design System — extracted for performance */
    /* ═══════════════════════════════════════════════════
       2026 DESIGN SYSTEM — LEGALSTACK
       AI-native. Beautiful first. The future, not the courthouse.
    ═══════════════════════════════════════════════════ */

    /* RESET */
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    /* ── DESIGN TOKENS ── */
    :root {
      /* Brand — rich indigo */
      --brand:          #4f46e5;
      --brand-hover:    #4338ca;
      --brand-dark:     #3730a3;
      --brand-mid:      #6366f1;
      --brand-light:    #eef2ff;
      --brand-border:   #c7d2fe;

      /* Neutral surface */
      --bg:             #ffffff;
      --bg-subtle:      #f9fafb;
      --bg-muted:       #f3f4f6;

      /* Text */
      --ink:            #0f172a;
      --body:           #374151;
      --muted:          #6b7280;
      --placeholder:    #9ca3af;

      /* Borders */
      --border:         #e5e7eb;
      --border-light:   #f3f4f6;
      --border-focus:   #a5b4fc;

      /* Navy — dark hero backgrounds & headings */
      --navy:           #1a1e2e;
      --navy-mid:       #252a40;
      --navy-light:     #eceff9;

      /* Accents */
      --gold:           #d97706;
      --gold-light:     #fef3c7;
      --emerald:        #10b981;
      --emerald-light:  #d1fae5;
      --rose:           #f43f5e;

      /* Shadows */
      --shadow-xs:      0 1px 2px rgba(0,0,0,0.05);
      --shadow-sm:      0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
      --shadow:         0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
      --shadow-md:      0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
      --shadow-lg:      0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
      --shadow-brand:   0 4px 14px rgba(79, 70, 229, 0.25);

      /* Radius */
      --r-sm:           6px;
      --r:              10px;
      --r-md:           12px;
      --r-lg:           16px;
      --r-xl:           20px;
      --r-full:         9999px;

      /* Nav */
      --nav-h:          64px;
      --nav-bg:         rgba(255,255,255,0.95);

      /* Transitions */
      --t:              0.15s ease;
      --t-slow:         0.25s ease;
    }

    /* ── BASE ── */
    html { scroll-behavior: smooth; }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: var(--bg);
      color: var(--body);
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }

    /* ── LAYOUT CONTAINERS ── */
    .container,
    .page-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
    }

    /* ═══════════════════════════════════════════════════
       NAVIGATION
    ═══════════════════════════════════════════════════ */
    .site-nav {
      position: sticky;
      top: 0;
      z-index: 200;
      height: var(--nav-h);
      background: var(--nav-bg);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      box-shadow: var(--shadow-xs);
    }

    .nav-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
      height: 100%;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .nav-logo {
      font-family: 'Merriweather', Georgia, serif;
      font-size: 1.05rem;
      font-weight: 900;
      color: var(--ink);
      letter-spacing: -0.02em;
      margin-right: 24px;
      white-space: nowrap;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .nav-logo-mark {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      background: var(--brand);
      border-radius: 7px;
      color: #fff;
      font-size: 0.7rem;
      font-weight: 800;
      font-family: 'Inter', sans-serif;
      letter-spacing: 0;
      flex-shrink: 0;
    }
    .nav-logo-text { color: var(--ink); }
    .nav-logo-text span { color: var(--brand); }

    .nav-links {
      display: flex;
      align-items: center;
      list-style: none;
      gap: 2px;
      flex: 1;
    }

    .nav-item { position: relative; }

    .nav-link {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 7px 11px;
      border-radius: var(--r-sm);
      font-size: 0.855rem;
      font-weight: 500;
      color: var(--muted);
      transition: color var(--t), background var(--t);
      cursor: pointer;
      white-space: nowrap;
    }
    .nav-link:hover,
    .nav-item:hover .nav-link {
      color: var(--ink);
      background: var(--bg-subtle);
    }
    .nav-link.active {
      color: var(--brand);
      background: var(--brand-light);
      font-weight: 600;
    }
    .nav-link .chevron {
      font-size: 0.6rem;
      opacity: 0.5;
      transition: transform var(--t);
      margin-top: 1px;
    }
    .nav-item:hover .nav-link .chevron { transform: rotate(180deg); }

    /* Dropdown */
    .nav-dropdown {
      display: none;
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--r-md);
      box-shadow: var(--shadow-lg);
      padding: 8px;
      min-width: 248px;
      z-index: 300;
    }
    .nav-item:hover .nav-dropdown { display: block; }

    .nav-dropdown a {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 9px 12px;
      border-radius: var(--r-sm);
      font-size: 0.875rem;
      color: var(--body);
      transition: background var(--t);
    }
    .nav-dropdown a:hover {
      background: var(--bg-subtle);
    }
    .nav-dropdown a .dd-icon {
      font-size: 1rem;
      width: 20px;
      text-align: center;
      flex-shrink: 0;
      margin-top: 1px;
    }
    .nav-dropdown .dd-label {
      font-weight: 600;
      color: var(--ink);
      display: block;
      font-size: 0.875rem;
    }
    .nav-dropdown .dd-sub {
      font-size: 0.775rem;
      color: var(--muted);
      display: block;
      margin-top: 1px;
    }
    .nav-dropdown-section {
      padding: 8px 12px 4px;
      font-size: 0.68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--placeholder);
    }

    /* Nav right controls */
    .nav-search {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .nav-search-input {
      width: 176px;
      padding: 7px 12px;
      border: 1px solid var(--border);
      border-radius: var(--r-full);
      font-size: 0.83rem;
      font-family: inherit;
      background: var(--bg-subtle);
      color: var(--ink);
      outline: none;
      transition: border-color var(--t), width var(--t-slow), box-shadow var(--t);
    }
    .nav-search-input:focus {
      border-color: var(--brand-border);
      box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
      width: 220px;
    }
    .nav-search-input::placeholder { color: var(--placeholder); }

    .nav-cta {
      padding: 7px 16px;
      background: var(--brand);
      color: #ffffff !important;
      border-radius: var(--r-full);
      font-size: 0.83rem;
      font-weight: 600;
      white-space: nowrap;
      transition: background var(--t), box-shadow var(--t), transform 0.1s;
      letter-spacing: 0.01em;
    }
    .nav-cta:hover {
      background: var(--brand-hover) !important;
      box-shadow: var(--shadow-brand);
      transform: translateY(-1px);
    }
    .nav-cta-ghost {
      padding: 7px 14px;
      background: transparent;
      color: var(--muted) !important;
      border-radius: var(--r-full);
      font-size: 0.83rem;
      font-weight: 500;
      white-space: nowrap;
      transition: color var(--t), background var(--t);
      border: 1px solid var(--border);
    }
    .nav-cta-ghost:hover {
      color: var(--ink) !important;
      background: var(--bg-subtle);
    }

    /* Health Check CTA — accent green tint to stand out */
    .nav-cta-health {
      background: #059669 !important;
      box-shadow: 0 2px 8px rgba(5,150,105,0.28);
    }
    .nav-cta-health:hover {
      background: #047857 !important;
      box-shadow: 0 4px 14px rgba(5,150,105,0.38) !important;
    }

    /* Primary nav CTA — Scan a Contract */
    .nav-item-cta .nav-link {
      background: var(--brand) !important;
      color: #fff !important;
      border-radius: var(--r-full) !important;
      padding: 7px 16px !important;
      font-weight: 600 !important;
      box-shadow: var(--shadow-brand);
      margin-left: 6px;
    }
    .nav-item-cta .nav-link:hover {
      background: var(--brand-hover) !important;
      box-shadow: 0 4px 14px rgba(79,70,229,0.35) !important;
      transform: translateY(-1px);
    }

    /* Mobile hamburger */
    .nav-mobile-toggle {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 8px;
      margin-left: auto;
      background: none;
      border: none;
    }
    .nav-mobile-toggle span {
      width: 20px; height: 2px;
      background: var(--body);
      border-radius: 2px;
      display: block;
      transition: transform 0.2s;
    }

    /* ── NAV TIGHTEN: 960–1380px — too many items for 1200px container ── */
    @media (max-width: 1380px) {
      .nav-link {
        padding: 6px 7px;
        font-size: 0.82rem;
      }
      .nav-logo {
        margin-right: 10px;
      }
      .nav-search-input {
        width: 130px;
      }
    }

    @media (max-width: 960px) {
      .nav-links { display: none; }
      .nav-search { display: none; }
      .nav-mobile-toggle { display: flex; }

      .nav-links.open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0; bottom: 0;
        background: #fff;
        padding: 20px 24px;
        overflow-y: auto;
        z-index: 199;
        gap: 2px;
        border-top: 1px solid var(--border);
      }
      .nav-links.open .nav-link {
        color: var(--body);
        font-size: 1rem;
        padding: 12px 16px;
        width: 100%;
        border-radius: var(--r);
      }
      .nav-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        background: var(--bg-subtle);
        margin-top: 4px;
        display: block !important;
        border-radius: var(--r);
      }
      .nav-dropdown a { color: var(--body); }
      .nav-dropdown .dd-label { color: var(--ink); }
      .nav-dropdown .dd-sub { color: var(--muted); }
    }

    /* ═══════════════════════════════════════════════════
       TYPOGRAPHY UTILITIES
    ═══════════════════════════════════════════════════ */
    .display-heading {
      font-family: 'Merriweather', Georgia, serif;
      font-weight: 900;
      line-height: 1.15;
      letter-spacing: -0.02em;
      color: var(--ink);
    }
    .section-heading {
      font-family: 'Merriweather', Georgia, serif;
      font-weight: 700;
      line-height: 1.25;
      letter-spacing: -0.01em;
      color: var(--ink);
    }
    .eyebrow {
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--brand);
    }

    /* ═══════════════════════════════════════════════════
       SECTION UTILITIES
    ═══════════════════════════════════════════════════ */
    .section-title {
      font-family: 'Merriweather', Georgia, serif;
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--ink);
      margin-bottom: 8px;
      line-height: 1.3;
      letter-spacing: -0.01em;
    }
    .section-rule {
      border: none;
      border-top: 2px solid var(--brand);
      width: 36px;
      margin: 0 0 20px;
      opacity: 0.6;
    }
    .section-rule-center {
      border: none;
      border-top: 2px solid var(--brand);
      width: 36px;
      margin: 0 auto 20px;
      opacity: 0.6;
    }

    /* ═══════════════════════════════════════════════════
       BUTTONS
    ═══════════════════════════════════════════════════ */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 10px 22px;
      border-radius: var(--r-full);
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      border: none;
      transition: all var(--t);
      font-family: inherit;
      text-decoration: none;
      letter-spacing: 0.01em;
      white-space: nowrap;
    }
    .btn-primary {
      background: var(--brand);
      color: #fff;
      box-shadow: var(--shadow-brand);
    }
    .btn-primary:hover {
      background: var(--brand-hover);
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(79,70,229,0.35);
    }
    .btn-outline {
      background: transparent;
      color: var(--brand);
      border: 2px solid var(--brand-border);
    }
    .btn-outline:hover {
      background: var(--brand-light);
      border-color: var(--brand);
    }
    .btn-white {
      background: #ffffff;
      color: var(--brand);
      font-weight: 700;
      border: 1px solid rgba(255,255,255,0.2);
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    .btn-white:hover {
      background: #f0edff;
      transform: translateY(-1px);
    }
    .btn-ghost {
      background: transparent;
      color: var(--muted);
      border: 1px solid var(--border);
    }
    .btn-ghost:hover {
      color: var(--ink);
      background: var(--bg-subtle);
      border-color: var(--body);
    }
    .btn-sm {
      padding: 7px 16px;
      font-size: 0.82rem;
    }
    .btn-lg {
      padding: 14px 32px;
      font-size: 1rem;
    }

    /* ═══════════════════════════════════════════════════
       BADGE / CHIPS
    ═══════════════════════════════════════════════════ */
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 10px;
      border-radius: var(--r-full);
      font-size: 0.73rem;
      font-weight: 600;
      letter-spacing: 0.03em;
    }
    .badge-brand   { background: var(--brand-light); color: var(--brand); border: 1px solid var(--brand-border); }
    .badge-green   { background: var(--emerald-light); color: #065f46; border: 1px solid #a7f3d0; }
    .badge-gold    { background: var(--gold-light); color: #92400e; border: 1px solid #fcd34d; }
    .badge-muted   { background: var(--bg-muted); color: var(--muted); border: 1px solid var(--border); }
    /* Legacy compat */
    .badge-navy    { background: var(--brand-light); color: var(--brand); border: 1px solid var(--brand-border); }

    .rating-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-weight: 700;
      font-size: 0.9rem;
    }
    .rating-badge .star { color: var(--gold); }

    /* PRO chip in nav */
    .nav-pro-chip {
      font-size: 0.6rem;
      background: linear-gradient(135deg, var(--brand), var(--brand-mid));
      color: #fff;
      padding: 1px 6px;
      border-radius: var(--r-full);
      font-weight: 700;
      margin-left: 2px;
      letter-spacing: 0.05em;
      vertical-align: middle;
    }

    /* ═══════════════════════════════════════════════════
       PAGE HERO (inner pages)
    ═══════════════════════════════════════════════════ */
    .page-hero {
      padding: 56px 24px 48px;
      text-align: center;
      background: linear-gradient(180deg, var(--brand-light) 0%, var(--bg) 100%);
      border-bottom: 1px solid var(--border);
      position: relative;
      overflow: hidden;
    }
    .page-hero::before {
      content: '';
      position: absolute;
      top: -80px;
      right: -80px;
      width: 320px;
      height: 320px;
      background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
      pointer-events: none;
    }
    .page-hero::after {
      content: '';
      position: absolute;
      bottom: -60px;
      left: -60px;
      width: 280px;
      height: 280px;
      background: radial-gradient(circle, rgba(79,70,229,0.06) 0%, transparent 70%);
      pointer-events: none;
    }
    .page-hero h1 {
      font-family: 'Merriweather', Georgia, serif;
      font-size: clamp(1.5rem, 3.5vw, 2.4rem);
      font-weight: 900;
      line-height: 1.2;
      letter-spacing: -0.02em;
      color: var(--ink);
      margin-bottom: 14px;
      position: relative;
    }
    .page-hero p {
      font-size: 1.05rem;
      color: var(--muted);
      max-width: 540px;
      margin: 0 auto 28px;
      line-height: 1.7;
      position: relative;
    }

    /* ═══════════════════════════════════════════════════
       TOOL CARDS
    ═══════════════════════════════════════════════════ */
    .tool-card {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--r-md);
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      transition: box-shadow var(--t), border-color var(--t), transform var(--t);
    }
    .tool-card:hover {
      box-shadow: var(--shadow-md);
      border-color: var(--brand-border);
      transform: translateY(-2px);
    }
    .tool-card-header { display: flex; align-items: flex-start; gap: 16px; }
    .tool-logo {
      width: 48px; height: 48px;
      background: var(--bg-subtle);
      border: 1px solid var(--border);
      border-radius: var(--r-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
      flex-shrink: 0;
      overflow: hidden;
    }
    .tool-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
    .tool-card-title {
      font-family: 'Merriweather', Georgia, serif;
      font-size: 1rem;
      font-weight: 700;
      color: var(--ink);
      line-height: 1.3;
    }
    .tool-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
    .tool-card-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
    .tool-card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: auto;
      padding-top: 14px;
      border-top: 1px solid var(--border-light);
      gap: 8px;
      flex-wrap: wrap;
    }

    /* ═══════════════════════════════════════════════════
       GRID LAYOUTS
    ═══════════════════════════════════════════════════ */
    .tools-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 20px;
    }
    @media (max-width: 480px) { .tools-grid { grid-template-columns: 1fr; } }

    /* ═══════════════════════════════════════════════════
       SEARCH
    ═══════════════════════════════════════════════════ */
    .search-bar {
      display: flex;
      gap: 0;
      max-width: 580px;
      margin: 0 auto;
      border-radius: var(--r-full);
      overflow: hidden;
      box-shadow: var(--shadow-md);
      border: 1.5px solid var(--border);
      transition: border-color var(--t), box-shadow var(--t);
    }
    .search-bar:focus-within {
      border-color: var(--brand-border);
      box-shadow: 0 0 0 4px rgba(79,70,229,0.1), var(--shadow-md);
    }
    .search-input {
      flex: 1;
      padding: 14px 20px;
      border: none;
      background: #fff;
      font-size: 0.96rem;
      font-family: inherit;
      outline: none;
      color: var(--ink);
    }
    .search-input::placeholder { color: var(--placeholder); }
    .search-btn {
      padding: 14px 24px;
      background: var(--brand);
      color: #fff;
      border: none;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: background var(--t);
      font-family: inherit;
      white-space: nowrap;
    }
    .search-btn:hover { background: var(--brand-hover); }

    /* ═══════════════════════════════════════════════════
       BREADCRUMB
    ═══════════════════════════════════════════════════ */
    .breadcrumb {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.82rem;
      color: var(--muted);
      padding: 16px 0 0;
      flex-wrap: wrap;
    }
    .breadcrumb a { color: var(--muted); transition: color var(--t); }
    .breadcrumb a:hover { color: var(--brand); }
    .breadcrumb-sep { color: var(--border); }

    /* ═══════════════════════════════════════════════════
       PROSE (markdown content)
    ═══════════════════════════════════════════════════ */
    .prose { max-width: 720px; }
    .prose h1 { font-family: 'Merriweather', Georgia, serif; font-size: 2rem; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 16px; color: var(--ink); line-height: 1.2; }
    .prose h2 { font-family: 'Merriweather', Georgia, serif; font-size: 1.3rem; font-weight: 700; margin: 48px 0 14px; color: var(--ink); padding-bottom: 10px; border-bottom: 1px solid var(--border-light); letter-spacing: -0.01em; }
    .prose h3 { font-family: 'Merriweather', Georgia, serif; font-size: 1.1rem; font-weight: 700; margin: 32px 0 10px; color: var(--ink); }
    .prose p { margin-bottom: 18px; line-height: 1.8; color: var(--body); }
    .prose ul, .prose ol { padding-left: 22px; margin-bottom: 18px; }
    .prose li { margin-bottom: 7px; line-height: 1.7; color: var(--body); }
    .prose table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 0.9rem; border-radius: var(--r); overflow: hidden; }
    .prose th { background: var(--brand-light); padding: 10px 14px; text-align: left; font-weight: 700; border: 1px solid var(--brand-border); color: var(--brand-dark); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
    .prose td { padding: 10px 14px; border: 1px solid var(--border-light); vertical-align: top; color: var(--body); }
    .prose tr:nth-child(even) td { background: var(--bg-subtle); }
    .prose code { background: var(--bg-subtle); padding: 2px 6px; border-radius: var(--r-sm); font-size: 0.87em; border: 1px solid var(--border); }
    .prose strong { font-weight: 700; color: var(--ink); }
    .prose em { font-style: italic; }
    .prose a { color: var(--brand); text-decoration: underline; }
    .prose a:hover { color: var(--brand-dark); }
    .prose blockquote { border-left: 3px solid var(--brand); padding: 14px 20px; color: var(--body); margin: 28px 0; background: var(--brand-light); border-radius: 0 var(--r) var(--r) 0; }

    /* ═══════════════════════════════════════════════════
       FOOTER
    ═══════════════════════════════════════════════════ */
    .site-footer {
      background: #0c0a1e;
      color: #fff;
      padding: 72px 24px 40px;
      margin-top: 96px;
    }

    .footer-inner {
      max-width: 1200px;
      margin: 0 auto;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
      gap: 36px;
      margin-bottom: 56px;
    }

    @media (max-width: 1100px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 28px; } }
    @media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; } }
    @media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
    @media (max-width: 400px) { .footer-grid { grid-template-columns: 1fr; } }

    .footer-brand .footer-logo {
      font-family: 'Merriweather', Georgia, serif;
      font-size: 1.1rem;
      font-weight: 900;
      color: #fff;
      margin-bottom: 16px;
      letter-spacing: -0.01em;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .footer-logo-mark {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 26px;
      height: 26px;
      background: var(--brand);
      border-radius: 6px;
      color: #fff;
      font-size: 0.65rem;
      font-weight: 800;
      font-family: 'Inter', sans-serif;
      letter-spacing: 0;
    }

    .footer-brand p {
      font-size: 0.875rem;
      color: rgba(255,255,255,0.4);
      line-height: 1.8;
      max-width: 280px;
    }

    .footer-col h4 {
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: rgba(255,255,255,0.25);
      margin-bottom: 16px;
    }

    .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
    .footer-col ul a {
      font-size: 0.875rem;
      color: rgba(255,255,255,0.5);
      transition: color var(--t);
    }
    .footer-col ul a:hover { color: rgba(255,255,255,0.9); }

    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,0.06);
      padding-top: 28px;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 16px;
    }

    .footer-bottom-left p {
      font-size: 0.8rem;
      color: rgba(255,255,255,0.2);
      line-height: 1.6;
    }
    .footer-bottom-left p + p { margin-top: 4px; }

    .footer-legal {
      display: flex;
      flex-wrap: wrap;
      gap: 4px 0;
      align-items: center;
    }
    .footer-legal a {
      font-size: 0.78rem;
      color: rgba(255,255,255,0.25);
      padding: 0 12px;
      border-right: 1px solid rgba(255,255,255,0.1);
      transition: color var(--t);
      line-height: 1.4;
    }
    .footer-legal a:last-child { border-right: none; }
    .footer-legal a:hover { color: rgba(255,255,255,0.65); }

    /* ═══════════════════════════════════════════════════
       COOKIE CONSENT BANNER
    ═══════════════════════════════════════════════════ */
    #ls-cookie-banner {
      position: fixed;
      bottom: 20px;
      left: 20px;
      right: 20px;
      max-width: 540px;
      z-index: 9999;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--r-lg);
      box-shadow: var(--shadow-lg);
      padding: 20px 20px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      font-family: 'Inter', sans-serif;
      font-size: 0.85rem;
      color: var(--body);
      transform: translateY(calc(100% + 30px));
      transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    #ls-cookie-banner.ls-visible {
      transform: translateY(0);
    }
    #ls-cookie-banner p {
      line-height: 1.55;
      margin: 0;
      color: var(--muted);
    }
    #ls-cookie-banner p a {
      color: var(--brand);
      text-decoration: underline;
    }
    .ls-cookie-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
    }
    .ls-cookie-btn {
      padding: 7px 14px;
      border-radius: var(--r-full);
      font-size: 0.8rem;
      font-weight: 500;
      cursor: pointer;
      border: 1px solid var(--border);
      background: var(--bg-subtle);
      color: var(--muted);
      white-space: nowrap;
      transition: background var(--t), color var(--t);
      font-family: inherit;
    }
    .ls-cookie-btn:hover { background: var(--bg-muted); color: var(--ink); }
    .ls-cookie-btn.ls-accept {
      background: var(--brand);
      color: #fff;
      border-color: var(--brand);
    }
    .ls-cookie-btn.ls-accept:hover { background: var(--brand-hover); }

    @media (max-width: 560px) {
      #ls-cookie-banner { bottom: 12px; left: 12px; right: 12px; }
    }


/* Exit-intent popup styles */
  #ls-exit-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  #ls-exit-popup.open { display: flex; }
  .ls-exit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
  }
  .ls-exit-modal {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.25);
    max-width: 460px;
    width: 100%;
    padding: 40px 36px 32px;
    text-align: center;
    animation: ls-popup-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  @keyframes ls-popup-in {
    from { opacity: 0; transform: scale(0.88) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
  }
  .ls-exit-close {
    position: absolute;
    top: 14px; right: 18px;
    background: none;
    border: none;
    font-size: 22px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
  }
  .ls-exit-close:hover { color: #374151; background: #f3f4f6; }
  .ls-exit-modal .ls-exit-icon { font-size: 36px; margin-bottom: 14px; }
  .ls-exit-modal h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -0.4px;
    line-height: 1.25;
  }
  .ls-exit-modal p {
    font-size: 0.92rem;
    color: #6b7280;
    margin: 0 0 22px;
    line-height: 1.6;
  }
  .ls-exit-form {
    display: flex;
    gap: 0;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 9999px;
    padding: 4px 4px 4px 18px;
    transition: border-color 0.2s;
    margin-bottom: 10px;
  }
  .ls-exit-form:focus-within { border-color: #a5b4fc; }
  .ls-exit-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.88rem;
    color: #374151;
    font-family: inherit;
    min-width: 0;
  }
  .ls-exit-form input::placeholder { color: #9ca3af; }
  .ls-exit-form button {
    padding: 9px 18px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
  }
  .ls-exit-form button:hover { background: #4338ca; }
  .ls-exit-dismiss {
    display: block;
    margin-top: 12px;
    font-size: 0.8rem;
    color: #9ca3af;
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    font-family: inherit;
  }
  .ls-exit-dismiss:hover { color: #6b7280; }
  .ls-exit-msg { font-size: 0.85rem; min-height: 20px; margin-top: 8px; font-weight: 500; }
  .ls-exit-msg.success { color: #059669; }
  .ls-exit-msg.error { color: #e11d48; }
  @media (max-width: 520px) {
    .ls-exit-modal { padding: 32px 24px 28px; border-radius: 16px; }
    .ls-exit-modal h3 { font-size: 1.25rem; }
  }