@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&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,300&display=swap');

:root {
  --teal:        #0D7A7A;
  --teal-light:  #E6F4F4;
  --teal-mid:    #B2DADA;
  --teal-dark:   #094F4F;
  --slate:       #1E2B3C;
  --slate-mid:   #4A5568;
  --slate-light: #8896A8;
  --sand:        #F7F5F2;
  --white:       #FFFFFF;
  --border:      #E2E2DC;
  --accent:      #E85D26;
  --accent-light:#FDF0EB;
  --green:       #2A9D5C;
  --green-light: #E8F7EF;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --radius:      14px;
  --radius-sm:   8px;
  --font-display:'DM Serif Display', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--teal);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 20px; height: 20px; fill: white; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--slate);
  letter-spacing: -0.02em;
}
.nav-logo-text span { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-size: 0.875rem; font-weight: 500;
  color: var(--slate-mid);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--teal); background: var(--teal-light); }
.nav-cta {
  background: var(--teal); color: white;
  padding: 8px 20px; border-radius: 9px;
  font-size: 0.875rem; font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
  margin-left: 8px;
  border: none; cursor: pointer;
}
.nav-cta:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ── AD SLOTS ── */
/* Remove display:none when AdSense is configured */
.ad-slot {
  display: none;
}
.ad-leaderboard { width: 100%; max-width: 728px; height: 90px; margin: 0 auto 48px; }
.ad-rectangle { width: 300px; height: 250px; flex-shrink: 0; }

/* ── SECTIONS ── */
.section { padding: 72px 40px; max-width: 1120px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.025em; color: var(--slate);
  line-height: 1.2;
}
.section-sub {
  margin-top: 12px;
  color: var(--slate-mid); font-size: 1rem;
  font-weight: 300; max-width: 480px; margin-inline: auto;
}

/* ── HERO ── */
.hero {
  padding: 96px 40px 80px;
  background: var(--white);
  position: relative; overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(13,122,122,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(13,122,122,0.04) 0%, transparent 40%),
    linear-gradient(135deg, transparent 40%, rgba(13,122,122,0.03) 100%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-light);
  border: 1px solid var(--teal-mid);
  color: var(--teal-dark);
  font-size: 0.8rem; font-weight: 500;
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 28px; letter-spacing: 0.01em;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--teal); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.12; letter-spacing: -0.03em;
  color: var(--slate);
  max-width: 700px; margin: 0 auto 20px;
}
.hero h1 em { font-style: italic; color: var(--teal); }
.hero-sub {
  font-size: 1.15rem; color: var(--slate-mid);
  max-width: 520px; margin: 0 auto 40px;
  font-weight: 300; line-height: 1.65;
}
.hero-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; margin-top: 36px;
  font-size: 0.8rem; color: var(--slate-light); font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-trust-item { display: flex; align-items: center; gap: 6px; }
.hero-trust-item svg { width: 15px; height: 15px; fill: var(--green); }

/* ── TOOLS GRID ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
  display: block;
}
.tool-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal-mid); }
.tool-card:hover::after { transform: scaleX(1); }
.tool-card.featured {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: white;
  grid-column: span 2;
}
.tool-card.featured::after { background: var(--accent); }
.tool-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.tool-card.featured .tool-icon { background: rgba(255,255,255,0.12); }
.tool-icon svg { width: 24px; height: 24px; fill: var(--teal); }
.tool-card.featured .tool-icon svg { fill: white; }
.tool-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; letter-spacing: -0.02em;
  margin-bottom: 8px; color: var(--slate);
}
.tool-card.featured h3 { color: white; }
.tool-card p { font-size: 0.875rem; color: var(--slate-mid); line-height: 1.6; }
.tool-card.featured p { color: rgba(255,255,255,0.7); }
.tool-card-badge {
  display: inline-flex; align-items: center;
  background: var(--accent); color: white;
  font-size: 0.7rem; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
  margin-bottom: 12px; letter-spacing: 0.04em;
}
.tool-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; font-size: 0.85rem; font-weight: 500;
  color: var(--teal); transition: gap 0.2s;
}
.tool-card.featured .tool-arrow { color: rgba(255,255,255,0.8); }
.tool-card:hover .tool-arrow { gap: 10px; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--sand);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px;
}
.stats-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 20px; text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem; color: var(--teal-dark);
  letter-spacing: -0.03em;
}
.stat-label { font-size: 0.85rem; color: var(--slate-mid); margin-top: 4px; }

/* ── HOW IT WORKS ── */
.how-section { background: var(--sand); padding: 72px 40px; }
.steps-grid {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute; top: 28px;
  left: calc(16.66% + 16px); right: calc(16.66% + 16px);
  height: 1px; background: var(--teal-mid);
}
.step { text-align: center; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--teal-mid);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-size: 1.4rem; color: var(--teal);
}
.step h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--slate); }
.step p { font-size: 0.875rem; color: var(--slate-mid); }

/* ── BLOG GRID ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.2s;
  text-decoration: none; color: inherit; display: block;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-img { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.blog-body { padding: 20px; }
.blog-tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 8px;
}
.blog-card h4 { font-size: 0.95rem; font-weight: 600; color: var(--slate); line-height: 1.4; margin-bottom: 8px; }
.blog-card p { font-size: 0.82rem; color: var(--slate-mid); line-height: 1.5; }

/* ── FOOTER ── */
footer {
  background: var(--slate);
  color: rgba(255,255,255,0.6);
  padding: 48px 40px;
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.footer-logo { font-family: var(--font-display); font-size: 1.3rem; color: white; }
.footer-logo span { color: var(--teal-mid); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; transition: color 0.15s; }
.footer-links a:hover { color: white; }
.footer-note { font-size: 0.8rem; margin-top: 24px; width: 100%; text-align: center; }

/* ── TOOL PAGE ── */
.tool-page { background: var(--sand); min-height: 100vh; }
.tool-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 40px 40px 0;
}
.tool-hero-inner { max-width: 1120px; margin: 0 auto; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--slate-light); margin-bottom: 20px;
}
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb span { opacity: 0.4; }
.tool-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.tool-header-left { flex: 1; }
.tool-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em; color: var(--slate); margin-bottom: 10px;
}
.tool-page-sub { color: var(--slate-mid); font-size: 0.95rem; max-width: 520px; }
.tool-badges { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 500;
  padding: 5px 12px; border-radius: 100px;
  background: var(--green-light); color: var(--green);
  border: 1px solid rgba(42,157,92,0.2);
}
.badge svg { width: 12px; height: 12px; fill: currentColor; }
.tool-tabs {
  display: flex; gap: 0; margin-top: 28px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none; scrollbar-width: none;
}
.tool-tabs::-webkit-scrollbar { display: none; }
.tool-tab {
  padding: 12px 24px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--slate-mid);
  cursor: pointer; border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all 0.15s; text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
}
.tool-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.tool-tab:hover:not(.active) { color: var(--slate); }

.tool-main {
  max-width: 1120px; margin: 0 auto;
  padding: 40px;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 32px; align-items: start;
}
.tool-workspace {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}

/* ── UPLOAD ZONE ── */
.upload-zone {
  padding: 56px 40px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius); margin: 24px;
  transition: all 0.2s; cursor: pointer;
  background: var(--sand);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--teal); background: var(--teal-light);
}
.upload-icon {
  width: 72px; height: 72px; background: var(--white);
  border-radius: 20px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.upload-icon svg { width: 36px; height: 36px; fill: var(--teal); }
.upload-zone h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--slate); margin-bottom: 8px; }
.upload-zone p { font-size: 0.875rem; color: var(--slate-mid); margin-bottom: 20px; }
.upload-btn {
  background: var(--teal); color: white;
  padding: 12px 28px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 500;
  border: none; cursor: pointer; transition: all 0.15s;
}
.upload-btn:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.upload-formats { margin-top: 16px; font-size: 0.77rem; color: var(--slate-light); }

/* ── RESULT ── */
.result-area { display: none; padding: 24px; }
.result-area.show { display: block; }
.checkerboard {
  border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 20px;
  background: repeating-conic-gradient(#e0e0e0 0% 25%, white 0% 50%) 0 0 / 20px 20px;
}
.checkerboard img { display: block; max-width: 100%; height: auto; max-height: 380px; width: 100%; object-fit: contain; }
.result-success {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: var(--green-light);
  border-radius: var(--radius-sm); font-size: 0.82rem; color: var(--green);
  margin-bottom: 16px;
}
.result-success svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.result-actions { display: flex; gap: 12px; }
.btn-primary {
  flex: 1; background: var(--teal); color: white;
  padding: 14px 24px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 500; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.15s; text-decoration: none;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  padding: 14px 20px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 500;
  border: 1px solid var(--border); background: var(--white);
  cursor: pointer; transition: all 0.15s; color: var(--slate);
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

/* ── SIDEBAR ── */
.tool-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.sidebar-card h4 {
  font-size: 0.875rem; font-weight: 600; color: var(--slate);
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.option-row { display: flex; flex-direction: column; gap: 10px; }
.option-item {
  display: flex; align-items: center;
  padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); cursor: pointer;
  transition: all 0.15s; font-size: 0.85rem; gap: 10px;
}
.option-item:hover { border-color: var(--teal); background: var(--teal-light); }
.option-item.selected { border-color: var(--teal); background: var(--teal-light); color: var(--teal-dark); }
.option-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; }
.option-item.selected .option-dot { border-color: var(--teal); background: var(--teal); }
.option-icon { font-size: 1.1rem; }
.colour-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 12px; }
.colour-swatch {
  width: 100%; aspect-ratio: 1; border-radius: 6px; cursor: pointer;
  border: 2px solid transparent; transition: all 0.15s;
}
.colour-swatch:hover { transform: scale(1.1); }
.colour-swatch.selected { border-color: var(--teal); box-shadow: 0 0 0 2px white, 0 0 0 4px var(--teal); }
.colour-swatch.transparent {
  background: repeating-conic-gradient(#ccc 0% 25%, white 0% 50%) 0 0 / 8px 8px;
}
.related-tool {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.15s;
  text-decoration: none; color: inherit;
}
.related-tool:hover { background: var(--sand); }
.related-tool-icon {
  width: 36px; height: 36px; border-radius: 9px; background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.related-tool-name { font-size: 0.85rem; font-weight: 500; color: var(--slate); }
.related-tool-desc { font-size: 0.77rem; color: var(--slate-light); }
.tip-item { display: flex; gap: 10px; margin-bottom: 10px; font-size: 0.82rem; color: var(--slate-mid); }
.tip-item svg { width: 16px; height: 16px; fill: var(--green); flex-shrink: 0; margin-top: 1px; }

/* ── SEO CONTENT ── */
.seo-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  margin-top: 32px;
}
.seo-box h2 {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--slate);
  margin-bottom: 12px; letter-spacing: -0.02em;
}
.seo-box p { font-size: 0.875rem; color: var(--slate-mid); line-height: 1.75; margin-bottom: 12px; }
.seo-box p:last-child { margin-bottom: 0; }

/* ── PROCESSING OVERLAY ── */
.processing-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(30,43,60,0.7); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.processing-overlay.show { display: flex; }
.processing-card {
  background: white; border-radius: var(--radius);
  padding: 48px; text-align: center; max-width: 360px;
  box-shadow: var(--shadow-lg);
}
.spinner {
  width: 56px; height: 56px;
  border: 3px solid var(--teal-light); border-top-color: var(--teal);
  border-radius: 50%; animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing-card h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--slate); margin-bottom: 8px; }
.processing-card p { font-size: 0.875rem; color: var(--slate-mid); }
.processing-steps { margin-top: 20px; text-align: left; }
.proc-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; padding: 6px 0; color: var(--slate-light);
}
.proc-step.done { color: var(--green); }
.proc-step.active { color: var(--teal); font-weight: 500; }
.proc-step-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ── ERROR BANNER ── */
.error-banner {
  display: none; align-items: center; gap: 10px;
  padding: 12px 16px; background: #FEF2F2;
  border: 1px solid #FECACA; border-radius: var(--radius-sm);
  font-size: 0.85rem; color: #B91C1C; margin: 16px 24px 0;
}
.error-banner.show { display: flex; }

/* ── BLOG ── */
.blog-hero {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 64px 40px 56px; text-align: center;
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em; color: var(--slate);
  margin-bottom: 12px;
}
.blog-hero p { color: var(--slate-mid); font-size: 1rem; font-weight: 300; }
.blog-main { max-width: 1120px; margin: 0 auto; padding: 56px 40px; }
.blog-featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-bottom: 64px; align-items: center;
}
.blog-featured-img {
  border-radius: var(--radius); height: 320px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.blog-featured h2 {
  font-family: var(--font-display);
  font-size: 1.8rem; letter-spacing: -0.025em; color: var(--slate);
  margin-bottom: 12px; line-height: 1.25;
}
.blog-featured p { font-size: 0.9rem; color: var(--slate-mid); line-height: 1.75; margin-bottom: 20px; }
.blog-featured .blog-tag { display: block; margin-bottom: 12px; }
.blog-read-more {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: gap 0.2s;
}
.blog-read-more:hover { gap: 12px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-3 { animation-delay: 0.3s; opacity: 0; }

/* ── TOOL CARD BANNER IMAGE ── */
.tool-card-banner {
  display: block;
  width: 100%;
  margin: 0 0 20px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.tool-card.featured .tool-card-banner { height: 200px; }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 4px; border-radius: 8px; transition: background 0.15s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--sand); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--slate); border-radius: 2px;
  transition: all 0.25s; transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE OVERLAY ── */
.mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 150;
  background: rgba(30,43,60,0.45); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 0.25s;
}
.mobile-overlay.open { display: block; opacity: 1; }

/* ── MOBILE MENU DRAWER ── */
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: 280px; max-width: 85vw;
  background: var(--white); box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 72px 20px 40px;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .nav-links {
  display: flex !important; flex-direction: column; gap: 2px;
}
.mobile-menu .nav-link {
  padding: 13px 16px; font-size: 0.95rem; border-radius: 10px; display: block;
}
.mobile-menu .nav-cta {
  margin-top: 12px; text-align: center; padding: 14px 20px;
  border-radius: 10px; font-size: 0.95rem; display: block; margin-left: 0;
}

/* ── IMAGE LIGHTBOX ── */
.img-lightbox {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.9);
  align-items: center; justify-content: center;
  cursor: zoom-out;
  opacity: 0; transition: opacity 0.2s;
}
.img-lightbox.show { display: flex; opacity: 1; }
.img-lightbox-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  max-width: 92vw; max-height: 92vh;
  cursor: default;
}
.img-lightbox-inner img {
  max-width: 92vw; max-height: 80vh;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.img-lightbox-inner .checkerboard-bg {
  background-image: linear-gradient(45deg,#555 25%,transparent 25%),
    linear-gradient(-45deg,#555 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#555 75%),
    linear-gradient(-45deg,transparent 75%,#555 75%);
  background-size: 20px 20px;
  background-position: 0 0,0 10px,10px -10px,-10px 0;
  background-color: #444;
}
.img-lightbox-label {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
}
.img-lightbox-close {
  position: absolute; top: -44px; right: -8px;
  color: rgba(255,255,255,0.7); font-size: 2rem; line-height: 1;
  cursor: pointer; transition: color 0.15s; background: none; border: none;
  padding: 4px 8px;
}
.img-lightbox-close:hover { color: #fff; }
.img-zoomable { cursor: zoom-in !important; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 64px 20px 56px; }
  .section { padding: 48px 20px; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card.featured { grid-column: span 1; }
  .blog-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(3, 1fr); }
  .tool-hero { padding: 24px 20px 0; }
  .tool-main { grid-template-columns: 1fr; padding: 20px; }
  .tool-sidebar .ad-rectangle { width: 100%; }
  .blog-featured { grid-template-columns: 1fr; }
  footer { padding: 32px 20px; }
}
