/* ============================================================
   ✏️  FONT CONTROL CENTRE — edit this section ONLY
   Change any font here → entire website updates instantly

   PAGESPEED OPTIMIZATIONS APPLIED:
   1. font-display=swap  — text shows immediately with fallback,
                           no render-blocking while fonts load
   2. Weights subsetted  — only weights actually used are loaded
                           Inter: 400,500,600,700 (dropped 800 — unused)
                           JetBrains Mono: 700 only (results only)
   3. Single @import     — one request for both fonts, no duplication
   4. Preconnect hints   — added to <head> of every calculator page
                           (see Section 6 of master brief)

   Google Fonts explorer: https://fonts.google.com
============================================================ */

/* ── STEP 1: Preconnect to Google Fonts servers (reduces DNS+TCP time) ── */
/* NOTE: These @import preconnects are handled in HTML <head> per page.    */
/* The @import below includes font-display=swap to eliminate render-block. */

/* ── STEP 2: Load fonts — font-display=swap prevents render-blocking ── */
/* Fonts loaded via <link rel=preload> in HTML <head> — NOT via @import (which is render-blocking) */
/*
   WHAT EACH PART DOES:
   Inter:wght@400;500;600;700    — 4 weights only (removed 800, use 700 instead)
   JetBrains+Mono:wght@700       — bold only (results/numbers only need bold)
   display=swap                  — Google Fonts swap param
   font-display=swap             — CSS swap — shows fallback immediately,
                                   swaps to Inter when loaded, no layout shift
*/

/* ── STEP 2: Assign fonts to roles ── */
:root {
  /* HEADING FONT — used for h1, h2, h3, h4, h5, h6, nav logo, badges */
  --font-display: 'Inter', Arial, sans-serif;

  /* BODY FONT — used for paragraphs, labels, inputs, buttons */
  --font-body: 'Inter', Arial, sans-serif;
}

/* ── STEP 3: Apply to every element sitewide ── */
/* !important ensures global.css ALWAYS wins over any inline style */
/* Change the variables above = entire site updates, no exceptions */

body { font-family: var(--font-body) !important; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display) !important; }

.nav-logo, .nav-hamburger, .hero-search-btn, .btn-calc, .btn-reset,
.request-submit, .cat-badge, .badge, .section-title, .hstat-val,
.calc-name, .rel-name, .faq-q, .hero-result .hero-value, .res-card-value,
.cta-inner h2, .footer-logo, .pop-badge, .cs-badge, .section-lbl,
.td-bold, .hero-label, .res-card-label, .data-table th,
.nav-logo, .footer-logo, .verified-badge { font-family: var(--font-display) !important; }

.nav-links a, .nav-contact, .nav-drawer a, .page-desc, .hero-sub,
.calc-desc, .faq-a, .data-table td, .helper, .tip-box,
input, select, textarea, label, p, li, td, th,
.content-card p, .content-card li { font-family: var(--font-body) !important; }

/* ============================================================
   CalculatorCove — global.css
   Theme: Clean Light
   Version: 3.0
============================================================ */
/* ── 01. FONTS ─────────────────────────────────────────────── */
/* ── 02. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --bg:           #f8f9fc;
  --surface:      #ffffff;
  --surface2:     #f1f3f8;
  --border:       #e2e6f0;
  --border-hover: #c5cde0;
  --accent:       #00c07a;
  --accent-dark:  #009962;
  --accent2:      #6c4ff6;
  --accent3:      #f05454;
  --text:         #0f1117;
  --text-muted:   #4a5068;
  --text-dim:     #8a93b0;
  --cat-finance:      #00c07a;
  --cat-marketing:    #6c4ff6;
  --cat-health:       #f05454;
  --cat-construction: #e08c00;
  --cat-legal:        #0ea5e9;
  --cat-education:    #d946a8;
  --font-display: 'Inter', Arial, sans-serif;
  --font-body:    'Inter', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --radius-full:  9999px;
  --shadow-sm:    0 1px 4px rgba(15,17,23,.06), 0 2px 8px rgba(15,17,23,.04);
  --shadow-md:    0 4px 16px rgba(15,17,23,.08), 0 2px 6px rgba(15,17,23,.04);
  --shadow-lg:    0 8px 32px rgba(15,17,23,.12), 0 2px 8px rgba(15,17,23,.06);
  --shadow-xl:    0 20px 60px rgba(15,17,23,.14);
  --transition:   0.2s ease;
  --max-width:    1100px;
  --nav-height:   68px;
}
/* ── 03. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: light; background: #f8f9fc !important; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-size: 15px; background: #f8f9fc !important; color: #0f1117 !important; min-height: 100vh; overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; background-image: radial-gradient(circle, rgba(108,79,246,.06) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; z-index: 0; }
img, svg, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
/* ── 04. TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
/* .hl gradient handled below — do NOT set background:inherit here */
h1 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -1.5px; }
h2 { font-size: clamp(20px, 3vw, 36px); letter-spacing: -0.5px; }
h3 { font-size: clamp(16px, 2vw, 22px); }
p { color: var(--text-muted); line-height: 1.75; }
.hl { background: linear-gradient(135deg, var(--accent, #00c07a) 0%, var(--accent2, #6c4ff6) 100%) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; color: transparent !important; display: inline; }
h1 .hl, h2 .hl, h3 .hl { color: transparent !important; -webkit-text-fill-color: transparent !important; }
.hl-finance { background: linear-gradient(135deg, #00c07a, #009962) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; display: inline; }
.hl-marketing { background: linear-gradient(135deg, #6c4ff6, #9d8bff) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; display: inline; }
.hl-health { background: linear-gradient(135deg, #f05454, #ff8e8e) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; display: inline; }
.hl-construction { background: linear-gradient(135deg, #e08c00, #ffd166) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; display: inline; }
.hl-legal { background: linear-gradient(135deg, #0ea5e9, #38bdf8) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; display: inline; }
.hl-education { background: linear-gradient(135deg, #d946a8, #f472b6) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; display: inline; }
/* ── 04b. CALCULATOR NUMBER STYLES (JetBrains Mono + tabular-nums) ── */
/* Page title — NO color set here so .hl gradient can show through */
/* h1 base size — .hero h1 and .cat-hero h1 override this below */
h1 { font-size: clamp(28px, 4.5vw, 40px) !important; font-weight: 700 !important; }
/* Calculator card title / h2 */
h2 { font-size: clamp(24px, 3vw, 28px) !important; font-weight: 700 !important; }
/* Labels */
label { font-size: 15px !important; font-weight: 600 !important; }
/* Input fields — large, readable, professional */
input[type="number"], input[type="text"], select {
  font-family: 'Inter', Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  height: 48px !important;
  /* No padding override — let each page control padding for prefix icons */
  border-radius: 8px !important;
  font-variant-numeric: tabular-nums !important;
}
input[type="number"]::placeholder, input[type="text"]::placeholder {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #b8c0d4 !important;
  font-variant-numeric: normal !important;
}
/* Mobile — prevent iOS zoom (must be 16px), keep prefix icon spacing intact */
@media (max-width: 768px) {
  input[type="number"], input[type="text"], select {
    font-size: 16px !important;
    height: 44px !important;
  }
  input[type="number"]::placeholder, input[type="text"]::placeholder {
    font-size: 13px !important;
    color: #b8c0d4 !important;
  }
  /* Ensure prefix/suffix icons stay visible and don't overlap */
  .input-wrap { position: relative !important; display: flex !important; align-items: center !important; }
  .input-pre { position: absolute !important; left: 13px !important; font-size: 13px !important; font-weight: 500 !important; color: #8a93b0 !important; pointer-events: none !important; z-index: 2 !important; line-height: 1 !important; }
  .input-suf { position: absolute !important; right: 13px !important; font-size: 13px !important; font-weight: 500 !important; color: #8a93b0 !important; pointer-events: none !important; z-index: 2 !important; }
  .input-wrap input[type="number"],
  .input-wrap input[type="text"] {
    padding-left: 34px !important;
    padding-right: 44px !important;
  }
  /* When no prefix icon — reset padding */
  .input-wrap input[type="number"]:first-child,
  .input-wrap input[type="text"]:first-child {
    padding-left: 14px !important;
  }
}
/* Primary result — large mono number */
.result-big, .hero-result .hero-value, .res-card-value {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: clamp(28px, 4vw, 40px) !important;
  font-weight: 700 !important;
  color: #00c07a !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -1px !important;
}
/* Secondary result cards — smaller mono */
.res-value {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
}
/* Stat values on homepage / category pages */
.stat-val, .hstat-val, .cat-stat-val {
  font-family: 'JetBrains Mono', monospace !important;
  font-variant-numeric: tabular-nums !important;
}
/* Any element with class .mono or .num gets JetBrains Mono */
.mono, .num {
  font-family: 'JetBrains Mono', monospace !important;
  font-variant-numeric: tabular-nums !important;
}
/* ── 05. LAYOUT ────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { position: relative; z-index: 1; max-width: var(--max-width); margin: 0 auto; padding: 0 24px 56px; }
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); max-width: var(--max-width); margin: 0 auto 48px; }
/* ── 06. NAVIGATION ────────────────────────────────────────── */
nav { position: sticky; top: 0; z-index: 100; height: var(--nav-height); background: rgba(248,249,252,.97) !important; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid #e2e6f0 !important; display: flex; align-items: center; padding: 0 32px; gap: 8px; box-shadow: var(--shadow-sm); }
.nav-logo { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: #0f1117 !important; text-decoration: none; display: flex; align-items: center; gap: 9px; margin-right: 16px; white-space: nowrap; }
.nav-logo-icon { width: 34px; height: 34px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.nav-logo span { color: var(--accent) !important; }
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-links a { font-size: 14px; font-weight: 500; color: #4a5068 !important; text-decoration: none; padding: 7px 14px; border-radius: var(--radius-sm); transition: color var(--transition), background var(--transition); white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--accent) !important; background: rgba(0,192,122,.08); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-contact { font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; border: 2px solid rgba(0,192,122,.3); padding: 8px 18px; border-radius: var(--radius-full); transition: all var(--transition); white-space: nowrap; }
.nav-contact:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
/* ── 07. TICKER ────────────────────────────────────────────── */
.ticker-wrap { position: relative; z-index: 10; display: flex; align-items: center; background: var(--surface); border-bottom: 1px solid #e2e6f0 !important; height: 38px; overflow: hidden; }
.ticker-label { flex-shrink: 0; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); background: rgba(0,192,122,.07); border-right: 1px solid var(--border); padding: 0 16px; height: 100%; white-space: nowrap; z-index: 2; }
.ticker-scroll { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 60px, black calc(100% - 60px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 60px, black calc(100% - 60px), transparent); }
.ticker-track { display: flex; align-items: center; animation: ticker 250s linear infinite; width: max-content; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-bar { position: relative; z-index: 10; display: flex; align-items: center; background: #ffffff; border-bottom: 1px solid #e2e6f0; height: 38px; overflow: hidden; }
.ticker-bar .ticker-track { display: flex; align-items: center; animation: ticker 250s linear infinite; width: max-content; }
.ticker-bar .ticker-track:hover { animation-play-state: paused; }
.ticker-track-wrap { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, black 60px, black calc(100% - 60px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 60px, black calc(100% - 60px), transparent); }
.ticker-item { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--text-muted); text-decoration: none; padding: 0 14px; white-space: nowrap; transition: color var(--transition); }
.ticker-item:hover { color: var(--accent); }
.ticker-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.5; flex-shrink: 0; }
.ticker-sep { color: var(--border); font-size: 14px; flex-shrink: 0; }
/* ── 08. HERO (homepage) ───────────────────────────────────── */
.hero { position: relative; z-index: 1; text-align: center; padding: 80px 24px 72px; max-width: 860px; margin: 0 auto; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(0,192,122,.25); padding: 7px 18px; border-radius: var(--radius-full); margin-bottom: 28px; background: rgba(0,192,122,.06); }
.hero-sub { font-size: 16px; color: var(--text-muted); line-height: 1.8; max-width: 580px; margin: 0 auto 36px; }
.hero-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.pill { font-size: 12px; font-weight: 500; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); padding: 7px 16px; border-radius: var(--radius-full); display: flex; align-items: center; gap: 6px; box-shadow: var(--shadow-sm); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.stats { display: flex; justify-content: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); max-width: 520px; margin: 0 auto; overflow: hidden; box-shadow: var(--shadow-md); }
.stat { flex: 1; min-width: 100px; padding: 20px 16px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-val { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--accent); display: block; }
.stat-lbl { font-size: 11px; color: var(--text-dim); margin-top: 3px; letter-spacing: .5px; }
/* ── 09. CATEGORY HERO ─────────────────────────────────────── */
.cat-hero { position: relative; z-index: 1; text-align: center; padding: 70px 24px 60px; max-width: 800px; margin: 0 auto; animation: fadeUp .7s ease both; }
.breadcrumb { font-size: 12px; color: var(--text-dim); margin-bottom: 20px; display: flex; align-items: center; gap: 6px; justify-content: center; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { font-weight: 600; color: var(--text); }
.cat-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; border: 1px solid var(--border); padding: 7px 18px; border-radius: var(--radius-full); margin-bottom: 24px; background: var(--surface); color: var(--text-muted); box-shadow: var(--shadow-sm); }
.hero-stats { display: flex; justify-content: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); max-width: 420px; margin: 0 auto; overflow: hidden; box-shadow: var(--shadow-md); }
.hstat { flex: 1; padding: 16px 12px; text-align: center; border-right: 1px solid var(--border); }
.hstat:last-child { border-right: none; }
.hstat-val { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--accent); }
.hstat-lbl { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
/* ── 10. SECTION HEADERS ───────────────────────────────────── */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.section-title { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; width: 4px; height: 20px; background: var(--accent); border-radius: 2px; flex-shrink: 0; }
.section-count { font-size: 12px; color: var(--text-dim); background: var(--surface); border: 1px solid var(--border); padding: 4px 12px; border-radius: 20px; }
.see-all { font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none; border: 1px solid rgba(0,192,122,.25); padding: 6px 14px; border-radius: var(--radius-sm); transition: background var(--transition); }
.see-all:hover { background: rgba(0,192,122,.07); }
/* ── 11. CATEGORY CARDS ────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-decoration: none; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); overflow: hidden; box-shadow: var(--shadow-sm); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.cat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; opacity: 0; transition: opacity var(--transition); }
.cat-card:hover::before { opacity: 1; }
.cat-card.finance::before   { background: linear-gradient(90deg, #00c07a, #009962); }
.cat-card.marketing::before { background: linear-gradient(90deg, #6c4ff6, #9d8bff); }
.cat-card.health::before    { background: linear-gradient(90deg, #f05454, #ff8e8e); }
.cat-card.construction::before { background: linear-gradient(90deg, #e08c00, #ffd166); }
.cat-card.legal::before     { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.cat-card.education::before { background: linear-gradient(90deg, #d946a8, #f472b6); }
.cat-icon { font-size: 36px; margin-bottom: 14px; display: block; }
.cat-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.cat-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.cat-tools { font-size: 11px; font-weight: 600; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.cat-arrow { margin-left: auto; font-size: 16px; color: var(--text-dim); transition: transform var(--transition), color var(--transition); }
.cat-card:hover .cat-arrow { transform: translateX(4px); color: var(--accent); }
/* ── 12. CALCULATOR CARDS ──────────────────────────────────── */
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.calc-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.calc-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
.calc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; text-decoration: none; transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition); display: block; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.calc-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.calc-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.calc-icon { font-size: 24px; }
.calc-name { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 5px; line-height: 1.3; }
.calc-desc { font-size: 11px; color: var(--text-dim); line-height: 1.5; }
.pop-card { border-color: rgba(0,192,122,.2); }
.pop-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.pop-card:hover { border-color: rgba(0,192,122,.5); }
.pop-badge { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); background: rgba(0,192,122,.1); border: 1px solid rgba(0,192,122,.25); padding: 3px 8px; border-radius: 6px; }
.cs-card { opacity: .5; cursor: default; }
.cs-card:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--border); }
.cs-badge { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); background: var(--surface2); border: 1px solid var(--border); padding: 3px 8px; border-radius: 6px; }
/* ── 13. WHY CARDS ─────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.why-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.why-icon { font-size: 32px; margin-bottom: 12px; display: block; }
.why-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.why-desc { font-size: 12px; color: var(--text-dim); line-height: 1.65; }
/* ── 14. CTA BANNER ────────────────────────────────────────── */
.cta-banner { position: relative; z-index: 1; max-width: var(--max-width); margin: 0 auto 64px; padding: 0 24px; }
.cta-inner { background: linear-gradient(135deg, rgba(0,192,122,.07), rgba(108,79,246,.07)); border: 1px solid rgba(0,192,122,.2); border-radius: var(--radius-xl); padding: 48px 40px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-md); }
.cta-inner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.cta-inner h2 { font-size: clamp(20px, 3vw, 30px); color: var(--text); margin-bottom: 10px; }
.cta-inner p { font-size: 14px; color: var(--text-muted); margin-bottom: 22px; }
.cta-btn { display: inline-block; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; font-family: var(--font-display); font-size: 14px; font-weight: 700; padding: 13px 30px; border-radius: var(--radius-md); text-decoration: none; transition: transform var(--transition), box-shadow var(--transition); }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,192,122,.3); }
/* ── 15. FOOTER ────────────────────────────────────────────── */
footer { position: relative; z-index: 1; background: var(--surface); border-top: 1px solid var(--border); padding: 52px 32px 28px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-logo { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-logo span { color: var(--accent); }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.footer-col a { color: #4a5068 !important; display: block; font-size: 12px; text-decoration: none; margin-bottom: 9px; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-dim); }
.footer-bottom a { color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.footer-bottom a:hover { color: var(--accent); }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
/* ── 16. FORMS & INPUTS ────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.3px; }
.form-input, .form-select, .form-textarea { width: 100%; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font-body); font-size: 14px; padding: 12px 16px; transition: border-color var(--transition), box-shadow var(--transition); outline: none; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: rgba(0,192,122,.5); box-shadow: 0 0 0 3px rgba(0,192,122,.1); }
.form-textarea { resize: vertical; min-height: 120px; }
/* ── 17. BUTTONS ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 14px; font-weight: 700; padding: 12px 24px; border-radius: var(--radius-md); text-decoration: none; border: none; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,192,122,.3); }
.btn-secondary { background: var(--surface2); color: var(--text-muted); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: rgba(0,192,122,.4); color: var(--text); }
.btn-pill { border-radius: var(--radius-full); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 12px; }
/* ── 18. FAQ ───────────────────────────────────────────────── */
.faq-wrap { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1.5px solid var(--border) !important; border-radius: var(--radius-md) !important; margin-bottom: 10px !important; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.faq-item:last-child { border-bottom: 1.5px solid var(--border) !important; }
/* CRITICAL: padding forces gap between question text and card edge */
.faq-q { width: 100% !important; background: none !important; border: none !important; color: var(--text) !important; font-family: var(--font-body) !important; font-size: 15px !important; font-weight: 600 !important; padding: 20px 24px !important; text-align: left !important; cursor: pointer !important; display: flex !important; justify-content: space-between !important; align-items: center !important; gap: 16px !important; line-height: 1.4 !important; }
/* Extra specificity — override any inline CSS that sets padding:18px 0 */
.faq-item .faq-q,
div.faq-item div.faq-q,
.content-card .faq-q { padding: 20px 24px !important; }
.faq-q:hover { color: var(--accent) !important; }
/* Support both .faq-arrow and .faq-icon (different pages use different class names) */
.faq-arrow, .faq-icon { font-size: 18px !important; color: var(--text-dim) !important; transition: transform .3s, color .2s !important; flex-shrink: 0 !important; }
.faq-item.open .faq-arrow, .faq-item.open .faq-icon { transform: rotate(45deg) !important; color: var(--accent) !important; }
.faq-a { max-height: 0 !important; overflow: hidden !important; transition: max-height .35s ease !important; }
.faq-item.open .faq-a { max-height: 600px !important; }
/* Answer text — padding matches question padding */
/* padding-left:0 removed — was overriding 24px left padding on open answers */
.faq-a p { padding: 0 24px 20px !important; font-size: 14px !important; color: var(--text-muted) !important; line-height: 1.75 !important; }
/* Answer text directly in .faq-a (no <p> wrapper) */
.faq-item.open .faq-a,
div.faq-item.open div.faq-a { padding: 0 24px 20px !important; font-size: 14px !important; color: var(--text-muted) !important; line-height: 1.75 !important; }
/* ── 19. STATIC PAGE LAYOUTS ───────────────────────────────── */
.page-container { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 56px 24px 80px; }
.page-hero { text-align: center; margin-bottom: 52px; }
.page-hero p { font-size: 15px; color: var(--text-muted); line-height: 1.8; max-width: 580px; margin: 0 auto; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.stat-label { font-size: 11px; color: var(--text-dim); letter-spacing: 1px; text-transform: uppercase; }
.card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 36px; margin-bottom: 20px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.card h2 { font-size: 18px; margin-bottom: 16px; color: var(--text); }
.card h3 { font-size: 15px; margin-bottom: 12px; color: var(--text); }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card ul, .card ol { padding-left: 20px; margin-bottom: 12px; }
.card li { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 6px; }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.value-item { background: var(--surface2); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
.value-icon { font-size: 24px; margin-bottom: 10px; }
.value-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.value-desc { font-size: 12px; color: var(--text-dim); line-height: 1.6; }
/* ── 20. BACKGROUND FX ─────────────────────────────────────── */
.orb1 { display: none; }
.orb2 { display: none; }
/* ── 21. ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse  { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.a1 { animation: fadeUp .6s .05s ease both; }
.a2 { animation: fadeUp .6s .15s ease both; }
.a3 { animation: fadeUp .6s .25s ease both; }
.a4 { animation: fadeUp .6s .35s ease both; }
/* ── 22. SCROLLBAR & SELECTION ─────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface2); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
::selection { background: rgba(0,192,122,.2); color: var(--text); }
/* ── 23. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links a { padding: 7px 10px; font-size: 13px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  nav { padding: 0 16px; }
  .nav-links { display: none; }
  .hero { padding: 48px 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .cat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .calc-grid { grid-template-columns: repeat(3, 1fr); }
  .calc-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .calc-grid, .calc-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 440px) {
  .calc-grid, .calc-grid.grid-3 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .values-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 32px 20px; }
}
/* ── TABLES — Responsive ────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 24px; }
thead { background: #f1f3f8; }
thead th { padding: 14px 16px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #4a5068; border-bottom: 1px solid #e2e6f0; }
tbody td { padding: 14px 16px; color: #0f1117; border-bottom: 1px solid #f1f3f8; vertical-align: top; line-height: 1.6; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8f9fc; }
@media (max-width: 640px) {
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 24px; }
  .table-wrap table { min-width: 480px; box-shadow: none; margin-bottom: 0; border-radius: 0; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  thead th, tbody td { padding: 12px 14px; font-size: 13px; white-space: normal; min-width: 100px; }
}
/* ── MOBILE NAV ─────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
  padding: 0;
  order: -1;
}
.nav-hamburger:hover { border-color: rgba(0,192,122,.4); background: rgba(0,192,122,.05); }
.nav-hamburger:hover span { background: var(--accent); }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #0f1117; border-radius: 2px; transition: all 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 768px) {
  nav { padding: 0 16px !important; height: 56px !important; width: 100% !important; box-sizing: border-box !important; display: flex !important; align-items: center !important; gap: 8px !important; overflow: visible !important; position: sticky !important; top: 0 !important; z-index: 100 !important; }
  .nav-logo { font-size: 15px !important; flex: 1 !important; min-width: 0 !important; margin-right: 0 !important; }
  .nav-logo-icon { width: 26px !important; height: 26px !important; font-size: 13px !important; flex-shrink: 0 !important; }
  /* nav-links hidden on mobile — nav-drawer handles mobile menu */
  .nav-links { display: none !important; }
  .nav-right { flex-shrink: 0 !important; margin-left: 0 !important; }
  .nav-contact { font-size: 11px !important; padding: 6px 10px !important; white-space: nowrap !important; }
  .nav-hamburger { display: flex !important; flex-shrink: 0 !important; }
  .stats-bar { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 1px !important; overflow: visible !important; }
  .stats-bar .stat { min-width: unset !important; padding: 16px 12px !important; border-right: none !important; }
  .stats-bar .stat-val, .stats-bar .num { font-size: 26px !important; }
  .stats-bar .stat-lbl, .stats-bar .label { font-size: 11px !important; }
  .hero-stats { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; gap: 8px !important; }
  .hstat { min-width: 80px !important; flex: 1 !important; padding: 12px 8px !important; }
  .hstat-val { font-size: 22px !important; }
  .hstat-lbl { font-size: 11px !important; }
  .cat-grid, .category-grid, .calc-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .cat-hero, .page-header, .hero { padding: 32px 16px 24px !important; }
  h1 { font-size: 26px !important; letter-spacing: -0.5px !important; }
  .hero h1 { font-size: clamp(38px, 10vw, 56px) !important; letter-spacing: -2px !important; }
  .cat-hero h1 { font-size: clamp(36px, 8vw, 52px) !important; letter-spacing: -1.5px !important; }
  .hl, span.hl { -webkit-text-fill-color: transparent !important; color: transparent !important; background-clip: text !important; -webkit-background-clip: text !important; }
  h2 { font-size: 20px !important; }
  .section { padding: 0 16px 40px !important; }
  .container { padding: 0 16px !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .badge, .cat-badge, .pill { font-size: 10px !important; padding: 5px 12px !important; }

  /* ── FAQ MOBILE — comfortable padding on small screens ── */
  .faq-wrap { padding: 0 !important; }
  .faq-q { padding: 16px 18px !important; font-size: 14px !important; }
  .faq-a p { padding: 0 18px 16px !important; }
  .faq-item.open .faq-a { padding: 0 18px 16px !important; }
}
/* ── HOMEPAGE STATS BAR MOBILE FIX ─────────────────────────── */
@media (max-width: 768px) {
  .stats { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 0 !important; width: 100% !important; overflow: hidden !important; border-radius: 16px !important; }
  .stats .stat { min-width: unset !important; width: 100% !important; padding: 16px 12px !important; border-right: 1px solid #e2e6f0 !important; border-bottom: 1px solid #e2e6f0 !important; }
  .stats .stat:nth-child(even) { border-right: none !important; }
  .stats .stat:nth-last-child(-n+2) { border-bottom: none !important; }
  .stat-val { font-size: 28px !important; display: block !important; }
  .stat-lbl { font-size: 12px !important; }
}
/* ── STICKY BOTTOM BAR — CuriosityExplain ───────────────────── */
.curiosity-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: #0f1117; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 20px; font-size: 13px; color: #b8c0d0; box-shadow: 0 -4px 20px rgba(0,0,0,.15); }
.curiosity-bar a { color: #00c07a; font-weight: 700; text-decoration: none; transition: color 0.2s; }
.curiosity-bar a:hover { color: #00e5a0; }
.curiosity-bar-close { position: absolute; right: 16px; background: none; border: none; color: #8a93b0; font-size: 18px; cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: 6px; transition: color 0.2s; }
.curiosity-bar-close:hover { color: #fff; }
body.has-curiosity-bar { padding-bottom: 48px; }
@media (max-width: 640px) {
  .curiosity-bar { font-size: 12px; padding: 10px 40px 10px 16px; text-align: center; }
}
/* ═══════════════════════════════════════════════════════════
   CATEGORY PAGE FIXES — March 2026
   ═══════════════════════════════════════════════════════════ */
[class*="stat-val"], [class*="stat-num"], [class*="stat-value"], [class*="stat-number"], [class*="counter-val"], [class*="metric-val"], [class*="hero-stat"] [class*="val"], [class*="stats"] [class*="val"], [class*="stats-box"] [class*="val"], [class*="stat"] [class*="num"], [class*="stat-box"] [class*="val"] { color: #00c07a !important; }
[class*="stat"] > *:first-child, [class*="counter"] > *:first-child, [class*="metric"] > *:first-child { color: #00c07a !important; }
[class*="faq"] h2, h2[class*="faq"] { font-size: clamp(20px, 3vw, 26px) !important; color: #0f1117 !important; margin-bottom: 20px !important; letter-spacing: -0.5px !important; }
[class*="faq-item"], [class*="faq"] [class*="item"] { border-bottom: 1px solid #e2e6f0 !important; }
[class*="faq-q"], [class*="faq"] [class*="question"], [class*="faq-item"] button, [class*="faq-item"] [class*="header"] { font-size: 15px !important; padding: 18px 20px !important; }
[class*="faq-a"], [class*="faq"] [class*="answer"], [class*="faq-item"] [class*="body"], [class*="faq-item"] [class*="content"] { font-size: 14px !important; line-height: 1.7 !important; color: #4a5068 !important; }
@media (max-width: 768px) {
  [class*="hero"] h1, [class*="cat-hero"] h1, [class*="category"] h1, .page-header h1, h1[class*="hero"], h1[class*="title"] { font-size: clamp(36px, 8vw, 52px) !important; letter-spacing: -1.5px !important; line-height: 1.05 !important; word-break: break-word !important; }
  [class*="hero"] p, [class*="hero-desc"], [class*="hero-sub"], .page-desc { font-size: 14px !important; line-height: 1.6 !important; }
  [class*="stat-box"], [class*="stats-box"], [class*="stats"], [class*="counter-box"], [class*="metrics"] { max-width: 100% !important; overflow: hidden !important; }
  [class*="stat-val"], [class*="stat-num"], [class*="stat-value"], [class*="stat-number"], [class*="counter-val"], [class*="metric-val"] { font-size: clamp(24px, 6vw, 36px) !important; }
  [class*="stat-label"], [class*="stat-lbl"], [class*="counter-label"] { font-size: 11px !important; }
  [class*="section-title"], [class*="sec-title"], [class*="section-head"] h2 { font-size: clamp(18px, 5vw, 24px) !important; }
  [class*="calc-grid"], [class*="tool-grid"], [class*="card-grid"] { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  [class*="card"] [class*="name"], [class*="card"] [class*="title"], [class*="card"] h3 { font-size: 13px !important; line-height: 1.3 !important; word-break: break-word !important; }
  [class*="card"] [class*="desc"], [class*="card"] p { font-size: 12px !important; line-height: 1.5 !important; }
  [class*="faq"] h2, h2[class*="faq"] { font-size: clamp(18px, 5vw, 22px) !important; }
  [class*="faq-q"], [class*="faq"] [class*="question"] { font-size: 14px !important; padding: 16px 18px !important; gap: 10px !important; }
}
@media (max-width: 480px) {
  [class*="hero"] h1, [class*="cat-hero"] h1, [class*="category"] h1, h1[class*="hero"] { font-size: 32px !important; }
  [class*="calc-grid"], [class*="tool-grid"], [class*="card-grid"] { grid-template-columns: 1fr !important; }
  [class*="stat-val"], [class*="stat-num"], [class*="stat-value"], [class*="stat-number"] { font-size: 22px !important; }
}
/* ── End Category Page Fixes ── */

/* ═══════════════════════════════════════════════════════════
   SEARCH OVERLAY — nav 🔍 button opens this modal
   Used on: index.html + all category pages
   ═══════════════════════════════════════════════════════════ */
.nav-search-btn { width: 36px; height: 36px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all var(--transition); flex-shrink: 0; }
.nav-search-btn:hover { border-color: rgba(0,192,122,.4); color: var(--accent); background: rgba(0,192,122,.05); }
.nav-drawer {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 9999;
  flex-direction: column;
  padding: 16px 16px 32px;
  gap: 4px;
  border-top: 1px solid #e2e6f0;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.15);
}
.nav-drawer.open { display: flex !important; }
.nav-drawer a { font-size: 16px; font-weight: 600; color: #0f1117; text-decoration: none; padding: 14px 16px; border-radius: 12px; display: flex; align-items: center; gap: 10px; transition: all .15s; }
.nav-drawer a:hover, .nav-drawer a.active { background: rgba(0,192,122,.08); color: var(--accent) !important; }
.nav-drawer-sep { height: 1px; background: var(--border); margin: 8px 0; }
.search-overlay { position: fixed; inset: 0; z-index: 999; background: rgba(15,17,23,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding-top: 80px; }
.search-overlay.open { display: flex; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.search-box { background: var(--surface); border-radius: 18px; width: 100%; max-width: 620px; margin: 0 16px; box-shadow: 0 24px 80px rgba(15,17,23,.18); overflow: hidden; animation: slideDown .22s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.search-input-wrap svg { flex-shrink: 0; color: var(--text-dim); }
#cc-search-input { flex: 1; border: none; outline: none; font-family: var(--font-body); font-size: 17px; font-weight: 500; color: var(--text); background: transparent; caret-color: var(--accent); }
#cc-search-input::placeholder { color: var(--border-hover); }
.search-close { width: 30px; height: 30px; border: none; background: var(--surface2); border-radius: 7px; cursor: pointer; font-size: 14px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--transition); }
.search-close:hover { background: var(--border); color: var(--text); }
.search-results { max-height: 380px; overflow-y: auto; }
.search-result-item { display: flex; align-items: center; gap: 14px; padding: 13px 20px; text-decoration: none; transition: background var(--transition); border-bottom: 1px solid #f8f9fc; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--surface2); }
.search-result-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.search-result-icon.finance    { background: rgba(0,192,122,.1); }
.search-result-icon.marketing  { background: rgba(108,79,246,.1); }
.search-result-icon.health     { background: rgba(240,84,84,.1); }
.search-result-icon.construction { background: rgba(224,140,0,.1); }
.search-result-icon.legal      { background: rgba(14,165,233,.1); }
.search-result-icon.education  { background: rgba(217,70,168,.1); }
.search-result-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 2px; }
.search-result-cat { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--text-dim); }
.search-empty { padding: 32px 20px; text-align: center; color: var(--text-dim); font-size: 14px; }
.search-empty span { display: block; font-size: 28px; margin-bottom: 10px; }
.search-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.search-footer-tip { font-size: 11px; color: var(--border-hover); font-weight: 500; }
.search-count { font-size: 11px; color: var(--accent); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   HERO SEARCH BAR — big search bar in homepage hero
   Used on: index.html only
   ═══════════════════════════════════════════════════════════ */
.hero-search { margin: 32px auto 0; width: 100%; max-width: 640px; }
.hero-search-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; text-align: center; }
.hero-search-outer { position: relative; width: 100%; }
.hero-search-wrap { display: flex; align-items: center; background: var(--surface); border: 2px solid var(--border); border-radius: 16px; padding: 8px 8px 8px 22px; gap: 12px; transition: all .25s; box-shadow: 0 8px 32px rgba(15,17,23,.08), 0 2px 8px rgba(15,17,23,.04); }
.hero-search-wrap:focus-within { border-color: var(--accent); box-shadow: 0 8px 40px rgba(0,192,122,.18), 0 2px 8px rgba(0,192,122,.08); }
.hero-search-wrap svg { flex-shrink: 0; color: var(--text-dim); transition: color var(--transition); }
.hero-search-wrap:focus-within svg { color: var(--accent); }
#cc-hero-search { flex: 1; border: none; outline: none; font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--text); background: transparent; caret-color: var(--accent); padding: 10px 0; min-width: 0; }
#cc-hero-search::placeholder { color: var(--border-hover); font-weight: 400; }
.hero-search-btn { flex-shrink: 0; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); border: none; border-radius: 11px; padding: 12px 28px; font-family: var(--font-body); font-size: 14px; font-weight: 700; color: #fff; cursor: pointer; white-space: nowrap; transition: all var(--transition); letter-spacing: .5px; box-shadow: 0 4px 14px rgba(0,192,122,.35); }
.hero-search-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,192,122,.45); }
.hero-search-btn:active { transform: translateY(0); }
.hero-search-results { position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; box-shadow: 0 16px 50px rgba(15,17,23,.13); overflow: hidden; z-index: 200; display: none; }
.hero-search-results.open { display: block; animation: fadeUp .18s ease; }
.hero-search-hint { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.hero-search-hint span { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.hero-search-hint a { font-size: 12px; color: var(--text-muted); font-weight: 600; text-decoration: none; background: var(--surface2); padding: 4px 12px; border-radius: var(--radius-full); transition: all var(--transition); }
.hero-search-hint a:hover { background: rgba(0,192,122,.1); color: var(--accent-dark); }

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE HERO — h1 sizing, large impact heading
   ═══════════════════════════════════════════════════════════ */
.hero h1 { font-size: clamp(48px, 7vw, 88px) !important; font-weight: 800 !important; line-height: 1.0 !important; letter-spacing: -3px !important; color: #0f1117; }

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — hero search + hero h1
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .hero-search { max-width: 100%; }
  #cc-hero-search { font-size: 15px; }
  .hero-search-btn { padding: 12px 18px; font-size: 13px; }
  .hero h1 { font-size: clamp(38px, 10vw, 56px) !important; letter-spacing: -2px !important; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 34px !important; letter-spacing: -1.5px !important; }
}

/* ═══════════════════════════════════════════════════════════
   CATEGORY PAGE LAYOUT — cat-page, cat-hero, cat-stats, cards
   Used by: all 6 category index pages (generated by PHP)
   ═══════════════════════════════════════════════════════════ */
.cat-page { max-width: 1100px; margin: 0 auto; padding: 0 24px 60px; }
.cat-hero { padding: 56px 0 44px; text-align: center; position: relative; z-index: 1; }
.cat-hero h1 { font-family: 'Inter', Arial, sans-serif; font-size: clamp(40px,6vw,68px); font-weight: 800; letter-spacing: -2px; margin-bottom: 16px; line-height: 1.05; }
.cat-hero h1 .hl, .hero h1 .hl { -webkit-text-fill-color: transparent !important; color: transparent !important; }
.cat-hero h1 span.hl, .hero h1 span.hl { color: transparent !important; -webkit-text-fill-color: transparent !important; }
/* gradient text handled by .hl rule above */
.cat-hero p { font-size: 17px; color: #4a5068; line-height: 1.75; max-width: 600px; margin: 0 auto; }
.cat-hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; padding: 7px 18px; border-radius: 100px; margin-bottom: 24px; border-width: 1.5px; border-style: solid; color: var(--accent); border-color: var(--accent); background: rgba(var(--accent-rgb),.07); }
.cat-stats { display: inline-flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; justify-content: center; width: 100%; }
.cat-stat { background: #fff; border: 1.5px solid #e2e6f0; border-radius: 16px; padding: 18px 24px; display: flex; flex-direction: column; align-items: center; gap: 4px; width: auto; min-width: 140px; flex: 0 0 auto; box-shadow: 0 2px 8px rgba(15,17,23,.05); }
.cat-stat-val { font-family: 'Inter', Arial, sans-serif; font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent); }
.cat-stat-lbl { font-size: 11px; color: #8a93b0; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; text-align: center; white-space: nowrap; }
.section-hd { display: flex; align-items: center; gap: 14px; margin: 44px 0 20px; }
.section-hd h2 { font-family: 'Inter', Arial, sans-serif; font-size: 20px; font-weight: 700; color: #0f1117; white-space: nowrap; }
.section-hd .line { flex: 1; height: 1px; background: #e2e6f0; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: rgba(var(--accent-rgb),.1); }
.card-name { font-family: 'Inter', Arial, sans-serif; font-size: 14px; font-weight: 700; color: #0f1117; margin-bottom: 6px; line-height: 1.3; }
.card-arrow { font-size: 12px; font-weight: 600; margin-top: 10px; color: var(--accent); }
.request-box { background: linear-gradient(135deg,rgba(0,192,122,.07),rgba(108,79,246,.07)); border: 1.5px solid #e2e6f0; border-radius: 16px; padding: 32px; text-align: center; margin-top: 48px; }
.request-box h3 { font-family: 'Inter', Arial, sans-serif; font-size: 20px; font-weight: 800; color: #0f1117; margin-bottom: 8px; }
.request-box p { font-size: 14px; color: #4a5068; margin-bottom: 20px; }
.request-btn { color: #fff; border: none; border-radius: 100px; padding: 12px 28px; font-family: 'Inter', Arial, sans-serif; font-size: 14px; font-weight: 700; text-decoration: none; display: inline-block; transition: all .2s; cursor: pointer; background: var(--accent); }
.request-btn:hover { opacity: .9; transform: translateY(-1px); }
.request-form { display: flex; flex-direction: column; gap: 10px; max-width: 480px; margin: 0 auto 20px; }
.request-input { width: 100%; padding: 12px 16px; border: 1.5px solid #e2e6f0; border-radius: 10px; font-family: 'Inter', Arial, sans-serif; font-size: 14px; color: #0f1117; background: #fff; outline: none; transition: border-color .2s; }
.request-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.1); }
.request-success { display: none; font-weight: 600; font-size: 14px; margin-top: 8px; color: var(--accent); }
@media (max-width: 768px) {
  .cat-hero { padding: 36px 0 28px; }
  .cat-hero h1 { font-size: clamp(32px, 8vw, 48px) !important; letter-spacing: -1.5px; }
  .cat-stats { gap: 10px; }
  .cat-stat { min-width: 110px; padding: 14px 16px; }
  .cat-stat-val { font-size: 24px; }
}