/* ====================================================================
   SEOKeyMaster — Complete Stylesheet
   Covers: index, all tool pages, about, privacy, contact, disclaimer
   ==================================================================== */

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  --primary:       #1a56db;
  --primary-dark:  #1341b0;
  --primary-light: #e8f0fe;
  --accent:        #f97316;
  --accent-light:  #fff4ec;
  --success:       #16a34a;
  --success-light: #dcfce7;
  --danger:        #dc2626;
  --danger-light:  #fee2e2;
  --warning:       #d97706;
  --warning-light: #fef3c7;
  --purple:        #7c3aed;
  --purple-light:  #f3e8ff;
  --teal:          #0d9488;
  --bg:            #f0f4fa;
  --surface:       #ffffff;
  --border:        #e2e8f0;
  --text:          #0f172a;
  --text-muted:    #64748b;
  --radius:        10px;
  --radius-lg:     16px;
  --shadow:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:     0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:     0 10px 40px rgba(0,0,0,.16);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── NAV ───────────────────────────────────────────────────────── */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 300;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  box-shadow: var(--shadow);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
}
.logo-text { font-size: 18px; font-weight: 700; color: var(--text); }
.logo-text span { color: var(--primary); }
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 310;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 299;
  box-shadow: var(--shadow-md);
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 13px 24px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: var(--bg); color: var(--primary); }

/* ── LAYOUT ─────────────────────────────────────────────────────── */
.container  { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.tool-wrap  { max-width: 880px;  margin: 0 auto; padding: 0 1.5rem; }
.page-wrap  { max-width: 860px;  margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 44px 0; }

/* ── INDEX PAGE HERO ─────────────────────────────────────────────── */
.hero-main {
  background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 50%, #6d28d9 100%);
  color: #fff;
  padding: 64px 2rem 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-main > * { position: relative; }
.hero-main h1 {
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.15;
  letter-spacing: -.5px;
}
.hero-main h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-main > p {
  font-size: 17px;
  color: rgba(255,255,255,.85);
  max-width: 600px;
  margin: 0 auto 30px;
}
.hero-search {
  display: flex;
  max-width: 580px;
  margin: 0 auto;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
}
.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 15px 24px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: transparent;
}
.hero-search button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background .2s;
  white-space: nowrap;
}
.hero-search button:hover { background: #ea6c0a; }
.hero-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.hero-tag {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.92);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.25);
  transition: background .2s;
  user-select: none;
}
.hero-tag:hover { background: rgba(255,255,255,.28); }

/* ── STATS BAR ──────────────────────────────────────────────────── */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-item {
  padding: 14px 36px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}
.stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 1px;
}

/* ── CATEGORY TABS ──────────────────────────────────────────────── */
.section-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.section-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.cat-tab {
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: all .18s;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.cat-tab.active,
.cat-tab:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── TOOL CARDS (Index) ─────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.tool-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px 16px;
  cursor: pointer;
  transition: all .22s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity .22s;
}
.tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tool-card:hover::before { opacity: 1; }

/* Category colour bars */
.tc-ai::before       { background: linear-gradient(90deg,#dc2626,#7c3aed); }
.tc-text::before     { background: linear-gradient(90deg,var(--primary),var(--purple)); }
.tc-seo::before      { background: linear-gradient(90deg,#f97316,#dc2626); }
.tc-code::before     { background: linear-gradient(90deg,var(--purple),#0891b2); }
.tc-security::before { background: linear-gradient(90deg,#0891b2,var(--primary)); }
.tc-calc::before     { background: linear-gradient(90deg,var(--warning),#f97316); }
.tc-convert::before  { background: linear-gradient(90deg,var(--success),var(--teal)); }
.tc-web::before      { background: linear-gradient(90deg,#0891b2,var(--success)); }
.tc-color::before    { background: linear-gradient(90deg,#db2777,var(--purple)); }

/* AI card highlight */
.ai-card {
  border-color: #c4b5fd;
  background: linear-gradient(135deg, #faf5ff 0%, #eff6ff 100%);
}
.ai-card:hover { border-color: var(--purple); box-shadow: 0 6px 24px rgba(124,58,237,.18); }

/* Icon backgrounds */
.tool-icon {
  width: 46px; height: 46px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.ic-red    { background: #fee2e2; }
.ic-blue   { background: #dbeafe; }
.ic-purple { background: #f3e8ff; }
.ic-orange { background: #fff4ec; }
.ic-green  { background: #dcfce7; }
.ic-teal   { background: #ccfbf1; }
.ic-indigo { background: #e0e7ff; }
.ic-pink   { background: #fce7f3; }
.ic-amber  { background: #fef3c7; }

.tool-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; }
.tool-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; flex: 1; }

/* Badges */
.tool-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .4px;
  align-self: flex-start;
}
.badge-new     { background: #dbeafe; color: var(--primary); }
.badge-popular { background: var(--accent-light); color: var(--accent); }
.badge-free    { background: var(--success-light); color: var(--success); }
.badge-ai      { background: linear-gradient(135deg,var(--purple),var(--primary)); color: #fff; }

.hidden-card { display: none !important; }
#no-results  { display: none; text-align: center; padding: 60px 20px; color: var(--text-muted); }
#no-results .nr-icon { font-size: 48px; margin-bottom: 12px; }

/* ── AD SLOT ─────────────────────────────────────────────────────── */
.ad-slot {
  background: var(--surface);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin: 20px 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── TOOL PAGE HERO ──────────────────────────────────────────────── */
.tool-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, var(--primary) 55%, #1341b0 100%);
  color: #fff;
  padding: 44px 2rem 54px;
  text-align: center;
}
.tool-hero .th-icon { font-size: 46px; margin-bottom: 10px; display: block; }
.tool-hero h1 {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 10px;
}
.tool-hero p {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  max-width: 580px;
  margin: 0 auto 14px;
}
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.65); }
.breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ── TOOL PAGE BODY ──────────────────────────────────────────────── */
.tool-page-body { padding: 36px 0 70px; }
.tool-card-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.tool-card-main h2 { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.tool-card-main .sub { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }

/* Related tools box */
.related-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.related-box h3 { font-size: 14px; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; }
.related-links { display: flex; gap: 8px; flex-wrap: wrap; }
.related-link {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: all .18s;
}
.related-link:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ── FORM ELEMENTS ───────────────────────────────────────────────── */
textarea,
input[type=text],
input[type=url],
input[type=number],
input[type=email],
input[type=date],
input[type=search],
input[type=password] {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
  font-size: 14px;
  font-family: 'DM Mono', monospace;
  color: var(--text);
  background: var(--bg);
  resize: vertical;
  outline: none;
  transition: border-color .2s, background .2s;
  line-height: 1.5;
}
textarea:focus,
input:focus { border-color: var(--primary); background: #fff; }
select {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
  appearance: auto;
}
select:focus { border-color: var(--primary); }

.label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  display: block;
  margin-top: 14px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  font-family: 'DM Sans', sans-serif;
}
.checkbox-label input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 4px;
}

/* Grids */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,86,219,.35); }
.btn-outline   { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-secondary { background: var(--bg); color: var(--text-muted); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ── OUTPUT BOXES ────────────────────────────────────────────────── */
.result-box {
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 14px;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  min-height: 70px;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.65;
}
.result-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.result-stat {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 12px 16px;
  text-align: center;
  min-width: 85px;
  flex: 1;
}
.rs-num { font-size: 22px; font-weight: 700; color: var(--primary); }
.rs-lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; margin-top: 3px; }

/* ── ALERTS ──────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-top: 12px;
  line-height: 1.55;
  font-family: 'DM Sans', sans-serif;
}
.alert-success { background: var(--success-light); color: #15803d; border: 1px solid #bbf7d0; }
.alert-danger  { background: var(--danger-light);  color: #b91c1c; border: 1px solid #fecaca; }
.alert-warning { background: var(--warning-light); color: #b45309; border: 1px solid #fde68a; }
.alert-info    { background: var(--primary-light); color: #1341b0; border: 1px solid #bfdbfe; }

/* ── PROGRESS BAR ────────────────────────────────────────────────── */
.progress-bar { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; background: var(--primary); transition: width .4s ease; }

/* ── TABLE ───────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
th { text-align: left; padding: 9px 12px; background: var(--primary-light); color: var(--primary); font-weight: 600; }
td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #f8fafc; }

/* Keyword bars */
.kd-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.kd-word { min-width: 90px; font-weight: 600; font-size: 13px; }
.kd-bar-wrap { flex: 1; height: 18px; background: var(--border); border-radius: 4px; overflow: hidden; }
.kd-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--purple)); border-radius: 4px; }
.kd-count { font-size: 12px; color: var(--text-muted); min-width: 80px; text-align: right; }

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer {
  background: #0f172a;
  color: rgba(255,255,255,.7);
  padding: 52px 2rem 28px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  max-width: 1240px;
  margin: 0 auto 36px;
}
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  color: rgba(255,255,255,.6);
  font-size: 13px;
  text-decoration: none;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-col p {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 22px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  max-width: 1240px;
  margin: 0 auto;
  line-height: 1.8;
}
.footer-bottom a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  margin: 0 10px;
  transition: color .2s;
}
.footer-bottom a:hover { color: #fff; }

/* ══════════════════════════════════════════════════════
   STATIC PAGES  (about, privacy, contact, disclaimer)
   ══════════════════════════════════════════════════════ */

/* Page Hero (static pages) */
.page-hero {
  background: linear-gradient(135deg, #1e3a8a, var(--primary));
  color: #fff;
  padding: 50px 2rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 8px;
}
.page-hero p { font-size: 15px; color: rgba(255,255,255,.82); }

/* Page Body */
.page-body { padding: 48px 0 72px; }
.page-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
.page-section:last-child { border-bottom: none; }
.page-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}
.page-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--text);
}
.page-section p {
  color: #334155;
  margin-bottom: 12px;
  line-height: 1.75;
  font-size: 14px;
}
.page-section p a { color: var(--primary); text-decoration: none; }
.page-section p a:hover { text-decoration: underline; }
.page-section ul {
  padding-left: 22px;
  color: #334155;
  margin-bottom: 12px;
}
.page-section ul li {
  margin-bottom: 8px;
  line-height: 1.65;
  font-size: 14px;
}

/* Highlight box */
.highlight-box {
  background: var(--primary-light);
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14px;
  color: #1341b0;
  line-height: 1.6;
}
.warning-box {
  background: var(--warning-light);
  border: 1px solid #fde68a;
  border-left: 4px solid var(--warning);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14px;
  color: #92400e;
  line-height: 1.6;
}

/* Stat cards (about page) */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-card .sc-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
}
.stat-card .sc-lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Value cards (about page) */
.value-cards { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  box-shadow: var(--shadow);
}
.value-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.value-card span { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* FAQ (contact page) */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-q {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  font-family: 'DM Sans', sans-serif;
}
.faq-q:hover { background: var(--bg); }
.faq-arrow { transition: transform .22s; font-size: 11px; color: var(--text-muted); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 18px 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}
.faq-a a { color: var(--primary); text-decoration: none; }
.faq-item.open .faq-a { display: block; }

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.contact-info-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.contact-info-card p { font-size: 13px; color: var(--text-muted); margin: 0; }
.contact-info-card a { color: var(--primary); text-decoration: none; }

/* Contact form labels */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  margin-top: 16px;
  color: var(--text);
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .2s, background .2s;
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-input:focus,
.form-textarea:focus,
.form-select:focus { border-color: var(--primary); background: #fff; }
.form-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background .2s;
  margin-top: 16px;
}
.form-btn:hover { background: var(--primary-dark); }
.success-msg {
  display: none;
  background: var(--success-light);
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-top: 16px;
  font-weight: 500;
  font-size: 14px;
}

/* Page section headings */
.page-h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* ── SCROLLBAR ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  nav { padding: 0 1.2rem; }
  .form-grid-2,
  .form-grid-3 { grid-template-columns: 1fr; }
  .stat-item { padding: 12px 20px; }
  .tool-card-main { padding: 18px; }
  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .hero-main { padding: 44px 1.2rem 56px; }
  .footer-grid { gap: 22px; }
}
@media (max-width: 480px) {
  .tool-hero { padding: 30px 1rem 40px; }
  .page-hero { padding: 36px 1rem; }
  .cat-tabs { gap: 6px; }
  .cat-tab { padding: 6px 12px; font-size: 12px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}
