/* ═══════════════════════════════════════════════════════════════════
   TOOLKITI.COM — Design System v5
   
   Direction: Swiss Utility — precision grid, confident typography,
   clean white space. Tools are serious — the design says so.
   
   Fonts: Plus Jakarta Sans (headings) · DM Sans (body) · JetBrains Mono
   Palette: Off-white canvas · Near-black ink · Electric indigo accent
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {

  /* ── Aliases for legacy compatibility ── */
  --line:    var(--stroke);
  --line-2:  var(--stroke-2);
  --line-3:  var(--stroke-3);

  /* ── Canvas ── */
  --canvas:      #F7F6F3;          /* warm off-white — not clinical */
  --canvas-2:    #EFEDE9;          /* slightly darker warm tone */
  --white:       #FFFFFF;
  --white-2:     #FAFAF8;

  /* ── Borders ── */
  --stroke:      #E4E2DC;
  --stroke-2:    #CECAB9;          /* heavier, for emphasis */
  --stroke-3:    #B5B1A3;          /* darkest strokes */

  /* ── Ink (text) ── */
  --ink:         #111110;          /* near-black, warm */
  --ink-2:       #4B4845;          /* secondary text */
  --ink-3:       #96938C;          /* muted/labels */
  --ink-inv:     #FFFFFF;

  /* ── The one accent: Electric Indigo ── */
  --vi:          #5B47E0;          /* primary action */
  --vi-deep:     #4836C9;          /* hover/pressed */
  --vi-xlight:   #F0EEFF;          /* light bg tints */
  --vi-light:    #DDD8FF;          /* borders on light bg */
  --vi-ink:      #2D1F8F;          /* text on light bg */

  /* ── Semantic ── */
  --emerald:     #059669;
  --emerald-bg:  #ECFDF5;
  --emerald-bd:  #A7F3D0;
  --crimson:     #DC2626;
  --crimson-bg:  #FEF2F2;
  --crimson-bd:  #FECACA;
  --amber:       #D97706;
  --amber-bg:    #FFFBEB;
  --amber-bd:    #FDE68A;

  /* ── Typography ── */
  --f-head:  'Plus Jakarta Sans', system-ui, sans-serif;
  --f-body:  'DM Sans', system-ui, sans-serif;
  --f-mono:  'JetBrains Mono', 'Cascadia Code', monospace;

  /* ── Scale ── */
  --r-xs:  4px;
  --r-sm:  7px;
  --r:     11px;
  --r-lg:  15px;
  --r-xl:  20px;
  --r-2xl: 28px;
  --max:   1160px;

  /* ── Shadows ── */
  --sh-xs: 0 1px 2px rgba(17,17,16,.05);
  --sh-sm: 0 2px 5px rgba(17,17,16,.07), 0 1px 2px rgba(17,17,16,.04);
  --sh:    0 4px 14px rgba(17,17,16,.09), 0 2px 4px rgba(17,17,16,.04);
  --sh-lg: 0 12px 40px rgba(17,17,16,.12), 0 4px 10px rgba(17,17,16,.05);
  --sh-vi: 0 4px 16px rgba(91,71,224,.28);

  /* ── Motion ── */
  --ease:     cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(0,.4,.6,1);
  --fast:     .12s;
  --mid:      .2s;
  --slow:     .32s;
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ═══════════════════════════════════════════════════
   HEADER + MEGA MENU NAVIGATION SYSTEM
   ═══════════════════════════════════════════════════ */

header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(247,246,243,.96);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border-bottom: 1px solid var(--stroke);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 0;
}

/* ── Logo ─────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.4px;
  color: var(--ink);
  flex-shrink: 0;
  margin-right: 32px;
  text-decoration: none;
}
.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--vi);
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: -.5px;
  box-shadow: 0 2px 8px rgba(91,71,224,.35);
}
.logo em { font-style: normal; color: var(--vi); }

/* ── Primary Nav ─────────────────────────────────── */
.nav-primary {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
  height: 100%;
}

/* Each nav item with potential dropdown */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 13px;
  height: 100%;
  font-family: var(--f-head);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 0;
  transition: color var(--fast) var(--ease);
  white-space: nowrap;
  letter-spacing: -.1px;
  position: relative;
}
/* Active underline indicator */
.nav-trigger::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--vi);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform var(--mid) var(--ease);
}
.nav-item:hover .nav-trigger,
.nav-item.open .nav-trigger { color: var(--ink); }
.nav-item:hover .nav-trigger::after,
.nav-item.open .nav-trigger::after { transform: scaleX(1); }

.nav-trigger svg {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
  transition: transform var(--mid) var(--ease), color var(--fast) var(--ease);
  flex-shrink: 0;
}
.nav-item:hover .nav-trigger svg,
.nav-item.open .nav-trigger svg {
  transform: rotate(180deg);
  color: var(--vi);
}

/* Plain link (no dropdown) */
.nav-link {
  display: flex;
  align-items: center;
  padding: 0 13px;
  height: 100%;
  font-family: var(--f-head);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color var(--fast) var(--ease);
  white-space: nowrap;
  letter-spacing: -.1px;
}
.nav-link:hover { color: var(--ink); }

/* ── Mega Dropdown Panel ──────────────────────────── */
.mega-drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  box-shadow: 0 20px 60px rgba(17,17,16,.14), 0 4px 12px rgba(17,17,16,.06);
  padding: 20px;
  min-width: 560px;
  max-width: 680px;
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition:
    opacity var(--mid) var(--ease),
    visibility var(--mid) var(--ease),
    transform var(--mid) var(--ease);
  pointer-events: none;
  z-index: 600;
}
/* Small arrow connector */
.mega-drop::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid var(--stroke);
  border-top: 1px solid var(--stroke);
  border-radius: 2px 0 0 0;
  transform: translateX(-50%) rotate(45deg);
}
.nav-item:hover .mega-drop,
.nav-item.open .mega-drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

/* Column layout inside mega drop */
.mega-drop-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.mega-drop-inner.cols-2 { grid-template-columns: repeat(2, 1fr); }
.mega-drop-inner.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Section header inside drop */
.mega-section-title {
  grid-column: 1 / -1;
  font-family: var(--f-head);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: var(--ink-3);
  padding: 4px 10px 6px;
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 4px;
}

/* Each tool link inside dropdown */
.mega-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r);
  text-decoration: none;
  color: var(--ink-2);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
  cursor: pointer;
}
.mega-item:hover {
  background: var(--vi-xlight);
  color: var(--vi-ink);
}
.mega-item:hover .mega-item-icon {
  background: var(--vi-light);
  border-color: var(--vi-light);
}

.mega-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--canvas);
  border: 1px solid var(--stroke);
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.mega-item-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mega-item-name {
  font-family: var(--f-head);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mega-item:hover .mega-item-name { color: var(--vi-ink); }
.mega-item-desc {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer strip inside drop — "View all" link */
.mega-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
}
.mega-footer-text {
  font-size: 12px;
  color: var(--ink-3);
}
.mega-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--vi);
  padding: 5px 12px;
  border: 1.5px solid var(--vi-light);
  border-radius: var(--r-sm);
  background: var(--vi-xlight);
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.mega-footer-link:hover {
  background: var(--vi-light);
  border-color: var(--vi);
}

/* ── Right side nav actions ───────────────────────── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Hamburger (mobile) ───────────────────────────── */
.nav-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  background: none;
  border: 1.5px solid var(--stroke-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.nav-hamburger:hover { background: var(--canvas-2); border-color: var(--stroke-3); }
.nav-hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink-2);
  border-radius: 2px;
  transition: transform var(--mid) var(--ease), opacity var(--fast) var(--ease), width var(--mid) var(--ease);
}
/* X animation when open */
.nav-hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile drawer ────────────────────────────────── */
/* Overlay — always in DOM, hidden via opacity so transitions work */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,17,16,.45);
  z-index: 480;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--mid) var(--ease);
}
.nav-mobile-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* Drawer — slides in from right */
.nav-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 90vw);
  background: var(--white);
  z-index: 490;
  transform: translateX(100%);
  transition: transform var(--slow) var(--ease);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(17,17,16,.12);
}
.nav-mobile-drawer.open { transform: translateX(0); }

.mob-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--stroke);
  flex-shrink: 0;
}
.mob-close {
  width: 32px;
  height: 32px;
  background: var(--canvas);
  border: 1.5px solid var(--stroke-2);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  font-size: 16px;
  transition: background var(--fast) var(--ease);
}
.mob-close:hover { background: var(--canvas-2); }

.mob-body { padding: 12px 16px; flex: 1; }

.mob-category {
  margin-bottom: 4px;
}
.mob-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  background: none;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  font-family: var(--f-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  transition: background var(--fast) var(--ease);
  text-align: left;
}
.mob-cat-btn:hover { background: var(--canvas); }
.mob-cat-btn svg {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
  transition: transform var(--mid) var(--ease);
  flex-shrink: 0;
}
.mob-category.open .mob-cat-btn svg { transform: rotate(180deg); }
.mob-cat-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mob-cat-emoji {
  width: 26px;
  height: 26px;
  background: var(--vi-xlight);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.mob-links {
  display: none;
  flex-direction: column;
  gap: 1px;
  padding: 4px 0 8px 0;
}
.mob-category.open .mob-links { display: flex; }
.mob-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.mob-links a:hover { background: var(--vi-xlight); color: var(--vi-ink); }

.mob-divider { height: 1px; background: var(--stroke); margin: 8px 0; }

.mob-footer {
  padding: 16px;
  border-top: 1px solid var(--stroke);
  flex-shrink: 0;
}
.mob-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px;
  border-radius: var(--r);
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.mob-footer a:hover { background: var(--canvas); color: var(--ink); }

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--stroke);
  padding: 72px 28px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Grid lines background — crisp & purposeful */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--stroke) 1px, transparent 1px),
    linear-gradient(90deg, var(--stroke) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: .45;
  pointer-events: none;
}
/* Radial mask: clear center, fades to grid at edges */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 72% 65% at 50% 0%, var(--white) 32%, transparent 100%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

/* Eyebrow badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--vi-xlight);
  border: 1px solid var(--vi-light);
  color: var(--vi-ink);
  border-radius: 100px;
  padding: 5px 14px 5px 10px;
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .15px;
  margin-bottom: 26px;
}
.hero-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vi);
  flex-shrink: 0;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(.75); }
}

/* H1 — large, tight, purposeful */
.hero-h1 {
  font-family: var(--f-head);
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.06;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
/* The accent word gets a sharp underline drawn with a border */
.hero-h1 mark {
  background: none;
  color: var(--vi);
  position: relative;
  white-space: nowrap;
}
.hero-h1 mark::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--vi);
  border-radius: 2px;
  opacity: .35;
}

.hero-sub {
  font-size: 16.5px;
  color: var(--ink-2);
  max-width: 430px;
  margin: 0 auto 36px;
  line-height: 1.7;
  font-weight: 400;
}

/* Search */
.search-wrap {
  max-width: 490px;
  margin: 0 auto 26px;
  position: relative;
}
.search-wrap input {
  width: 100%;
  padding: 13px 46px 13px 48px;
  font-family: var(--f-body);
  font-size: 14.5px;
  background: var(--white);
  border: 1.5px solid var(--stroke-2);
  border-radius: var(--r-xl);
  color: var(--ink);
  outline: none;
  box-shadow: var(--sh-sm);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
  -webkit-appearance: none;
}
.search-wrap input::placeholder { color: var(--ink-3); }
.search-wrap input:focus {
  border-color: var(--vi);
  box-shadow: 0 0 0 3px rgba(91,71,224,.12), var(--sh-sm);
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
  width: 17px;
  height: 17px;
}
.search-clear {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--canvas-2);
  border: 1px solid var(--stroke);
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink-3);
  font-size: 11px;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.search-clear:hover { background: var(--stroke-2); color: var(--ink); }
.search-clear.on { display: flex; }

/* Trust row */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--canvas);
  border: 1px solid var(--stroke);
  border-radius: 100px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.trust-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
}

/* ─── TOOLS AREA ─────────────────────────────────────────────── */
.tools-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 28px 80px;
}

/* Category group */
.cat-block { margin-bottom: 52px; }
.cat-block:last-of-type { margin-bottom: 0; }

.cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.cat-icon {
  width: 32px;
  height: 32px;
  background: var(--vi-xlight);
  border: 1px solid var(--vi-light);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}
.cat-name {
  font-family: var(--f-head);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--ink);
}
.cat-count {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  background: var(--canvas-2);
  border: 1px solid var(--stroke);
  border-radius: 100px;
  padding: 2px 8px;
}
.cat-rule { flex: 1; height: 1px; background: var(--stroke); }

/* ─── TOOL CARDS ─────────────────────────────────────────────── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 10px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-xs);
  transition:
    border-color var(--mid) var(--ease),
    box-shadow var(--mid) var(--ease),
    transform var(--mid) var(--ease);
}
.tool-card:hover {
  border-color: var(--vi);
  box-shadow: 0 0 0 3px rgba(91,71,224,.08), var(--sh);
  transform: translateY(-2px);
}
/* The "indicator bar" — top edge, slides in from left */
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--vi) 0%, #9B8BF4 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--mid) var(--ease);
  border-radius: 0 0 2px 2px;
}
.tool-card:hover::before { transform: scaleX(1); }

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--canvas);
  border: 1px solid var(--stroke);
  display: grid;
  place-items: center;
  font-size: 19px;
  flex-shrink: 0;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.tool-card:hover .tool-icon {
  background: var(--vi-xlight);
  border-color: var(--vi-light);
}

.tool-name {
  font-family: var(--f-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -.1px;
}
.tool-desc {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.55;
  flex: 1;
}
.tool-cta {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--vi);
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.tool-card:hover .tool-cta,
.touch .tool-cta { opacity: 1; transform: none; }

/* ─── AD PLACEHOLDERS ────────────────────────────────────────── */
/* Ad containers — invisible when empty, auto-fill when AdSense is active */
.ad { display: block; }
.ad:empty { display: none; }   /* hides completely when no ad is loaded */
.ad-banner  { margin: 0 0 32px; min-height: 0; }
.ad-mid     { margin: 24px 0;   min-height: 0; }
.ad-sidebar { min-height: 0; width: 100%; }

/* ─── ABOUT STRIP ────────────────────────────────────────────── */
.about-strip {
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  margin-top: 36px;
}
.about-text h2 {
  font-family: var(--f-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--ink);
  margin-bottom: 10px;
}
.about-text p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.78;
  max-width: 480px;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex-shrink: 0;
}
.about-stat {
  background: var(--canvas);
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  padding: 16px 20px;
  text-align: center;
  min-width: 112px;
}
.about-stat-n {
  font-family: var(--f-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--vi);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 4px;
}
.about-stat-l {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--white);
  border-top: 1px solid var(--stroke);
}
.footer-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 28px 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .logo { margin-bottom: 10px; }
.footer-brand p {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.65;
  max-width: 220px;
}
.footer-col h4 {
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color var(--fast) var(--ease);
}
.footer-col a:hover { color: var(--vi); }
.footer-bottom {
  border-top: 1px solid var(--stroke);
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 12px; color: var(--ink-3); }

/* ─── TOOL PAGE ──────────────────────────────────────────────── */
.tool-page-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 28px 80px;
}

/* Breadcrumb */
.crumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.crumb a { transition: color var(--fast) var(--ease); }
.crumb a:hover { color: var(--vi); }
.crumb-sep { color: var(--stroke-2); font-size: 11px; }

/* Grid */
.page-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 22px;
  align-items: start;
}

/* ─── TOOL WIDGET ────────────────────────────────────────────── */
.widget {
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  animation: slideUp .22s var(--ease) both;
}
@keyframes slideUp {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

.widget-head {
  padding: 26px 28px 22px;
  border-bottom: 1px solid var(--stroke);
  position: relative;
  background: var(--white);
}
/* The signature 3-color gradient stripe */
.widget-head::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--vi) 0%, #9B8BF4 55%, #C4BBF9 100%);
}

.widget-h1 {
  font-family: var(--f-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--ink);
  margin-bottom: 5px;
}
.widget-sub {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.widget-body { padding: 24px 28px; }

/* ─── FORM ELEMENTS ──────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }

.label {
  display: block;
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .55px;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.label-row .label { margin-bottom: 0; }
.label-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
  font-family: var(--f-body);
  text-transform: none;
  letter-spacing: 0;
}

textarea,
input[type=text],
input[type=number],
input[type=date],
input[type=url],
input[type=email],
input[type=tel],
input[type=password],
select {
  width: 100%;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--stroke-2);
  border-radius: var(--r);
  padding: 10px 13px;
  outline: none;
  line-height: 1.5;
  transition:
    border-color var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
textarea:focus,
input:focus,
select:focus {
  border-color: var(--vi);
  box-shadow: 0 0 0 3px rgba(91,71,224,.11);
}
textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.65;
}
textarea.mono, input.mono { font-family: var(--f-mono); font-size: 13px; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%2396938C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 32px;
  cursor: pointer;
}

input[type=range] {
  width: 100%;
  accent-color: var(--vi);
  cursor: pointer;
  height: 4px;
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 17px;
  border-radius: var(--r);
  font-family: var(--f-head);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -.1px;
  transition: all var(--fast) var(--ease);
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--vi);
  color: var(--ink-inv);
  box-shadow: 0 1px 3px rgba(91,71,224,.2), 0 1px 2px rgba(0,0,0,.05);
}
.btn-primary:hover {
  background: var(--vi-deep);
  box-shadow: var(--sh-vi);
  transform: translateY(-1px);
}
.btn-primary:active { transform: scale(.98) translateY(0); }

.btn-secondary {
  background: var(--white);
  color: var(--ink-2);
  border: 1.5px solid var(--stroke-2);
  box-shadow: var(--sh-xs);
}
.btn-secondary:hover {
  background: var(--canvas);
  color: var(--ink);
  border-color: var(--stroke-3);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  padding: 8px 13px;
}
.btn-ghost:hover { background: var(--canvas-2); color: var(--ink); }

.btn-success { background: var(--emerald); color: white; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* ─── OUTPUT AREA ────────────────────────────────────────────── */
.output {
  background: var(--canvas);
  border: 1.5px solid var(--stroke-2);
  border-radius: var(--r);
  padding: 12px 15px;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.65;
  word-break: break-all;
  white-space: pre-wrap;
  min-height: 72px;
  color: var(--ink);
}

/* ─── STATS ──────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.stat {
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  padding: 13px 10px;
  text-align: center;
  box-shadow: var(--sh-xs);
}
.stat-n {
  display: block;
  font-family: var(--f-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--vi);
  line-height: 1;
  margin-bottom: 5px;
  letter-spacing: -.5px;
}
.stat-l {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ink-3);
  font-family: var(--f-head);
}

/* ─── STATUS MESSAGES ────────────────────────────────────────── */
.msg {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-radius: var(--r);
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.55;
  margin: 12px 0;
}
.msg-info    { background: var(--vi-xlight); border: 1px solid var(--vi-light); color: var(--vi-ink); }
.msg-success { background: var(--emerald-bg); border: 1px solid var(--emerald-bd); color: #064E3B; }
.msg-error   { background: var(--crimson-bg); border: 1px solid var(--crimson-bd); color: #7F1D1D; }
.msg-warning { background: var(--amber-bg);   border: 1px solid var(--amber-bd);   color: #78350F; }

/* ─── TOGGLE ─────────────────────────────────────────────────── */
.toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 500;
  user-select: none;
}
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
  width: 36px;
  height: 20px;
  background: var(--stroke-2);
  border-radius: 100px;
  position: relative;
  flex-shrink: 0;
  transition: background var(--fast) var(--ease);
  border: 1.5px solid var(--stroke-3);
}
.toggle input:checked ~ .toggle-track {
  background: var(--vi);
  border-color: var(--vi-deep);
}
.toggle-track::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: transform var(--fast) var(--ease);
}
.toggle input:checked ~ .toggle-track::after {
  transform: translate(16px,-50%);
}

/* ─── SIDEBAR ────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 14px; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--sh-xs);
}
.sidebar-card h3 {
  font-family: var(--f-head);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.sidebar-links { display: flex; flex-direction: column; gap: 1px; }
.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.sidebar-links a:hover { background: var(--canvas-2); color: var(--ink); }

/* ─── SEO CONTENT ────────────────────────────────────────────── */
.seo { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.seo-card {
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 22px 26px;
}
.seo-card h2 {
  font-family: var(--f-head);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.2px;
  color: var(--ink);
  margin-bottom: 14px;
}
.seo-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.78;
}

/* Steps */
.steps { list-style: none; counter-reset: s; display: flex; flex-direction: column; }
.steps li {
  counter-increment: s;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--stroke);
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.steps li:last-child { border-bottom: none; padding-bottom: 0; }
.steps li::before {
  content: counter(s);
  min-width: 24px;
  height: 24px;
  background: var(--vi);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Benefits */
.benefits { list-style: none; display: flex; flex-direction: column; }
.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--stroke);
  line-height: 1.5;
}
.benefits li:last-child { border-bottom: none; }
.benefit-check {
  width: 17px;
  height: 17px;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-bd);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--emerald);
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* FAQ */
.faq { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.faq-item {
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
  transition: border-color var(--fast) var(--ease);
}
.faq-item.open { border-color: var(--vi-light); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 17px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background var(--fast) var(--ease);
  line-height: 1.4;
  font-family: var(--f-head);
}
.faq-q:hover { background: var(--white-2); }
.faq-chevron {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--canvas-2);
  border: 1px solid var(--stroke);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--ink-3);
  transition: background var(--fast) var(--ease), transform .2s var(--ease);
}
.faq-item.open .faq-chevron {
  background: var(--vi-xlight);
  border-color: var(--vi-light);
  color: var(--vi);
  transform: rotate(180deg);
}
.faq-a {
  display: none;
  padding: 0 17px 14px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.75;
  border-top: 1px solid var(--stroke);
}
.faq-item.open .faq-a { display: block; }

/* Related */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 7px;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  background: var(--canvas);
  border: 1px solid var(--stroke);
  border-radius: var(--r);
  font-family: var(--f-head);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: all var(--fast) var(--ease);
  box-shadow: var(--sh-xs);
}
.related-card:hover {
  background: var(--vi-xlight);
  border-color: var(--vi-light);
  color: var(--vi-ink);
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
}

/* ─── TIMER ──────────────────────────────────────────────────── */
.timer {
  font-family: var(--f-mono);
  font-size: clamp(44px, 10vw, 76px);
  font-weight: 500;
  text-align: center;
  letter-spacing: 4px;
  padding: 16px 0;
  color: var(--ink);
  line-height: 1;
}

/* ─── SEARCH EMPTY ───────────────────────────────────────────── */
#no-results {
  display: none;
  text-align: center;
  padding: 56px 24px;
  color: var(--ink-3);
}
#no-results .nr-icon { font-size: 48px; margin-bottom: 16px; opacity: .35; }
#no-results h3 { font-family: var(--f-head); font-size: 17px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
#no-results p { font-size: 14px; }

/* ─── STATIC PAGES ───────────────────────────────────────────── */
.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 28px 80px;
}
.prose h1 {
  font-family: var(--f-head);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 8px;
}
.prose .meta { font-size: 13px; color: var(--ink-3); margin-bottom: 36px; }
.prose h2 { font-family: var(--f-head); font-size: 19px; font-weight: 700; margin: 32px 0 10px; }
.prose p { font-size: 15px; color: var(--ink-2); line-height: 1.78; margin-bottom: 14px; }
.prose a { color: var(--vi); text-decoration: underline; }

/* ─── UTILITY ────────────────────────────────────────────────── */
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.row .field { flex: 1; min-width: 100px; margin-bottom: 0; }
.divider { height: 1px; background: var(--stroke); margin: 20px 0; }
.text-muted { color: var(--ink-3); }
.text-accent { color: var(--vi); }
.font-mono { font-family: var(--f-mono); }

/* ─── QR / SPINNER ───────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid var(--stroke-2);
  border-top-color: var(--vi);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
.loading-row {
  display: flex; align-items: center; gap: 10px;
  justify-content: center; min-height: 100px;
  color: var(--ink-3); font-size: 13px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ── Mega menu → hamburger breakpoint ────────────────── */
@media (max-width: 820px) {
  /* Hide desktop nav, show hamburger */
  .nav-primary { display: none; }
  .nav-hamburger { display: flex; }

  /* Overlay + drawer become active */
  .nav-inner { padding: 0 18px; height: 58px; }
}

@media (max-width: 720px) {
  .hero { padding: 44px 18px 40px; }
  .tools-wrap { padding: 32px 18px 60px; }
  .tool-page-wrap { padding: 18px 18px 60px; }
  .widget-head { padding: 18px; }
  .widget-body { padding: 18px; }
  .footer-body { grid-template-columns: 1fr 1fr; padding: 36px 18px 28px; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding: 14px 18px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .about-strip { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .tool-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .tool-card { padding: 14px; }
  .tool-desc { display: none; }
  .seo-card { padding: 16px 18px; }
  .hero-h1 { letter-spacing: -1.2px; }

  /* Mega drop repositioned on small screens */
  .mega-drop {
    min-width: 94vw;
    left: 50%;
  }
  .mega-drop-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .footer-body { grid-template-columns: 1fr; }
  .hero-badge { font-size: 11px; }
  .mega-drop-inner { grid-template-columns: 1fr; }
}
