/* ═══════════════════════════════════════════════════════════
   HOME.CSS — Light Warm Glassmorphism
   Matches site theme: warm stone bg, orange #f27328 accent
   Frosted glass cards (image 1/2 style — frozen/translucent)
   ═══════════════════════════════════════════════════════════ */

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

/* ─── Variables ─── */
:root {
  --accent:          #f27328;
  --accent-deep:     #d45010;
  --accent-light:    #feeee0;
  --accent-glow:     rgba(242,115,40,0.18);

  /* Warm text palette */
  --text-primary:    #231e18;
  --text-secondary:  #6b5e52;
  --text-muted:      #b0a090;

  /* Light frosted glass */
  --glass-bg:        rgba(255,255,255,0.52);
  --glass-bg-hover:  rgba(255,255,255,0.72);
  --glass-border:    rgba(255,255,255,0.75);
  --glass-shadow:    0 4px 24px rgba(180,140,100,0.10);
  --blur-card:       blur(20px) saturate(1.8);

  /* Warm background tones */
  --bg-base:         #f2ede6;
  --bg-warm-1:       rgba(242,211,168,0.45);
  --bg-warm-2:       rgba(255,230,190,0.35);
  --bg-cool-1:       rgba(210,220,235,0.28);
  --bg-orange:       rgba(242,115,40,0.08);

  /* Warm icon palettes for light UI */
  --ico-red-bg:    rgba(200,60,40,0.11);  --ico-red:    #b83020;
  --ico-orange-bg: rgba(220,90,20,0.11);  --ico-orange: #c05818;
  --ico-amber-bg:  rgba(185,125,5,0.11);  --ico-amber:  #946008;
  --ico-green-bg:  rgba(22,120,55,0.11);  --ico-green:  #155e30;
  --ico-blue-bg:   rgba(25,95,185,0.11);  --ico-blue:   #1550a0;
  --ico-teal-bg:   rgba(8,125,115,0.11);  --ico-teal:   #0a6b62;
  --ico-purple-bg: rgba(105,40,185,0.11); --ico-purple: #5a20a0;
  --ico-pink-bg:   rgba(170,30,90,0.11);  --ico-pink:   #8f1850;
}

/* ─── Global resets ─── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  /* Native smooth scrolling — hardware accelerated */
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
  /* Prevents layout thrash from scrollbar appearing */
  overflow-y: scroll;
  /* GPU-composited scroll */
  -webkit-overflow-scrolling: touch;
}

/* Sections below the fold — skip rendering until near viewport
   This is the BIGGEST scroll performance win */
.section-glass {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

/* Fixed background — isolate to own layer */
.glass-bg-wrap {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ════════════════════════════════════════════════════════════
   HOMEPAGE WRAPPER — overrides Tailwind body
   ════════════════════════════════════════════════════════════ */
.hp {
  font-family: 'DM Sans', 'Inter', -apple-system, sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
}

/* ════════════════════════════════════════════════════════════
   FIXED BACKGROUND — warm light interior
   Soft sandy/stone base with warm colour blooms
   (matches the reference images: warm greige + blurred depth)
   ════════════════════════════════════════════════════════════ */
.glass-bg-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;

  /* Warm sandy base — matching bg-stone-50 family */
  background: #f2ede6;
}

/* Multi-layer warm gradient — like the reference image backgrounds */
.glass-bg-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Top right — soft warm apricot bloom (like a warm window) */
    radial-gradient(ellipse 65% 55% at 95% 0%,
      rgba(255, 210, 155, 0.55) 0%,
      rgba(242, 180, 100, 0.20) 45%,
      transparent 70%),
    /* Top left — cool ivory-blue tint */
    radial-gradient(ellipse 50% 45% at 0% 0%,
      rgba(215, 225, 240, 0.38) 0%,
      transparent 65%),
    /* Center — soft warm cream depth */
    radial-gradient(ellipse 90% 80% at 50% 40%,
      rgba(250, 235, 210, 0.60) 0%,
      transparent 80%),
    /* Bottom left — warm amber undertone */
    radial-gradient(ellipse 55% 40% at 0% 100%,
      rgba(230, 200, 155, 0.35) 0%,
      transparent 65%),
    /* Bottom right — peachy blush */
    radial-gradient(ellipse 45% 35% at 100% 100%,
      rgba(245, 195, 155, 0.30) 0%,
      transparent 65%);
  pointer-events: none;
}

/* Vignette — very subtle darkening at edges for depth */
.glass-bg-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 35% 100% at 0% 50%,
      rgba(180,155,120,0.14) 0%, transparent 100%),
    radial-gradient(ellipse 35% 100% at 100% 50%,
      rgba(180,155,120,0.10) 0%, transparent 100%),
    linear-gradient(180deg,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0) 65%,
      rgba(160,135,100,0.10) 100%);
  pointer-events: none;
}

/* ─── Floating warm ambient orbs ─── */
.glass-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;    /* GPU layer — no repaint on animate */
  contain: strict;           /* Contain paint — faster scroll */
  z-index: 0 !important;     /* FIX: never bleed over navbar/mobile-menu */
}

/* Warm apricot — top right, large soft bloom */
.glass-orb-1 {
  width: 700px; height: 550px;
  background: radial-gradient(ellipse,
    rgba(245, 185, 110, 0.38) 0%,
    rgba(242, 155, 70, 0.12) 50%,
    transparent 70%);
  top: -160px; right: -100px;
  filter: blur(60px);
  animation: orb1 32s ease-in-out infinite;
}

/* Soft blue-ivory — left side, cool contrast */
.glass-orb-2 {
  width: 480px; height: 580px;
  background: radial-gradient(ellipse,
    rgba(200, 215, 240, 0.32) 0%,
    rgba(180, 200, 230, 0.10) 55%,
    transparent 70%);
  top: 8%; left: -110px;
  filter: blur(70px);
  animation: orb2 36s ease-in-out infinite;
}

/* Warm peach floor glow — bottom center */
.glass-orb-3 {
  width: 580px; height: 260px;
  background: radial-gradient(ellipse,
    rgba(240, 200, 150, 0.30) 0%,
    transparent 70%);
  bottom: -30px; left: 20%;
  filter: blur(75px);
  animation: orb3 28s ease-in-out infinite;
}

/* Orange accent bloom — mid right */
.glass-orb-4 {
  width: 320px; height: 360px;
  background: radial-gradient(ellipse,
    rgba(242, 115, 40, 0.10) 0%,
    transparent 70%);
  bottom: 25%; right: -40px;
  filter: blur(55px);
  animation: orb1 24s ease-in-out infinite reverse;
  animation-delay: -12s;
}

/* Pale gold — left center arc */
.glass-orb-5 {
  width: 260px; height: 480px;
  background: radial-gradient(ellipse,
    rgba(230, 200, 130, 0.18) 0%,
    transparent 68%);
  top: 30%; left: -35px;
  filter: blur(50px);
  animation: orb2 30s ease-in-out infinite;
  animation-delay: -8s;
}

@keyframes orb1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(-25px, 38px) scale(1.05); }
  66%     { transform: translate(16px, -20px) scale(0.96); }
}
@keyframes orb2 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%     { transform: translate(20px, -28px) scale(1.04); }
  75%     { transform: translate(-12px, 18px) scale(0.97); }
}
@keyframes orb3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-15px, 10px) scale(1.07); }
}

/* Fine noise texture for warmth */
.glass-noise {
  position: fixed; inset: 0; z-index: 1;
  opacity: 0.025; pointer-events: none;
  background-image: 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.80' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Z-index stack */
.glass-bg-wrap { z-index: 0; }
.glass-noise   { z-index: 1; }
.hp > *        { position: relative; z-index: 2; }

/* ════════════════════════════════════════════════════════════
   HERO SECTION  — Compact, clean, like reference screenshot
   ════════════════════════════════════════════════════════════ */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(32px,4.5vw,52px) clamp(20px,5vw,40px) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  isolation: isolate;   /* FIX: contains all orbs inside this stacking context */
  z-index: 1;           /* FIX: below navbar z-index of 9000 */
}

/* Warm radial glow centered behind headline */
.hero-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(600px,85vw,1000px);
  height: clamp(360px,55vw,600px);
  background: radial-gradient(ellipse,
    rgba(242,115,40,0.07) 0%,
    rgba(245,190,110,0.045) 40%,
    transparent 68%);
  pointer-events: none;
}

/* Dot grid — top-left corner */
.hero-dot-tl {
  position: absolute;
  top: 0; left: 0;
  width: 220px; height: 240px;
  background-image: radial-gradient(circle, rgba(175,125,70,0.22) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: linear-gradient(135deg, rgba(0,0,0,0.50) 0%, transparent 68%);
  -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,0.50) 0%, transparent 68%);
  pointer-events: none;
}

/* Dot grid — top-right corner */
.hero-dot-tr {
  position: absolute;
  top: 0; right: 0;
  width: 220px; height: 240px;
  background-image: radial-gradient(circle, rgba(175,125,70,0.22) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: linear-gradient(225deg, rgba(0,0,0,0.50) 0%, transparent 68%);
  -webkit-mask-image: linear-gradient(225deg, rgba(0,0,0,0.50) 0%, transparent 68%);
  pointer-events: none;
}

.hero-inner {
  max-width: 660px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  padding-bottom: clamp(16px,2.5vw,24px);
}

/* ── Headline ── */
.hero-h1 {
  font-size: clamp(2.2rem, 5.8vw, 4.2rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.07;
  letter-spacing: -.04em;
  margin: 0 0 12px;
  animation: fadeUp .65s ease both;
}

/* Rich warm shimmer gradient — UNCHANGED animation */
.grad-text {
  background: linear-gradient(135deg,
    #c44e00 0%,
    #f27328 28%,
    #faa860 52%,
    #f27328 76%,
    #c44e00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 260% auto;
  animation: shimmer 5s linear infinite;
  display: inline-block;
  filter: drop-shadow(0 2px 18px rgba(242,115,40,0.22));
}
@keyframes shimmer { to { background-position: 260% center; } }

/* ── Subheading ── */
.hero-sub {
  font-size: clamp(14px, 1.9vw, 16.5px);
  color: var(--text-secondary);
  line-height: 1.72;
  margin: 0 auto 18px;
  max-width: 480px;
  animation: fadeUp .65s .12s ease both;
  font-weight: 400;
}

/* ── Search bar ── */
.hero-search-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  animation: fadeUp .65s .22s ease both;
}
.search-inner {
  display: flex;
  align-items: stretch;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(215,190,155,0.60);
  border-radius: 14px;
  box-shadow:
    0 4px 20px rgba(140,100,60,0.12),
    inset 0 1px 0 rgba(255,255,255,1);
  overflow: hidden;
  transition: box-shadow .22s, border-color .22s;
}
.search-inner:focus-within {
  background: rgba(255,255,255,0.86);
  border-color: rgba(242,115,40,0.38);
  box-shadow:
    0 8px 36px rgba(160,120,70,0.18),
    inset 0 1.5px 0 rgba(255,255,255,0.99),
    0 0 0 3px rgba(242,115,40,0.11);
}
.search-icon-wrap {
  display: flex;
  align-items: center;
  padding: 0 8px 0 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  pointer-events: none;
}
.search-input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  font-size: 14.5px;
  font-family: 'DM Sans', 'Inter', sans-serif;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
  font-weight: 400;
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  flex-shrink: 0;
  padding: 0 24px;
  margin: 5px;
  background: linear-gradient(145deg, #f27328 0%, #d45010 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  font-family: 'DM Sans', 'Inter', sans-serif;
  transition: all .22s;
  white-space: nowrap;
  box-shadow:
    0 3px 16px rgba(242,115,40,0.42),
    inset 0 1px 0 rgba(255,210,160,0.26);
  letter-spacing: .01em;
}
.search-btn:hover {
  background: linear-gradient(145deg, #ff8c3c 0%, #f27328 100%);
  box-shadow: 0 5px 26px rgba(242,115,40,0.56), inset 0 1px 0 rgba(255,210,160,0.26);
  transform: translateY(-1px);
}

/* Search results dropdown */
#h-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: rgba(252, 248, 244, 0.97);
  backdrop-filter: blur(40px) saturate(2.0);
  -webkit-backdrop-filter: blur(40px) saturate(2.0);
  border: 1px solid rgba(255,255,255,0.88);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(140,110,70,0.20);
  overflow: hidden;
  z-index: 60;
}
#h-results a { color: var(--text-primary) !important; }
#h-results a:hover { background: rgba(242,115,40,0.06) !important; }

/* ── Hero wave divider — warm layered hills, like the reference ── */
.hero-wave {
  display: block;
  width: 100%;
  margin-top: 0;
  margin-bottom: -4px;
  line-height: 0;
  position: relative;
  z-index: 1;
  min-height: clamp(100px, 12vw, 170px);
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: clamp(100px, 12vw, 170px);
}

/* ════════════════════════════════════════════════════════════
   CATEGORY TAB STRIP
   ════════════════════════════════════════════════════════════ */
#cat-jumper {
  background: rgba(248,244,238,0.97);
  border-bottom: 1px solid rgba(210,185,150,0.45);
  position: sticky;
  top: 62px;
  z-index: 40;
  box-shadow: 0 2px 12px rgba(140,110,70,0.08);
}
#cat-jumper .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(12px,3vw,24px);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
}
.cat-tabs-strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.cat-tabs-strip::-webkit-scrollbar { display: none; }
.cat-tab-link {
  display: inline-flex;
  align-items: center;
  padding: clamp(12px,2vw,16px) clamp(12px,2vw,20px);
  font-size: clamp(12px,2vw,13.5px);
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  border-top: 2px solid transparent;
  transition: color .2s, border-color .2s;
  flex-shrink: 0;
  letter-spacing: .01em;
}
.cat-tab-link:hover { color: var(--text-secondary); }
.cat-tab-link.active {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  border-bottom-color: var(--tab-accent, #f27328) !important;
}
.cat-view-all {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 14px 0 14px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border-left: 1px solid rgba(220,200,175,0.45);
  transition: color .15s;
}
.cat-view-all:hover { color: #e05010; }
.cat-view-all svg { transition: transform .15s; }
.cat-view-all:hover svg { transform: translateX(3px); }
@media(min-width: 640px) { .cat-view-all { display: inline-flex; } }

/* ════════════════════════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════════════════════════ */
.sec-pad {
  padding: clamp(48px,6vw,80px) clamp(16px,4vw,24px);
}
.sec-wrap {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.sec-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: clamp(24px,3vw,40px);
  gap: 16px;
  flex-wrap: wrap;
}

/* Section wrappers — lightweight bg tint only, no blur */
.section-glass {
  background: rgba(255,252,248,0.50);
  border-top: 1px solid rgba(215,195,165,0.25);
  border-bottom: 1px solid rgba(215,195,165,0.12);
  position: relative;
  overflow: hidden;
}
.section-glass::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(255,255,255,0.60), transparent);
  pointer-events: none;
}

/* Section glows — warm pastel tints per section */
.section-glow-orange::after,
.section-glow-purple::after,
.section-glow-blue::after,
.section-glow-green::after,
.section-glow-teal::after,
.section-glow-amber::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}
.section-glow-orange::after { top:-200px; right:-80px;  width:500px; height:500px; background:radial-gradient(circle,rgba(242,115,40,0.06) 0%,transparent 65%); }
.section-glow-purple::after { top:-150px; left:-80px;   width:500px; height:500px; background:radial-gradient(circle,rgba(167,100,220,0.05) 0%,transparent 65%); }
.section-glow-blue::after   { top:-150px; right:-50px;  width:400px; height:400px; background:radial-gradient(circle,rgba(60,140,240,0.05) 0%,transparent 65%); }
.section-glow-green::after  { top:-150px; left:10%;     width:400px; height:400px; background:radial-gradient(circle,rgba(34,197,94,0.05) 0%,transparent 65%); }
.section-glow-teal::after   { top:-100px; right:20%;    width:350px; height:350px; background:radial-gradient(circle,rgba(20,184,166,0.05) 0%,transparent 65%); }
.section-glow-amber::after  { top:-100px; left:30%;     width:350px; height:350px; background:radial-gradient(circle,rgba(245,158,11,0.05) 0%,transparent 65%); }

/* ── Section header ── */
.sec-label-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(210,188,158,0.50);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  box-shadow: 0 1px 6px rgba(140,100,60,0.08);
}
.sec-label-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.sec-h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -.035em;
  margin: 0;
  line-height: 1.12;
}
.sec-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 9px 0 0;
  max-width: min(500px,100%);
  line-height: 1.68;
}
.sec-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(242,115,40,0.22);
  border-radius: 11px;
  padding: 9px 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  flex-shrink: 0;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 4px;
  box-shadow: 0 1px 6px rgba(242,115,40,0.10);
}
.sec-all-link:hover {
  background: rgba(255,255,255,0.80);
  border-color: rgba(242,115,40,0.40);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242,115,40,0.15);
  color: var(--accent);
}
.sec-all-link svg { transition: transform .15s; }
.sec-all-link:hover svg { transform: translateX(3px); }

/* ── Category dividers ── */
.cat-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.cat-divider-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  white-space: nowrap;
}
.cat-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(200,180,150,0.30);
}

/* ════════════════════════════════════════════════════════════
   TOOL CARDS — Large ilovepdf / pdfsizereducer style
   • Big spacious card, icon top-left, large name, arrow bottom-right
   • Warm light theme, clean white panel, strong hover lift
   ════════════════════════════════════════════════════════════ */
.tc {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: #ffffff;
  border: 1.5px solid rgba(215,195,165,0.45);
  border-radius: 18px;
  padding: 28px 24px 22px;
  text-decoration: none;
  min-height: 190px;

  box-shadow:
    0 1px 2px rgba(140,100,60,0.04),
    0 3px 12px rgba(140,100,60,0.07);

  transition: transform 0.20s ease, box-shadow 0.20s ease, border-color 0.20s ease;
  will-change: transform;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

/* Warm left-edge accent bar on hover */
.tc::before {
  content: '';
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.20s ease;
}
.tc::after { display: none; }

.tc:hover {
  background: #ffffff;
  border-color: rgba(242,115,40,0.35);
  box-shadow:
    0 4px 8px rgba(140,100,60,0.06),
    0 12px 32px rgba(140,100,60,0.13),
    0 0 0 3px rgba(242,115,40,0.08);
  transform: translateY(-5px);
}
.tc:hover::before { opacity: 1; }
.tc:hover .tc-ico { transform: scale(1.08); }
.tc:hover .tc-arrow { color: var(--accent); transform: translate(2px,-2px); }

/* ── Icon ── */
.tc-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.20s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── Body content ── */
.tc-body { flex: 1; }

.tc-name {
  font-size: 15px;
  font-weight: 800;
  color: #1a1410;
  margin: 0 0 8px;
  letter-spacing: -.02em;
  line-height: 1.25;
  word-wrap: break-word;
}
.tc-desc {
  font-size: 12.5px;
  color: #7a6c60;
  line-height: 1.60;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Arrow indicator (bottom-right) ── */
.tc-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
  color: #c4b8a8;
  transition: color 0.20s ease, transform 0.20s ease;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   GRIDS — 3 columns desktop (bigger cards need more space)
   ════════════════════════════════════════════════════════════ */
.tg-4, .tg-3 {
  display: grid;
  grid-template-columns: repeat(1,1fr);
  gap: 14px;
}
@media(min-width:480px)  {
  .tg-4, .tg-3 { grid-template-columns: repeat(2,1fr); gap: 16px; }
}
@media(min-width:768px)  {
  .tg-4, .tg-3 { grid-template-columns: repeat(3,1fr); gap: 18px; }
}
@media(min-width:1200px) {
  .tg-4 { grid-template-columns: repeat(4,1fr); gap: 20px; }
  .tg-3 { grid-template-columns: repeat(3,1fr); gap: 20px; }
}

.steps-grid { display:grid; grid-template-columns:1fr;        gap:16px; }
.blog-grid  { display:grid; grid-template-columns:1fr;        gap:16px; }
.nl-inner   { display:grid; grid-template-columns:1fr;        gap:24px; }
.cat-grid   { display:grid; grid-template-columns:1fr;        gap:12px; }
.qc-strip   { display:flex; flex-wrap:wrap;                   gap:8px;  }

@media(min-width:640px) {
  .steps-grid { grid-template-columns:repeat(3,1fr); gap:20px; }
  .blog-grid  { grid-template-columns:repeat(2,1fr); gap:18px; }
  .nl-inner   { grid-template-columns:1fr 1fr;       gap:36px; }
  .cat-grid   { grid-template-columns:repeat(2,1fr);           }
}
@media(min-width:768px) {
  .blog-grid  { grid-template-columns:repeat(3,1fr);           }
  .nl-inner   { grid-template-columns:1fr 1fr;       gap:44px; }
  .cat-grid   { grid-template-columns:repeat(3,1fr);           }
}
@media(min-width:1024px) { .nl-inner { gap:52px; } }

/* ════════════════════════════════════════════════════════════
   BLOG CARDS — same frosted light glass
   ════════════════════════════════════════════════════════════ */
.blog-card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(215,195,165,0.50);
  border-radius: 20px;
  padding: 26px;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  will-change: transform;
  box-shadow:
    0 1px 3px rgba(140,100,60,0.06),
    0 4px 16px rgba(140,100,60,0.09),
    inset 0 1px 0 rgba(255,255,255,1);
  position: relative; overflow: hidden;
}
.blog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(255,255,255,0.90), transparent);
}
.blog-card:hover {
  background: rgba(255,255,255,0.96);
  border-color: rgba(242,115,40,0.28);
  box-shadow:
    0 2px 6px rgba(140,100,60,0.06),
    0 10px 32px rgba(140,100,60,0.14),
    0 0 0 2px rgba(242,115,40,0.08),
    inset 0 1px 0 rgba(255,255,255,1);
  transform: translateY(-4px);
}
.blog-card-tag {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 14px; width: fit-content;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.70);
}
.blog-card-title {
  font-size: 16px; font-weight: 800;
  color: var(--text-primary); line-height: 1.4;
  margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
  letter-spacing: -.02em;
}
.blog-card-excerpt {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.72; margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(200,180,150,0.22);
}
.blog-card-read {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--accent);
  transition: gap .15s;
}
.blog-card:hover .blog-card-read { gap: 8px; }

/* ════════════════════════════════════════════════════════════
   NEWSLETTER CARD
   ════════════════════════════════════════════════════════════ */
.nl-dark-card {
  border-radius: 24px;
  padding: clamp(32px,5vw,56px) clamp(24px,5vw,52px);
  position: relative; overflow: hidden;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(215,195,165,0.55);
  box-shadow:
    0 4px 24px rgba(140,100,60,0.12),
    inset 0 1px 0 rgba(255,255,255,1);
}
.nl-dark-card::before {
  content: '';
  position: absolute;
  top: 0; left: 5%; right: 5%; height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(255,255,255,0.90), transparent);
}
/* Override dark text inside newsletter card */
.nl-dark-card h2,
.nl-dark-card p,
.nl-dark-card label { color: var(--text-primary) !important; }
.nl-dark-card input {
  background: rgba(255,255,255,0.70) !important;
  border-color: rgba(220,200,175,0.60) !important;
  color: var(--text-primary) !important;
}
.nl-dark-card input::placeholder { color: var(--text-muted) !important; }
.nl-submit {
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(242,115,40,0.35);
}
.nl-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(242,115,40,0.50);
}

/* ════════════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
.fu { animation: fadeUp .5s ease both; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media(max-width:640px) {
  .hero-dot-tl, .hero-dot-tr { width:140px; height:160px; }
  .tc { border-radius: 14px; padding: 14px 12px 13px; }
}
@media(min-width:900px) {
  .hero-section { padding-top: clamp(44px,5.5vw,64px); }
}

/* ════════════════════════════════════════════════════════════
   NAVBAR — Warm solid bg, matches homepage
   ════════════════════════════════════════════════════════════ */
#navbar #nav-bar {
  background: rgba(248,243,237,0.97) !important;
  border-bottom: 1px solid rgba(210,188,158,0.40) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.80),
              0 2px 12px rgba(140,105,60,0.08) !important;
}
#navbar .font-semibold { color: #1a1410 !important; }
#navbar .text-stone-700,
#navbar .text-stone-600 { color: #6b5e52 !important; }
#navbar a:hover,
#navbar button:hover { color: #1a1410 !important; }

/* ════════════════════════════════════════════════════════════
   TOOL CARD ICONS — Warm light-theme styling
   (Actual bg/colour set directly in PHP data arrays)
   ════════════════════════════════════════════════════════════ */
.tc-ico {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow:
    0 2px 8px rgba(120,90,50,0.12),
    inset 0 1px 0 rgba(255,255,255,0.85);
}
/* No backdrop-filter on icons — removed for performance */

/* ════════════════════════════════════════════════════════════
   SECTION TYPOGRAPHY POLISH
   ════════════════════════════════════════════════════════════ */
/* Section headings — warmer dark */
.sec-h2 { color: #1a1410 !important; }
.sec-sub { color: #6b5e52 !important; }

/* Cat divider labels — ensure they're readable against warm bg */
.cat-divider-label { opacity: 0.85; }

/* Hero h1 */
.hero-h1 { color: #1a1410; }
.hero-sub { color: #6b5e52; }

/* Tool card text */
.tc-name { color: #1a1410 !important; }
.tc-desc  { color: #7a6c60 !important; }

/* Section label pills — warm border */
.sec-label-pill {
  border-color: rgba(200,175,140,0.50) !important;
  color: #6b5e52;
}

/* Blog card text */
.blog-card-title   { color: #1a1410; }
.blog-card-excerpt { color: #6b5e52; }

/* Quick-chip strip tags */
.qc-strip a, .qc-chip {
  background: rgba(255,255,255,0.58) !important;
  border: 1px solid rgba(200,175,140,0.48) !important;
  color: #6b5e52 !important;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: all .18s;
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.qc-strip a:hover, .qc-chip:hover {
  background: rgba(255,255,255,0.82) !important;
  border-color: rgba(242,115,40,0.35) !important;
  color: var(--accent) !important;
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════
   SEARCH RESULTS — Light warm dropdown
   ════════════════════════════════════════════════════════════ */
#h-results {
  background: rgba(252, 248, 244, 0.97) !important;
  border: 1px solid rgba(220,195,160,0.60) !important;
  box-shadow: 0 16px 48px rgba(140,110,70,0.18) !important;
}
#h-results a { color: #231e18 !important; }
#h-results a:hover { background: rgba(242,115,40,0.06) !important; }

/* ════════════════════════════════════════════════════════════
   HERO BADGE — add back with good warm styling
   ════════════════════════════════════════════════════════════ */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(210,185,150,0.60);
  border-radius: 999px;
  padding: 6px 18px 6px 10px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .05em;
  animation: fadeUp .5s ease both;
  box-shadow: 0 2px 16px rgba(180,140,90,0.12),
              inset 0 1px 0 rgba(255,255,255,0.92);
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34,197,94,0.55);
  animation: dotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dotPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:.65; transform:scale(.82); }
}
