/* Tool Header Row */
.tool-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  gap: var(--space-4);
}

/* Remove duplicate margin when inside row */
.tool-header-row .tool-header { margin-bottom: 0 !important; }

.tool-header-actions {
  display: flex;
  gap: var(--space-3);
  padding-top: var(--space-1);
  position: relative; /* For tooltip positioning */
}

.hiw-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 18px;
  box-shadow: var(--shadow-inset);
}

.hiw-btn::after { content: '?'; }
.hiw-btn svg { display: none; } /* Remove the svg icon, use text instead */

.hiw-btn:hover {
  background: var(--surface-3);
  color: var(--primary);
  border-color: var(--primary);
  transform: rotate(15deg) scale(1.1);
  box-shadow: 0 0 15px rgba(108, 99, 255, 0.3);
}

/* Hide original section */
.how-it-works { display: none !important; }

/* HIW Tooltip Popover Style */
.hiw-tooltip {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 2000;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
  margin-top: 12px;
}

/* Arrow */
.hiw-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  transform: rotate(45deg);
}

.tool-header-actions:hover .hiw-tooltip,
.hiw-btn:hover + .hiw-tooltip,
.hiw-tooltip:hover,
.hiw-tooltip.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.hiw-tooltip h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.hiw-tooltip .steps-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0;
}

.hiw-tooltip .step-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: var(--space-2);
  background: none !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  margin-bottom: var(--space-1);
  text-align: left;
}

.hiw-tooltip .step-item span {
  font-weight: 800;
  color: var(--primary);
  background: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  font-size: 14px;
}

.hiw-tooltip .step-item span::after { content: '.'; }

.hiw-tooltip .step-item p {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.4;
  font-weight: 500;
}

/* Hide modal close since it's a tooltip */
.hiw-modal__close { display: none; }

/* ─── HEADER ─── */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(15, 15, 26, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.8);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.logo__icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo__icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.logo__text {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
  margin-right: var(--space-6);
}

.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link:hover, .nav__link.active {
  color: var(--text);
  background: var(--surface-2);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--surface-2);
  color: var(--text);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

[data-theme="light"] .moon-icon { display: block; }
[data-theme="light"] .sun-icon { display: none; }
:root:not([data-theme="light"]) .moon-icon { display: none; }
:root:not([data-theme="light"]) .sun-icon { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 1000;
  padding: var(--space-6);
  flex-direction: column;
  gap: var(--space-2);
  overflow-y: auto;
}

.mobile-nav.open { 
  display: flex !important; 
  animation: slideDown 0.3s ease forwards !important; 
  visibility: visible !important;
  opacity: 1 !important;
}

.mobile-nav .nav__link {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
}

/* ─── HERO SECTION ─── */
.hero {
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
  zoom: 0.9;
}

/* Animated gradient orbs */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  width: 500px;
  height: 500px;
}

.orb-1 {
  background: var(--primary);
  top: -200px;
  left: -100px;
  animation: orbFloat1 15s ease-in-out infinite;
}

.orb-2 {
  background: var(--secondary);
  top: -150px;
  right: -100px;
  animation: orbFloat2 18s ease-in-out infinite;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.hero__title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
  animation: slideUp 1.2s ease;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  animation: slideUp 1.2s ease 0.2s both;
}

.hero__search {
  animation: slideUp 0.6s ease 0.2s both;
  margin-bottom: var(--space-8);
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  animation: slideUp 0.6s ease 0.3s both;
}

.hero__stat {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
}

.hero__stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

/* Floating Illustration */
.hero__illustration {
  margin-top: calc(-1 * var(--space-4));
  display: flex;
  justify-content: center;
  align-items: center;
  height: 480px;
  width: 100%;
  position: relative;
  perspective: 1200px;
}

.hero-card-wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: sequentialHighlight 24s infinite;
  pointer-events: auto;
}

.hero-card-wrapper:hover {
  animation-play-state: paused;
  z-index: 100 !important;
  transform: translate(-50%, -50%) scale(1.3) !important;
}

.hero-card-wrapper:hover .float-item {
  filter: brightness(1.2) drop-shadow(0 0 30px var(--highlight-color));
  animation-play-state: paused;
}

.float-item {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

@keyframes sequentialHighlight {
  0%, 8.33%, 100% { transform: translate(-50%, -50%) scale(1); z-index: 5; filter: brightness(1) saturate(1); }
  4.16% { transform: translate(-50%, -50%) scale(1.25); z-index: 50; filter: brightness(1.2) saturate(1.2) drop-shadow(0 0 20px var(--highlight-color, var(--primary))); }
}

/* ─── CARD POSITIONS (Tightened) ─── */
.cat-pdf-wrap {
  animation-delay: 0s;
  --highlight-color: var(--cat-pdf);
}
.cat-pdf-wrap .float-item { transform: rotate(-4deg); animation: float 4s ease-in-out infinite; }

.cat-image-wrap {
  animation-delay: 2s;
  margin-left: 170px; margin-top: -80px;
  --highlight-color: var(--cat-image);
}
.cat-image-wrap .float-item { transform: rotate(8deg); animation: floatSlow 5s ease-in-out infinite 0.5s; }

.cat-code-wrap {
  animation-delay: 4s;
  margin-left: -190px; margin-top: -90px;
  --highlight-color: var(--cat-code);
}
.cat-code-wrap .float-item { transform: rotate(-10deg); animation: float 5.5s ease-in-out infinite 0.2s; }

.cat-calc-wrap {
  animation-delay: 6s;
  margin-left: 240px; margin-top: 80px;
  --highlight-color: var(--cat-calculator);
}
.cat-calc-wrap .float-item { transform: rotate(-6deg); animation: floatSlow 6s ease-in-out infinite 1s; }

.cat-security-wrap {
  animation-delay: 8s;
  margin-left: -260px; margin-top: 70px;
  --highlight-color: var(--cat-security);
}
.cat-security-wrap .float-item { transform: rotate(12deg); animation: float 5s ease-in-out infinite 0.4s; }

.cat-qr-wrap {
  animation-delay: 10s;
  margin-left: -380px; margin-top: -40px;
  --highlight-color: var(--cat-qr);
}
.cat-qr-wrap .float-item { transform: rotate(-8deg) scale(0.9); animation: floatSlow 7s ease-in-out infinite; opacity: 0.8; }

.cat-web-wrap {
  animation-delay: 12s;
  margin-left: 360px; margin-top: -50px;
  --highlight-color: var(--cat-web);
}
.cat-web-wrap .float-item { transform: rotate(10deg) scale(0.9); animation: float 8s ease-in-out infinite 0.3s; opacity: 0.8; }

.cat-text-wrap {
  animation-delay: 14s;
  margin-left: -100px; margin-top: 140px;
  --highlight-color: var(--cat-text);
}
.cat-text-wrap .float-item { transform: rotate(5deg); animation: floatSlow 5.5s ease-in-out infinite 1.2s; }

.cat-datetime-wrap {
  animation-delay: 16s;
  margin-left: 120px; margin-top: 130px;
  --highlight-color: var(--cat-datetime);
}
.cat-datetime-wrap .float-item { transform: rotate(-8deg); animation: float 6s ease-in-out infinite 0.6s; }

.cat-design-wrap {
  animation-delay: 18s;
  margin-left: -480px; margin-top: -120px;
  --highlight-color: var(--cat-design);
}
.cat-design-wrap .float-item { transform: rotate(-15deg) scale(0.8); animation: floatSlow 9s ease-in-out infinite; opacity: 0.7; }

.cat-data-wrap {
  animation-delay: 20s;
  margin-left: 460px; margin-top: -100px;
  --highlight-color: var(--cat-data);
}
.cat-data-wrap .float-item { transform: rotate(12deg) scale(0.85); animation: float 7s ease-in-out infinite 1.5s; opacity: 0.7; }

.cat-fun-wrap {
  animation-delay: 22s;
  margin-left: -450px; margin-top: 110px;
  --highlight-color: var(--cat-fun);
}
.cat-fun-wrap .float-item { transform: rotate(18deg) scale(0.8); animation: floatSlow 10s ease-in-out infinite 0.8s; opacity: 0.6; }

.cat-finance-wrap {
  animation-delay: 24s;
  margin-left: -200px; margin-top: -160px;
  --highlight-color: var(--cat-finance);
}
.cat-finance-wrap .float-item { transform: rotate(-5deg) scale(0.85); animation: float 6s ease-in-out infinite 1s; opacity: 0.75; }

.cat-productivity-wrap {
  animation-delay: 26s;
  margin-left: 200px; margin-top: -140px;
  --highlight-color: var(--cat-productivity);
}
.cat-productivity-wrap .float-item { transform: rotate(5deg) scale(0.8); animation: floatSlow 7s ease-in-out infinite 2s; opacity: 0.8; }

.cat-math-wrap {
  animation-delay: 28s;
  margin-left: -50px; margin-top: -240px;
  --highlight-color: var(--cat-math);
}
.cat-math-wrap .float-item { transform: rotate(10deg) scale(0.7); animation: float 6s ease-in-out infinite 3s; opacity: 0.7; }

.cat-geography-wrap {
  animation-delay: 30s;
  margin-left: -200px; margin-top: -100px;
  --highlight-color: var(--cat-geography);
}
.cat-geography-wrap .float-item { transform: rotate(-5deg) scale(0.85); animation: floatSlow 8s ease-in-out infinite 1s; opacity: 0.8; }

.cat-media-wrap {
  animation-delay: 32s;
  margin-right: -100px; margin-top: -300px;
  --highlight-color: var(--cat-media);
}
.cat-media-wrap .float-item { transform: rotate(-15deg) scale(0.9); animation: float 7s ease-in-out infinite 2s; opacity: 0.75; }

.cat-css-wrap {
  animation-delay: 34s;
  margin-left: -150px; margin-top: -200px;
  --highlight-color: var(--cat-css);
}
.cat-css-wrap .float-item { transform: rotate(8deg) scale(0.8); animation: floatSlow 6s ease-in-out infinite 1.5s; opacity: 0.7; }

/* ─── PARTICLES ─── */
.hero__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.3;
  animation: pulse 3s infinite;
}

.p-1 { left: 15%; top: 25%; }
.p-2 { right: 20%; top: 40%; transform: scale(1.5); background: var(--secondary); }
.p-3 { left: 40%; bottom: 30%; transform: scale(0.8); background: var(--accent); }
.p-4 { right: 10%; top: 15%; background: var(--warning); }
.p-5 { left: 5%; bottom: 10%; transform: scale(1.2); }

.code-doc {
  right: calc(50% + 90px);
  top: 20px;
  animation: float 6s ease-in-out infinite 1s;
  transform: rotate(-12deg);
  filter: drop-shadow(0 20px 40px rgba(59, 130, 246, 0.25));
}

.calc-doc {
  left: calc(50% - 160px);
  bottom: -20px;
  animation: floatSlow 4.5s ease-in-out infinite 1.5s;
  transform: rotate(8deg);
  filter: drop-shadow(0 15px 30px rgba(255, 179, 71, 0.2));
}

/* Particles */
.hero__particle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(1px);
  z-index: 1;
}

.p-1 { top: 0; left: 20%; animation: orbFloat1 10s infinite; width: 8px; height: 8px; }
.p-2 { bottom: 20%; right: 15%; animation: orbFloat2 12s infinite; width: 14px; height: 14px; background: var(--secondary); }
.p-3 { top: 40%; left: 10%; animation: orbFloat1 15s infinite; opacity: 0.15; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-20px) rotate(-3deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(10px) rotate(8deg); }
  50% { transform: translateY(-15px) rotate(12deg); }
}


/* ─── TOOLS SECTION ─── */
.tools-section {
  padding: var(--space-4) 0 var(--space-16);
}

.tools-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.tools-section__filters {
  margin-bottom: var(--space-6);
}

/* ─── TOOL GRID ─── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-5);
}

.related-tools .tool-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.related-tools .tool-card {
  width: 100%;
  max-width: 250px;
}

.tool-grid--hidden { display: none; }

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-16);
  color: var(--text-muted);
}

.no-results h3 { margin-bottom: var(--space-2); color: var(--text); }

/* ─── TOOL PAGE LAYOUT ─── */
.tool-page {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-16);
}

.tool-page--wide {
  max-width: 1200px;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-12) 0 var(--space-6);
  margin-top: auto;
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.footer__brand p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-3);
  line-height: 1.7;
}

.footer__col-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__links a:hover { color: var(--primary); }

.footer__legal {
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0;
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  justify-content: center;
  align-items: center;
}

.footer__legal-links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-weight: 700;
}

.footer__legal-links a:hover { color: var(--primary); }

.footer__legal-links a:not(:last-child)::after {
  content: "|";
  color: var(--text-muted);
  opacity: 0.5;
  margin-left: var(--space-4);
  pointer-events: none;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer__privacy {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 500;
}

.footer__copy {
  font-size: var(--text-sm);
  color: var(--text-subtle);
}

/* ─── INLINE TWO-COL ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.two-col--3-1 {
  grid-template-columns: 3fr 1fr;
}

/* ─── PANEL / CARD ─── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.panel--elevated {
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
}

/* ─── SECTION TITLE ─── */
.section-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

/* ─── HELPERS ─── */
.hidden { display: none !important; }
.flex   { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-sm { font-size: var(--text-sm); }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }

  .logo__img { height: 32px; }
  .logo__text { font-size: 20px; }

  .hero { padding: var(--space-10) 0 var(--space-8); }

  .hero__stats {
    gap: var(--space-4);
  }

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

  .tool-card { padding: var(--space-4); }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .two-col--3-1 {
    grid-template-columns: 1fr;
  }

  .steps-row {
    grid-template-columns: 1fr;
  }

  .thumbnail-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }

  .tool-page {
    padding: var(--space-5) var(--space-4) var(--space-10);
  }

  .tool-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .compare-block {
    grid-template-columns: 1fr;
  }
  .hero__illustration {
    height: 200px;
    margin-top: var(--space-4);
  }
  .float-item {
    transform: scale(0.6) !important;
  }
  .cat-design-card, .cat-data-card, .cat-fun-card, .cat-web-card, .cat-qr-card {
    display: none;
  }
  .cat-pdf-card { left: 50%; top: 50%; transform: translate(-50%, -50%) scale(1) !important; }
}

@media (max-width: 480px) {
  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }
  .result-actions {
    flex-direction: column;
    width: 100%;
  }
  .result-actions .btn {
    width: 100%;
  }
}
