/* TrueTools.org — Shared Stylesheet
   Google Fonts: Playfair Display (headings), Plus Jakarta Sans (body)
   ------------------------------------------------------------------ */

/* ── 1. CUSTOM PROPERTIES ─────────────────────────────────────────── */
:root {
  /* Palette */
  --bg:       #f8f7f4;
  --surface:  #ffffff;
  --ink:      #1a1a2e;
  --ink-2:    #4a4a68;
  --border:   #e2e0da;

  /* Accent colours */
  --teal:     #0d9488;
  --teal-dk:  #0f766e;
  --teal-lt:  #ccfbf1;
  --rose:     #e11d48;
  --rose-lt:  #ffe4e6;
  --amber:    #d97706;
  --amber-lt: #fef3c7;
  --violet:   #7c3aed;
  --violet-lt:#ede9fe;
  --sky:      #0369a1;
  --sky-lt:   #e0f2fe;
  --lime:     #4d7c0f;
  --lime-lt:  #ecfccb;
  --pink:     #be185d;
  --pink-lt:  #fce7f3;
  --orange:   #c2410c;
  --orange-lt:#ffedd5;

  /* Spacing & geometry */
  --radius:   10px;
  --radius-lg:16px;
  --shadow:   0 1px 2px rgba(0,0,0,.03), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.1);

  /* Typography */
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Layout */
  --max-w:    1200px;
  --sidebar-w:300px;
  --gap:      1.5rem;
}

/* ── 2. RESET & BASE ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg) radial-gradient(circle, rgba(0,0,0,.055) 1px, transparent 1px);
  background-size: auto, 28px 28px;
}
[data-theme="dark"] body {
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
}

img, svg { display: block; max-width: 100%; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── SKIP LINK (accessibility — keyboard users) ───────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--teal);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: .875rem;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.875rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4em; margin-bottom: 1em; }
li { margin-bottom: .35em; }

/* ── 3. LAYOUT ────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
  padding-block: 2rem;
}

.layout > main { min-width: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

/* ── 4. HEADER & NAV ──────────────────────────────────────────────── */
.site-header {
  background: rgba(248,247,244,.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 66px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--teal);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(13,148,136,.3);
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -.3px;
}
.logo-text em { color: var(--teal); font-style: normal; }

/* Desktop nav */
.desktop-nav {
  display: flex;
  gap: .2rem;
  align-items: center;
  margin-left: auto;
}
.desktop-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  padding: .4rem .8rem;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.desktop-nav a:hover,
.desktop-nav a.active { color: var(--teal); background: var(--teal-lt); }
.nav-cta {
  background: var(--teal) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: .45rem 1rem !important;
  box-shadow: 0 2px 8px rgba(13,148,136,.25) !important;
}
.nav-cta:hover { background: var(--teal-dk) !important; color: #fff !important; }

/* Mobile nav links (drawer) */
.nav-links {
  display: flex;
  gap: .25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.nav-links a {
  display: block;
  padding: .4rem .75rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--teal-lt);
  color: var(--teal-dk);
  text-decoration: none;
}

.nav-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem .75rem;
  gap: .5rem;
  flex: 1;
  max-width: 280px;
}
.nav-search input {
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: .875rem;
  width: 100%;
  color: var(--ink);
}
.nav-search svg { flex-shrink: 0; color: var(--ink-2); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--ink);
  margin-left: auto;
}

.mobile-menu {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
}
.mobile-menu.open { display: block; }
.mobile-menu .nav-links {
  flex-direction: column;
  margin: 0;
  gap: .15rem;
}
.mobile-menu .nav-links a {
  font-size: 1rem;
  padding: .6rem .75rem;
}

/* Search results dropdown */
#search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}
#search-results.open { display: block; }
.search-result-item {
  display: block;
  padding: .65rem 1rem;
  font-size: .875rem;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg); text-decoration: none; }
.search-result-item strong { color: var(--teal); }
.search-result-cat {
  font-size: .75rem;
  color: var(--ink-2);
}
.search-wrap { position: relative; flex: 1; max-width: 400px; }

/* ── 5. FOOTER ────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .logo { color: #fff; }
.footer-brand p { font-size: .875rem; margin-top: .75rem; color: #94a3b8; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #94a3b8;
  margin-bottom: .75rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .4rem; }
.site-footer a:hover { text-decoration: none; }
.footer-col a { color: #cbd5e1; font-size: .875rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8125rem;
  color: #64748b;
}

/* ── 6. CARDS ─────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card:active { transform: translateY(0); }

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

/* Category cards */
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  cursor: pointer;
  touch-action: manipulation;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13,148,136,.3);
  text-decoration: none;
}
.cat-card:active { transform: translateY(-1px); }
.cat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; /* fallback for any remaining emoji */
  flex-shrink: 0;
}
.cat-icon svg { width: 24px; height: 24px; display: block; }
.cat-card h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; }
.cat-card p { font-size: .8125rem; color: var(--ink-2); margin: 0; }
.cat-count { font-size: .75rem; font-weight: 700; color: var(--teal); }

/* Tool link cards (small) */
.tool-link-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s, border-color .15s, transform .15s;
  cursor: pointer;
  touch-action: manipulation;
}
.tool-link-card:hover {
  background: var(--teal-lt);
  border-color: var(--teal);
  text-decoration: none;
  transform: translateX(3px);
}
.tool-link-card .tl-icon { font-size: 1.25rem; flex-shrink: 0; }

/* ── 7. BUTTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.375rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, transform .15s, box-shadow .2s, opacity .2s;
  white-space: nowrap;
  min-height: 44px;
  touch-action: manipulation; /* remove 300ms tap delay on mobile */
  -webkit-tap-highlight-color: transparent;
}
.btn:active  { transform: scale(0.97); }
.btn:disabled,
.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  box-shadow: 0 1px 4px rgba(13,148,136,.25);
}
.btn-primary:hover {
  background: var(--teal-dk);
  border-color: var(--teal-dk);
  box-shadow: 0 3px 10px rgba(13,148,136,.35);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover { background: var(--teal-lt); text-decoration: none; }

/* Accent button variants */
.btn-rose   { background: var(--rose);   color: #fff; border-color: var(--rose);   box-shadow: 0 1px 4px rgba(225,29,72,.2); }
.btn-rose:hover   { background: #be123c; border-color: #be123c; box-shadow: 0 3px 10px rgba(225,29,72,.3); text-decoration: none; }
.btn-amber  { background: var(--amber);  color: #fff; border-color: var(--amber);  }
.btn-amber:hover  { background: #b45309; border-color: #b45309; text-decoration: none; }
.btn-violet { background: var(--violet); color: #fff; border-color: var(--violet); }
.btn-violet:hover { background: #6d28d9; border-color: #6d28d9; text-decoration: none; }

.btn-sm {
  padding: .4rem .875rem;
  font-size: .8125rem;
  min-height: 36px;
}

.btn-full { width: 100%; justify-content: center; }

/* ── 8. FORM ELEMENTS ─────────────────────────────────────────────── */
.input, .select, .textarea {
  display: block;
  width: 100%;
  padding: .65rem .875rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem; /* prevents iOS zoom */
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.input:hover  { border-color: #b0ada6; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,.15);
  background: #fff;
}
.input::placeholder { color: #b0b8c1; }
.input[type="number"] { font-variant-numeric: tabular-nums; }

.textarea { min-height: 160px; resize: vertical; }

.form-group { margin-bottom: 1.125rem; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── 9. RESULT BOX ────────────────────────────────────────────────── */
.result-box {
  background: var(--teal-lt);
  border: 2px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.25rem;
  display: none;
}
.result-box.show {
  display: block;
  animation: fadeIn .3s ease;
}
.result-box h3 { font-size: 1rem; color: var(--teal-dk); margin-bottom: .75rem; }
.result-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-head);
  color: var(--teal-dk);
  font-variant-numeric: tabular-nums; /* prevent layout shift as numbers change */
}
.result-label { font-size: .875rem; color: var(--ink-2); margin-top: .25rem; }
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .875rem;
  margin-top: 1rem;
}
.result-item {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.result-item .val {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--teal-dk);
  font-variant-numeric: tabular-nums;
}
.result-item .lbl { font-size: .8125rem; color: var(--ink-2); margin-top: .2rem; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Accent variants */
.result-box.rose   { background: var(--rose-lt);   border-color: var(--rose);   }
.result-box.rose   .result-value,
.result-box.rose   .val,
.result-box.rose   h3 { color: var(--rose); }

.result-box.amber  { background: var(--amber-lt);  border-color: var(--amber);  }
.result-box.amber  .result-value,
.result-box.amber  .val,
.result-box.amber  h3 { color: var(--amber); }

.result-box.violet { background: var(--violet-lt); border-color: var(--violet); }
.result-box.violet .result-value,
.result-box.violet .val,
.result-box.violet h3 { color: var(--violet); }

.result-box.sky    { background: var(--sky-lt);    border-color: var(--sky); }
.result-box.sky    .result-value,
.result-box.sky    .val,
.result-box.sky    h3 { color: var(--sky); }

/* ── 10. BADGE ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge-teal   { background: var(--teal-lt);   color: var(--teal-dk); }
.badge-rose   { background: var(--rose-lt);   color: var(--rose); }
.badge-amber  { background: var(--amber-lt);  color: var(--amber); }
.badge-violet { background: var(--violet-lt); color: var(--violet); }
.badge-sky    { background: var(--sky-lt);    color: var(--sky); }
.badge-lime   { background: var(--lime-lt);   color: var(--lime); }
.badge-pink   { background: var(--pink-lt);   color: var(--pink); }
.badge-orange { background: var(--orange-lt); color: var(--orange); }

/* ── 11. AD SLOTS ─────────────────────────────────────────────────── */
.ad-banner {
  text-align: center;
  padding: .5rem 0;
  margin-block: 1.5rem;
}
.ad-label {
  font-size: .6875rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .35rem;
}
.ad-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  color: #94a3b8;
  font-size: .8125rem;
  font-family: monospace;
}
.ad-h   { width: 728px; height: 90px; max-width: 100%; }
.ad-rect { width: 300px; height: 250px; max-width: 100%; }

/* ── 12. BREADCRUMB ───────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  font-size: .8125rem;
  color: var(--ink-2);
  margin-bottom: 1.25rem;
  padding: .5rem 0;
}
.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #9ca3af; }

/* ── 13. REACTIONS ────────────────────────────────────────────────── */
.reactions {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-block: 1.5rem;
}
.reactions-label { font-size: .875rem; font-weight: 600; color: var(--ink-2); margin-right: .375rem; }

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .875rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: .875rem;
  cursor: pointer;
  transition: all .2s;
  min-height: 36px;
}
.reaction-btn:hover { border-color: var(--teal); background: var(--teal-lt); }
.reaction-btn.active { border-color: var(--teal); background: var(--teal-lt); font-weight: 600; }
.reaction-count { font-weight: 600; }

/* ── 14. FAQ ──────────────────────────────────────────────────────── */
.faq, .faq-section { margin-block: 2rem; }
.faq h2, .faq-section h2 { margin-bottom: 1.25rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
}
/* .faq-question is an alias for .faq-q used in older tool pages */
.faq-q, .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.125rem;
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
  font-size: .9375rem;
  gap: .5rem;
  list-style: none;
  user-select: none;
  width: 100%;
  text-align: left;
  border: none;
  font-family: var(--font-body);
  color: var(--ink);
}
.faq-q:hover, .faq-question:hover { background: var(--bg); }
.faq-q::after, .faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-q::after,
.faq-item.open .faq-question::after { transform: rotate(45deg); }
/* .faq-answer is an alias for .faq-a used in older tool pages */
.faq-a, .faq-answer {
  padding: 0 1.125rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: .9375rem;
  color: var(--ink-2);
}
.faq-item.open .faq-a,
.faq-item.open .faq-answer { max-height: 600px; padding: .875rem 1.125rem 1.125rem; }

/* ── 15. SIDEBAR ──────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.sidebar-widget h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .625rem;
  border-bottom: 2px solid var(--border);
  color: var(--ink);
}

.related-tools { list-style: none; padding: 0; margin: 0; }
.related-tools li { margin-bottom: .5rem; }
.related-tools a {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--ink);
  padding: .4rem .5rem;
  border-radius: var(--radius);
  transition: background .15s;
}
.related-tools a:hover { background: var(--teal-lt); text-decoration: none; }

/* Newsletter widget */
.newsletter-form { display: flex; flex-direction: column; gap: .625rem; margin-top: .75rem; }
.newsletter-form input {
  padding: .6rem .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: .9rem;
  min-height: 44px;
}
.newsletter-form input:focus { outline: none; border-color: var(--teal); }

/* ── 16. TOOL HEADER ──────────────────────────────────────────────── */
.tool-header { margin-bottom: 1.75rem; }
.tool-header .badge { margin-bottom: .875rem; }
.tool-header h1 { margin-bottom: .5rem; }
.tool-header p { font-size: 1.0625rem; color: var(--ink-2); max-width: 68ch; }

/* ── 17. CONTENT SECTION ──────────────────────────────────────────── */
.content-section { margin-block: 2.5rem; }
.content-section h2 { margin-bottom: 1rem; }
.content-section h3 { margin-top: 1.5rem; margin-bottom: .5rem; color: var(--ink); }
.content-section p  { color: var(--ink-2); max-width: 72ch; } /* line-length control */
.content-section ul,
.content-section ol { color: var(--ink-2); }
.content-section li { line-height: 1.7; }

/* ── 18. COMMENTS SECTION ─────────────────────────────────────────── */
.comments-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.comments-section h2 { margin-bottom: 1.25rem; }

/* ── 19. HERO ─────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 60%, #134e4a 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  text-align: center;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.hero p { font-size: 1.125rem; color: rgba(255,255,255,.85); max-width: 56ch; margin: .75rem auto 2rem; }

/* Hero search bar — lives outside .hero to avoid overflow:hidden clipping */
.hero-search-wrap {
  padding: 0 1.5rem;
  margin-top: -1.75rem;      /* pulls it up, visually bridging from hero */
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.hero-search {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 999px;
  overflow: visible;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: .875rem 1.25rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  border-radius: 999px 0 0 999px;
}
.hero-search button {
  background: var(--teal-dk);
  color: #fff;
  border: none;
  padding: .875rem 1.5rem;
  border-radius: 0 999px 999px 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: .9375rem;
  transition: background .2s;
}
.hero-search button:hover { background: #134e4a; }
.hero-search:focus-within { box-shadow: 0 0 0 4px rgba(255,255,255,.18), var(--shadow-lg); transition: box-shadow .25s; }

#hero-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
  display: none;
  text-align: left;
}
#hero-search-results.open { display: block; }

/* ── 20. SECTION HEADINGS ─────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.375rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.section-head h2 { margin: 0; }
.section-head a { font-size: .875rem; color: var(--teal); }

/* ── 21. FEATURE LIST ─────────────────────────────────────────────── */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .625rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; }
.feature-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: .1rem; }

/* ── 22. HOME SECTIONS ────────────────────────────────────────────── */
.section-pad { padding-block: 3rem; }
.section-pad:nth-child(odd) { background: var(--bg); }
.section-pad:nth-child(even) { background: var(--surface); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.why-item { text-align: center; padding: 1.5rem; }
.why-icon { font-size: 2.5rem; margin-bottom: .875rem; }
.why-item h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.why-item p { font-size: .875rem; color: var(--ink-2); }

/* ── 23. TABLE STYLES ─────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin-block: 1.25rem;
}
.data-table th {
  background: var(--bg);
  padding: .65rem .875rem;
  text-align: left;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-2);
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: .65rem .875rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }

/* ── 24. CALLOUT ──────────────────────────────────────────────────── */
.callout {
  display: flex;
  gap: .875rem;
  padding: 1rem 1.125rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
  background: var(--teal-lt);
  margin-block: 1.25rem;
}
.callout-icon { font-size: 1.25rem; flex-shrink: 0; }
.callout p { margin: 0; font-size: .9375rem; }
.callout.warning { border-color: var(--amber); background: var(--amber-lt); }
.callout.info    { border-color: var(--sky);   background: var(--sky-lt); }

/* ── 25. PROGRESS / RANGE ─────────────────────────────────────────── */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

/* ── 26. COPY BUTTON ──────────────────────────────────────────────── */
.copy-wrap { position: relative; }
.copy-btn {
  position: absolute;
  top: .5rem; right: .5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .3rem .6rem;
  font-size: .75rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background .15s;
}
.copy-btn:hover { background: var(--teal-lt); }
.copy-btn.copied { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ── 27. STAT ROW ─────────────────────────────────────────────────── */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-block: 1rem;
}
.stat-item { display: flex; flex-direction: column; align-items: center; min-width: 90px; }
.stat-val { font-size: 1.5rem; font-weight: 800; color: var(--teal); font-variant-numeric: tabular-nums; }
.stat-lbl { font-size: .75rem; color: var(--ink-2); text-align: center; margin-top: .1rem; }

/* ── 28. MOBILE BREAKPOINTS ───────────────────────────────────────── */
@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar-widget { flex: 1 1 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .desktop-nav { display: none; }
  .nav-search { display: none; }
  .hamburger { display: flex; align-items: center; }
  .hero { padding: 2.5rem 0 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .ad-h { width: 100%; height: auto; min-height: 60px; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-search { border-radius: var(--radius); }
  .hero-search input { border-radius: var(--radius) 0 0 var(--radius); }
  .hero-search button { border-radius: 0 var(--radius) var(--radius) 0; }
  .reactions { gap: .4rem; }
  .reaction-btn { padding: .35rem .6rem; font-size: .8125rem; }
}

/* ── 29. FORM ALIASES ─────────────────────────────────────────────── */
/* .input-group is an alias for .form-group used in some tool pages */
.input-group {
  margin-bottom: 1.125rem;
}
.input-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--ink);
}

/* Required field indicator — add data-required to label */
.form-group label[data-required]::after,
.input-group label[data-required]::after {
  content: ' *';
  color: var(--rose);
  font-weight: 700;
}

/* .tool-inputs — form section inside .tool-card */
.tool-inputs {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-bottom: 1rem;
}

/* ── 30. RESULT ALIASES ───────────────────────────────────────────── */
/* .result-title — heading inside result-box (alias for .result-box h3 styling) */
.result-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: .875rem;
  color: var(--teal-dk);
}
.result-box.rose   .result-title { color: var(--rose); }
.result-box.amber  .result-title { color: var(--amber); }
.result-box.violet .result-title { color: var(--violet); }
.result-box.sky    .result-title { color: var(--sky); }

/* ── 31. HOMEPAGE LAYOUT HELPERS ──────────────────────────────────── */
/* Why-section 2-col layout (main content + ads aside) */
.why-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 1080px) {
  .why-layout { grid-template-columns: 1fr; }
  .why-layout > aside { display: none; }
}

/* Why section heading */
.why-heading { margin-bottom: 1.5rem; }

/* Tool link card subtitle line */
.tl-sub {
  font-size: .8rem;
  color: var(--ink-2);
  margin-top: .1rem;
}

/* ── 32. FOCUS STYLES ─────────────────────────────────────────────── */
/* Remove default outline for mouse/pointer users */
:focus:not(:focus-visible) { outline: none; }
/* Restore clear outline for keyboard users */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Buttons and inputs get a ring instead of outline */
.btn:focus-visible,
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible,
.reaction-btn:focus-visible,
.faq-q:focus-visible,
.faq-question:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13,148,136,.35);
}

/* ── SOCIAL SHARE ─────────────────────────────────────────────────────── */
#share {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.share-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-right: .25rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  line-height: 1;
}
.share-btn:hover { opacity: .85; transform: translateY(-1px); }
.share-x       { background: #000; color: #fff; }
.share-fb      { background: #1877f2; color: #fff; }
.share-li      { background: #0a66c2; color: #fff; }
.share-wa      { background: #25d366; color: #fff; }
.share-copy    { background: var(--surface); color: var(--ink); border: 1px solid var(--border); font-size: 1rem; }
.share-native  { background: var(--teal); color: #fff; width: auto; padding: 0 .75rem; border-radius: 999px; font-size: .8125rem; }

/* ── 33. REDUCED MOTION (accessibility) ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .result-box.show { animation: none; }
}

/* ── 34. HERO POLISH ──────────────────────────────────────────────── */
/* Subtle grain texture on hero for depth */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  right: -150px;
  top: -200px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.hero { position: relative; overflow: hidden; }

/* ── 35. NAV ACTIVE INDICATOR ─────────────────────────────────────── */
.nav-links a.active {
  background: var(--teal-lt);
  color: var(--teal-dk);
  position: relative;
}

/* ── 36. TOOL HEADER DIVIDER ──────────────────────────────────────── */
.tool-header {
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.75rem;
}

/* ── 37. SIDEBAR WIDGET HOVER (related tools) ─────────────────────── */
.sidebar-widget { transition: box-shadow .2s; }

/* ── 38. NEWSLETTER FORM POLISH ───────────────────────────────────── */
.newsletter-form input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,.15);
}
.newsletter-form input { background: var(--bg); }

/* ── 39. REACTION BUTTON ACTIVE SCALE ────────────────────────────── */
.reaction-btn { touch-action: manipulation; }
.reaction-btn:active { transform: scale(0.95); }

/* ── 40. SEARCH RESULT ACTIVE STATE ──────────────────────────────── */
.search-result-item:focus {
  background: var(--teal-lt);
  outline: none;
  color: var(--teal-dk);
}

/* ══════════════════════════════════════════════════════════════════════
   DARK MODE
   ══════════════════════════════════════════════════════════════════════ */

/* ── Dark token overrides ─────────────────────────────────────────── */
:root[data-theme="dark"] {
  /* Core palette — warmer, richer dark surfaces */
  --bg:       #0b0e18;
  --surface:  #141825;
  --ink:      #e6eaf3;
  --ink-2:    #8b93a8;
  --border:   #242c3e;
  --shadow:   0 1px 3px rgba(0,0,0,.25), 0 4px 16px rgba(0,0,0,.35);
  --shadow-lg: 0 4px 8px rgba(0,0,0,.3), 0 16px 48px rgba(0,0,0,.5);

  /* Brighter primary accent for link/button contrast (WCAG AA on dark bg) */
  --teal:     #14b8a6;
  --teal-dk:  #0d9488;

  /* Stronger accent-lt variants — more visible on dark surfaces */
  --teal-lt:   rgba(20,184,166,.20);
  --rose-lt:   rgba(251,113,133,.16);
  --amber-lt:  rgba(251,191,36,.15);
  --violet-lt: rgba(167,139,250,.16);
  --sky-lt:    rgba(56,189,248,.15);
  --lime-lt:   rgba(163,230,53,.14);
  --pink-lt:   rgba(244,114,182,.15);
  --orange-lt: rgba(251,146,60,.14);
}

/* ── Dark component overrides ─────────────────────────────────────── */
[data-theme="dark"] .site-header            { background: rgba(11,14,24,.95); }
[data-theme="dark"] .site-footer            { background: #070912; }
[data-theme="dark"] .footer-brand p         { color: #64748b; }
[data-theme="dark"] .footer-col a           { color: var(--ink-2); }
[data-theme="dark"] .footer-bottom          { color: #475569; border-color: #1c2236; }
[data-theme="dark"] .hero                   { background: linear-gradient(135deg, #0f766e 0%, #0c5c54 60%, #094640 100%); }
[data-theme="dark"] .nav-search             { background: var(--bg); border-color: var(--border); }
[data-theme="dark"] .nav-search input       { color: var(--ink); }
[data-theme="dark"] .mobile-menu            { border-color: var(--border); }
[data-theme="dark"] .search-result-item     { color: var(--ink); background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .search-result-item:hover { background: rgba(20,184,166,.14); }
[data-theme="dark"] mark                    { background: rgba(20,184,166,.22) !important; color: #5eead4 !important; }
[data-theme="dark"] .ad-slot                { background: var(--surface); color: #4a5568; border-color: var(--border); }
[data-theme="dark"] .result-item            { border-color: rgba(255,255,255,.07); background: rgba(255,255,255,.04); }
[data-theme="dark"] .callout                { filter: brightness(.88); }
[data-theme="dark"] .hero-search            { box-shadow: 0 8px 32px rgba(0,0,0,.5); }
[data-theme="dark"] .hero-search input      { background: var(--surface); color: var(--ink); }
[data-theme="dark"] .section-pad:nth-child(odd)  { background: var(--bg); }
[data-theme="dark"] .section-pad:nth-child(even) { background: var(--surface); }
[data-theme="dark"] input[type="range"]     { background: var(--border); }
[data-theme="dark"] .faq-q,
[data-theme="dark"] .faq-question           { color: var(--ink); }
[data-theme="dark"] .reaction-btn           { background: var(--surface); border-color: #232a3c; color: var(--ink); }
[data-theme="dark"] .reaction-btn:hover     { border-color: var(--teal); background: rgba(20,184,166,.18); }
[data-theme="dark"] .reaction-btn.active    { border-color: var(--teal); background: rgba(20,184,166,.22); }

/* ── Theme toggle button ──────────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  flex-shrink: 0;
  padding: 0;
  touch-action: manipulation;
}
.theme-toggle:hover { background: var(--teal-lt); color: var(--teal); border-color: var(--teal); }
.theme-toggle svg { pointer-events: none; display: block; }
/* Show moon in light mode, sun in dark mode */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ══════════════════════════════════════════════════════════════════════
   MOBILE DRAWER (replaces dropdown)
   ══════════════════════════════════════════════════════════════════════ */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* Override old dropdown mobile-menu to be a side drawer */
.mobile-menu {
  position: fixed !important;
  top: 0; right: 0;
  height: 100%;
  width: min(300px, 88vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(0,0,0,.2);
  transform: translateX(110%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  z-index: 600;
  overflow-y: auto;
  padding: 0;
  display: block !important; /* always in DOM, controlled by transform */
}
.mobile-menu.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.drawer-header .logo { font-size: 1.125rem; }
.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--ink-2);
  transition: background .15s;
  touch-action: manipulation;
}
.drawer-close:hover { background: var(--bg); color: var(--ink); }
.drawer-body { padding: 1.25rem; }
.mobile-menu .nav-links {
  flex-direction: column;
  margin: 0 0 1.5rem;
  gap: .25rem;
}
.mobile-menu .nav-links a {
  font-size: .9375rem;
  padding: .65rem .75rem;
  border-radius: var(--radius);
  display: block;
  color: var(--ink);
  font-weight: 500;
}
.mobile-menu .nav-links a:hover { background: var(--teal-lt); color: var(--teal-dk); text-decoration: none; }

.drawer-search {
  margin-top: .5rem;
}
.drawer-search-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .5rem .75rem;
}
.drawer-search-wrap input {
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  width: 100%;
}
#drawer-search-results { margin-top: .5rem; }
#drawer-search-results .search-result-item { border-radius: var(--radius); border: none; margin-bottom: .25rem; }

/* ══════════════════════════════════════════════════════════════════════
   SKELETON LOADERS (font loading state)
   ══════════════════════════════════════════════════════════════════════ */

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

html.fonts-loading .tool-header h1,
html.fonts-loading .tool-header p,
html.fonts-loading .hero h1,
html.fonts-loading .hero p {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 6px;
  color: transparent !important;
  user-select: none;
}

/* ══════════════════════════════════════════════════════════════════════
   RESULT BOX ANIMATIONS
   ══════════════════════════════════════════════════════════════════════ */

@keyframes valuePop {
  0%   { opacity: .4; transform: scale(0.94) translateY(4px); }
  65%  { transform: scale(1.03) translateY(0); }
  100% { opacity: 1;  transform: scale(1) translateY(0); }
}

.result-value.animating,
.result-item .val.animating,
.result-item .result-value.animating {
  animation: valuePop .35s cubic-bezier(.34,1.56,.64,1);
}

/* ══════════════════════════════════════════════════════════════════════
   TYPOGRAPHY SCALE IMPROVEMENTS
   ══════════════════════════════════════════════════════════════════════ */

h1 { letter-spacing: -0.02em; line-height: 1.18; }
h2 { letter-spacing: -0.015em; }
h3 { letter-spacing: -0.01em; }
.hero h1 { letter-spacing: -0.03em; line-height: 1.1; }

/* Improved body line-height for readability */
.content-section p,
.faq-a p,
.faq-answer p { line-height: 1.75; }

/* Tool header description */
.tool-header p { line-height: 1.6; }

/* Better badge label spacing */
.badge { letter-spacing: .05em; }

/* ══════════════════════════════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════════════════════════════ */

.about-page { max-width: 860px; }

.about-header { margin-bottom: 2rem; }
.about-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }

/* Tool grid on about page */
.about-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.about-cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.about-cat-title {
  font-weight: 700;
  font-size: .9375rem;
  color: var(--ink);
  margin-bottom: .625rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--teal-lt);
}

.about-tool-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.about-tool-list a {
  font-size: .875rem;
  color: var(--teal);
  text-decoration: none;
}
.about-tool-list a:hover { text-decoration: underline; }

/* Promise section */
.promise-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: .75rem;
}

.promise-item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
}

.promise-title {
  font-weight: 700;
  color: var(--ink);
}

.promise-body {
  font-size: .9375rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* CTA box */
.about-cta {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin-top: 2rem;
  box-shadow: var(--shadow);
}
.about-cta h2 { margin-bottom: .75rem; }
.about-cta p { color: var(--ink-2); margin-bottom: 1.25rem; }

/* ══════════════════════════════════════════════════════════════════════
   CONTACT / STATIC PAGES
   ══════════════════════════════════════════════════════════════════════ */

.static-page { max-width: 720px; }

/* ══════════════════════════════════════════════════════════════════════
   HOMEPAGE v2 — tag-filtered tool grid
   ══════════════════════════════════════════════════════════════════════ */

/* Hero pill badge */
@keyframes hero-shimmer {
  0%, 100% { background-position: -200% 0; }
  50% { background-position: 200% 0; }
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(90deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.12) 100%);
  background-size: 200% 100%;
  animation: hero-shimmer 4s ease-in-out infinite;
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  padding: .35rem 1rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Hero stats strip */
.hero-stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  max-width: 480px;
  margin: 1.75rem auto 0;
  overflow: hidden;
}
.hero-stat-box {
  flex: 1;
  min-width: 110px;
  padding: .9rem 1.25rem;
  border-right: 1px solid rgba(255,255,255,.15);
  text-align: center;
}
.hero-stat-box:last-child { border-right: none; }
.hero-stat-n { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: #fff; line-height: 1; }
.hero-stat-l { font-size: .72rem; color: rgba(255,255,255,.7); margin-top: .25rem; font-weight: 500; }

/* Features bar (contains feat-items + trending strip) */
.feat-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.feat-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.feat-item { display: flex; align-items: center; gap: .65rem; padding: .5rem; border-radius: var(--radius); transition: background .2s, transform .2s; }
.feat-item:hover { background: var(--teal-lt); transform: translateY(-1px); }
.feat-ico {
  width: 32px; height: 32px;
  flex-shrink: 0;
  background: var(--teal-lt);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}
.feat-ttl { font-size: .82rem; font-weight: 600; color: var(--ink); }
.feat-dsc { font-size: .72rem; color: var(--ink-2); margin-top: .1rem; }

/* Featured / trending tools strip — lives inside .feat-bar as a second row */
.featured-strip {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .6rem 1.5rem .85rem;
  border-top: 1px solid var(--border);
}
.feat-strip-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-2);
  white-space: nowrap;
  padding-right: .25rem;
  flex-shrink: 0;
}
.feat-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .65rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: .775rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: all .18s;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  white-space: nowrap;
}
.feat-chip:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-lt); text-decoration: none; }

/* Home page layout */
.home-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 296px;
  gap: 2.5rem;
  align-items: start;
}

/* Browse section heading */
.browse-head { margin-bottom: 1.5rem; }
.browse-title { font-size: 1.5rem; margin-bottom: .3rem; }
.browse-sub   { font-size: .875rem; color: var(--ink-2); margin: 0; }

/* Category filter pills */
.cat-pills { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  box-shadow: var(--shadow);
  font-family: inherit;
}
.cat-pill:hover  { border-color: var(--teal); color: var(--teal); background: var(--teal-lt); }
.cat-pill.active { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 2px 10px rgba(13,148,136,.25); }

/* Tool sections */
.tool-section { margin-bottom: 2.5rem; }
.tool-section.hidden { display: none !important; }
.tool-sec-head {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.1rem;
  padding-bottom: .75rem;
  border-bottom: 1.5px solid var(--border);
}
.tool-sec-ico {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.tool-sec-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.tool-sec-count {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: .15rem .55rem;
  border-radius: 999px;
}

/* Tool grid */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }

/* Homepage tool card */
.htc {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1rem;
  position: relative;
  overflow: hidden;
  transition: all .2s ease;
  box-shadow: var(--shadow);
}
.htc::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--htc-accent, var(--teal));
  opacity: 0;
  transition: opacity .2s;
}
.htc:hover { border-color: var(--htc-accent, var(--teal)); box-shadow: var(--shadow-lg), 0 0 0 1px var(--htc-accent, var(--teal)); transform: translateY(-3px); }
.htc:hover::before { opacity: 1; }
.htc.hidden { display: none !important; }
.htc-ico  { font-size: 1.45rem; margin-bottom: .55rem; display: block; }
.htc-name { font-size: .875rem; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: .3rem; }
.htc-desc { font-size: .75rem; color: var(--ink-2); line-height: 1.45; }
.htc-badge {
  position: absolute;
  top: .55rem; right: .55rem;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .15rem .45rem;
  border-radius: 999px;
}
.htc-badge.b-hot  { background: #fef2f2; color: var(--rose);  border: 1px solid #fecdd3; }
.htc-badge.b-new  { background: var(--teal-lt); color: var(--teal); border: 1px solid var(--teal); }
.htc-badge.b-uk   { background: var(--sky-lt);  color: var(--sky);  border: 1px solid #bfdbfe; }
.htc-badge.b-usa  { background: var(--amber-lt); color: var(--amber); border: 1px solid #fde68a; }
.htc-badge.b-soon { background: var(--bg); color: var(--ink-2); border: 1px solid var(--border); }

/* Coming soon stub cards */
.htc-coming { opacity: .55; filter: grayscale(.3); cursor: default; }
.htc-coming:hover { transform: none !important; box-shadow: var(--shadow) !important; border-color: var(--border) !important; }
.htc-coming:hover::before { opacity: 0 !important; }

/* Section accent (top border colour per category) */
.sec-business .htc { --htc-accent: var(--rose); }
.sec-text      .htc { --htc-accent: var(--amber); }
.sec-lifestyle .htc { --htc-accent: var(--violet); }
.sec-finance   .htc { --htc-accent: var(--sky); }
.sec-health    .htc { --htc-accent: var(--lime); }
.sec-math      .htc { --htc-accent: var(--orange); }
.sec-web       .htc { --htc-accent: var(--pink); }
.sec-date      .htc { --htc-accent: var(--teal); }

/* Section icon backgrounds */
.sec-ico-business  { background: var(--rose-lt); }
.sec-ico-text      { background: var(--amber-lt); }
.sec-ico-lifestyle { background: var(--violet-lt); }
.sec-ico-finance   { background: var(--sky-lt); }
.sec-ico-health    { background: var(--lime-lt); }
.sec-ico-math      { background: var(--orange-lt); }
.sec-ico-web       { background: var(--pink-lt); }
.sec-ico-date      { background: var(--teal-lt); }

/* Home sidebar widgets */
.home-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.hsw { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.hsw-head {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--bg);
}
.hsw-body { padding: 1rem; }

/* Popular tools list */
.pop-list { display: flex; flex-direction: column; gap: .45rem; }
.pop-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .75rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: all .18s;
  font-size: .8rem;
  font-weight: 500;
}
.pop-item:hover { background: var(--teal-lt); border-color: var(--teal); color: var(--teal); }
.pop-rank { font-weight: 700; color: var(--ink-2); font-size: .7rem; width: 16px; flex-shrink: 0; }
.pop-ico  { font-size: 1rem; }
.pop-name { flex: 1; }

/* Suggest / newsletter inputs inside home sidebar */
.suggest-form  { display: flex; flex-direction: column; gap: .55rem; }
.suggest-note  { font-size: .75rem; color: var(--ink-2); line-height: 1.6; margin-bottom: .25rem; }
.suggest-input {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .6rem .85rem;
  font-family: inherit;
  font-size: .83rem;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.suggest-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,.1); }
.suggest-input::placeholder { color: var(--ink-2); }

/* Why TrueTools section */
.why-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
  text-align: center;
}
.why-section h2 { margin-bottom: .5rem; }
.why-sub { color: var(--ink-2); font-size: 1rem; max-width: 52ch; margin: 0 auto 0; }
.why-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  text-align: left;
}
.why-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.why-card-ico { font-size: 1.75rem; margin-bottom: .7rem; }
.why-card h3  { font-size: 1rem; margin-bottom: .35rem; }
.why-card p   { font-size: .84rem; color: var(--ink-2); line-height: 1.6; margin: 0; }

/* Dark mode — homepage additions */
[data-theme="dark"] .feat-bar         { background: #0c1020; }
[data-theme="dark"] .hsw-head         { background: #0c1020; }
[data-theme="dark"] .pop-item         { background: #0c1020; }
[data-theme="dark"] .suggest-input    { background: #0c1020; }
[data-theme="dark"] .tool-sec-count   { background: #0c1020; }
[data-theme="dark"] .htc-badge.b-hot  { background: rgba(251,113,133,.14);  border-color: rgba(251,113,133,.28); }
[data-theme="dark"] .htc-badge.b-uk   { background: rgba(56,189,248,.14);   border-color: rgba(56,189,248,.28); }
[data-theme="dark"] .htc-badge.b-usa  { background: rgba(251,191,36,.13);   border-color: rgba(251,191,36,.26); }
[data-theme="dark"] .why-section      { background: #080b14; }
[data-theme="dark"] .why-card         { background: #0c1020; }
[data-theme="dark"] .feat-chip        { background: #0c1020; }

/* Responsive — homepage */
@media (max-width: 1080px) {
  .home-wrap { grid-template-columns: 1fr; }
  .home-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .feat-bar-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .home-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-bar-inner { grid-template-columns: 1fr 1fr; }
  .cat-pills { gap: .3rem; }
  .cat-pill  { font-size: .75rem; padding: .35rem .7rem; }
}

/* PRINT STYLES ─────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .ad-banner, .ad-slot, .sidebar,
  .reactions, #share, .comments-section, .newsletter-form,
  .hamburger, .faq, .breadcrumb { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .container { max-width: 100%; padding: 0; }
  .layout { display: block; }
  .tool-card { box-shadow: none; border: 1px solid #ccc; }
  .result-box { border: 1px solid #ccc; background: #f9f9f9 !important; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #555; }
  a[href^="/"]:after, a[href^="#"]:after { content: ""; }
}
