/* ==========================================================================
   ToolZoop — Teal Premium theme (B4)
   One stylesheet, no external fonts. Mobile-first, breakpoints 640px / 1024px.
   ========================================================================== */

:root {
  --cream: #F4FAF7;
  --white: #FFFFFF;
  --lavender: #B9C8FF;
  --mint: #B8F0D8;
  --peach: #FFD9A8;
  --butter: #FFEC99;
  --sky: #BFE3FF;
  --pink: #CDEFF2;
  --lavender-soft: #E2F3F1;
  --plum: #0C2A60;
  --mauve: #3D5A96;
  --accent: #00A7A1;
  --ink-soft: #4A5B7D;
  --line: #DCE9E7;
  --ok: #17785A;
  --err: #B3261E;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 8px 24px rgba(12, 42, 96, .08), 0 2px 6px rgba(12, 42, 96, .05);
  --shadow-lg: 0 16px 40px rgba(12, 42, 96, .12), 0 3px 10px rgba(12, 42, 96, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--cream); color: var(--plum);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg, canvas { max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--plum); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--plum); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.ic { width: 24px; height: 24px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; line-height: 1.1;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn .ic { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }
.btn-plum { background: var(--plum); color: #fff; }
.btn-plum:hover { background: var(--mauve); color: #fff; }
.btn-ghost { background: #fff; color: var(--plum); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--lavender); color: var(--plum); }
.btn-soft { background: var(--lavender-soft); color: var(--plum); }
.btn-soft:hover { background: var(--lavender); color: var(--plum); }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.02rem; }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: .88rem; }
.btn[disabled], .btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: inline-grid; place-items: center;
  background: var(--lavender-soft); color: var(--plum); cursor: pointer;
}
.icon-btn:hover { background: var(--lavender); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 14px rgba(43,34,64,.07); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--plum); font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; margin-right: auto; }
.logo img { max-height: 44px; width: auto; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-a { color: var(--plum); }
.logo-b { color: var(--accent); }
.main-nav { display: none; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.menu-toggle .ic-close { display: none; }
.menu-toggle[aria-expanded="true"] .ic-close { display: block; }
.menu-toggle[aria-expanded="true"] .ic-menu { display: none; }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .search-toggle { background: var(--plum); color: #fff; }
  .search-toggle:hover { background: var(--mauve); }
}
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-item { position: relative; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 12px;
  background: none; border: 0; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: .97rem; color: var(--plum);
}
.nav-btn:hover, .nav-btn[aria-expanded="true"], .nav-btn.is-current { background: var(--lavender-soft); }
.nav-chev { width: 16px; height: 16px; transition: transform .15s; }
.nav-btn[aria-expanded="true"] .nav-chev { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 270px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 10px; opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s;
}
.nav-item.is-open .nav-menu { opacity: 1; visibility: visible; }
.nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--plum); text-decoration: none; font-weight: 600; font-size: .95rem; min-height: 44px; }
.nav-menu a:hover { background: var(--cream); }
.nav-menu-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.nav-menu-ic .ic { width: 20px; height: 20px; }
.nav-menu-all { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px !important; justify-content: space-between; color: var(--accent) !important; }
.nav-menu-all .ic { width: 18px; height: 18px; }

/* Search panel (header) */
.search-panel { border-top: 1px solid var(--line); background: #fff; padding: 12px 0 16px; }

/* Mobile nav */
.mobile-nav { border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 8px 0 16px; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }
.m-acc { border-bottom: 1px solid var(--line); }
.m-acc summary { display: flex; align-items: center; gap: 12px; min-height: 52px; cursor: pointer; font-weight: 700; list-style: none; }
.m-acc summary::-webkit-details-marker { display: none; }
.m-acc summary small { margin-left: auto; color: var(--ink-soft); font-weight: 600; }
.m-acc-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.m-acc-ic .ic { width: 20px; height: 20px; }
.m-acc-chev { width: 20px; height: 20px; transition: transform .15s; }
.m-acc[open] .m-acc-chev { transform: rotate(180deg); }
.m-acc ul { list-style: none; margin: 0; padding: 0 0 10px 12px; }
.m-acc li a { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--plum); text-decoration: none; font-weight: 500; }
.m-acc li a .ic { width: 20px; height: 20px; color: var(--mauve); }
.m-acc-all { color: var(--accent) !important; font-weight: 700 !important; }
.m-all { display: flex; align-items: center; gap: 8px; min-height: 52px; font-weight: 700; text-decoration: none; }
.m-all .ic { width: 18px; height: 18px; }

/* ---------- Tints ---------- */
.tint-lavender { background: var(--lavender); }
.tint-mint { background: var(--mint); }
.tint-peach { background: var(--peach); }
.tint-butter { background: var(--butter); }
.tint-sky { background: var(--sky); }
.tint-pink { background: var(--pink); }
/* Card palette: assigned by position in each grid (zt_card_color_class), so neighbours never share a colour. All pass WCAG AA with plum text. */
.cc-0 { background: #B9C8FF; } /* lavender */
.cc-1 { background: #B8F0D8; } /* mint */
.cc-2 { background: #FFD9A8; } /* peach */
.cc-3 { background: #BFE3FF; } /* sky */
.cc-4 { background: #FFEC99; } /* butter */
.cc-5 { background: #CDEFF2; } /* blush */
.cc-6 { background: #BFE8E0; } /* orchid */
.cc-7 { background: #D3EBBE; } /* sage */
.cc-8 { background: #B5EBEB; } /* aqua */
.cc-9 { background: #FFE2A8; } /* apricot */
.cc-10 { background: #C9CFFF; } /* periwinkle */
.cc-11 { background: #FFC8C2; } /* rose */
.cc-12 { background: #E6F4B0; } /* lime */
.cc-13 { background: #E9D6C6; } /* sand */

/* ---------- Hero ---------- */
.hero { padding: 40px 0 24px; text-align: center; }
@media (min-width: 640px) { .hero { padding: 56px 0 32px; } }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.badge { display: inline-block; background: var(--lavender-soft); border: 1px solid #C7D8FF; color: var(--plum); font-size: .85rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero-title { font-size: clamp(2rem, 6.4vw, 3.4rem); margin-bottom: 12px; }
.accent { color: var(--accent); }
.hero-sub { font-size: clamp(1rem, 2.4vw, 1.15rem); color: var(--ink-soft); max-width: 640px; margin-bottom: 24px; }

/* ---------- Search box ---------- */
.search-box { position: relative; display: flex; align-items: center; width: 100%; max-width: 760px; background: var(--lavender); border-radius: 999px; padding: 6px 6px 6px 16px; gap: 8px; box-shadow: var(--shadow); text-align: left; }
.search-box-ic { display: grid; place-items: center; color: var(--plum); }
.search-box-ic .ic { width: 22px; height: 22px; }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 44px; font-size: 1rem; outline: none; color: var(--plum); }
.search-box input::placeholder { color: #2E4470; opacity: .85; }
.search-box input::-webkit-search-cancel-button { cursor: pointer; }
.search-box:focus-within { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--accent); }
.search-box .btn { flex: none; }
.search-box-hero .btn span { display: none; }
@media (min-width: 640px) { .search-box-hero { padding: 8px 8px 8px 22px; } .search-box-hero .btn { padding: 12px 26px; min-height: 50px; } .search-box-hero .btn span { display: inline; } }
.search-box-sm { max-width: 640px; box-shadow: none; }
.page-hero .search-box-sm { margin-top: 8px; }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; max-height: 360px; overflow-y: auto; text-align: left;
}
.search-results a, .search-results .sr-empty { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: var(--plum); min-height: 48px; }
.search-results a:hover, .search-results a.is-active { background: var(--lavender-soft); }
.search-results a .ic { width: 22px; height: 22px; color: var(--mauve); }
.search-results strong { display: block; font-size: .98rem; }
.search-results small { display: block; color: var(--ink-soft); font-size: .8rem; }
.search-results .sr-empty { color: var(--ink-soft); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 0; margin-top: 8px; position: relative; }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 8px; position: relative; }
.stat-ic { width: 26px; height: 26px; color: var(--mauve); margin-bottom: 3px; }
.stat-num { font-size: clamp(1.1rem, 3vw, 1.45rem); font-weight: 800; line-height: 1.15; }
.stat-word { font-size: clamp(.95rem, 2.6vw, 1.2rem); }
.stat-label { color: var(--ink-soft); font-size: .78rem; }
.stats .stat:nth-child(odd)::after { content: ""; position: absolute; right: 0; top: 18%; bottom: 18%; width: 1px; background: var(--line); }
.stats .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); padding: 12px 0; }
  .stats .stat:nth-child(-n+2) { border-bottom: 0; }
  .stats .stat:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 18%; bottom: 18%; width: 1px; background: var(--line); }
}

/* ---------- Sections ---------- */
.section { margin-top: 44px; }
@media (min-width: 640px) { .section { margin-top: 56px; } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head-inline { justify-content: flex-start; column-gap: 14px; }
.section-head-inline p { margin: 0; color: var(--ink-soft); }
.see-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; min-height: 44px; }
.see-all .ic { width: 18px; height: 18px; }
.h-ic { width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; }
.h-ic .ic { width: 22px; height: 22px; }

/* Pills */
.pills { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 8px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
@media (min-width: 640px) { .pills { flex-wrap: wrap; justify-content: center; overflow: visible; } }
.pill { flex: none; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 0; cursor: pointer; background: var(--mauve); color: #fff; font-weight: 600; font-size: .92rem; }
.pill:hover { background: #1E4472; }
.pill.is-active { background: var(--plum); box-shadow: 0 0 0 3px var(--lavender); }

/* Tool cards (popular grid) */
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .tool-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; } }
.tool-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px;
  min-height: 132px; padding: 20px 12px; border-radius: var(--radius); color: var(--plum); text-decoration: none;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
  background-image: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0));
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--plum); }
.tool-card-ic .ic { width: 40px; height: 40px; stroke-width: 1.6; }
.tool-card-name { font-weight: 700; font-size: .98rem; line-height: 1.25; }
@media (min-width: 1024px) { .tool-card { min-height: 148px; } .tool-card-ic .ic { width: 46px; height: 46px; } .tool-card-name { font-size: 1.04rem; } }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-card { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 18px; border-radius: var(--radius); color: var(--plum); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--plum); }
.cat-card-ic .ic { width: 38px; height: 38px; stroke-width: 1.6; }
.cat-card-txt strong { display: block; font-size: 1.08rem; }
.cat-card-txt small { color: #33477A; font-size: .88rem; }

/* Why cards */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 379px) { .why-grid { grid-template-columns: 1fr; } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.why-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 14px; text-align: center; }
.why-ic { width: 46px; height: 46px; color: var(--plum); stroke-width: 1.5; margin-bottom: 8px; }
.why-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.why-card p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* FAQ */
.faq { background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px; cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--cream); }
.faq-chev { width: 20px; height: 20px; transition: transform .15s; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-a { padding: 0 16px 14px; color: var(--ink-soft); }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; background: linear-gradient(100deg, #D9E8FF 0%, #DFF2EE 50%, #FFEC99 100%); padding: 40px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1.3fr 1.3fr; } }
.footer-h { font-size: 1.05rem; margin-bottom: 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li a { display: inline-flex; align-items: center; min-height: 32px; color: var(--plum); text-decoration: none; font-size: .93rem; }
.footer-col li a:hover { text-decoration: underline; }
.footer-legal { columns: 2; column-gap: 16px; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 1024px) { .footer-brand { grid-column: auto; } }
.footer-brand .logo { font-size: 1.3rem; }
.footer-brand p { margin: 8px 0 0; font-size: .93rem; }
.footer-bottom { border-top: 1px solid rgba(43,34,64,.15); margin-top: 26px; padding-top: 14px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 639px) { .footer-col li a { min-height: 44px; } }

/* ---------- Cookie bar & toast ---------- */
.cookie-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 760px; margin: 0 auto;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line);
}
.cookie-bar p { margin: 0; font-size: .92rem; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@media (min-width: 640px) { .cookie-bar { flex-direction: row; align-items: center; } .cookie-actions { flex: none; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--plum); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 70; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Ads (reserved space, only rendered when configured) ---------- */
.ad-slot { max-width: 1200px; margin: 32px auto 0; padding: 0 16px; min-height: 100px; text-align: center; overflow: hidden; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 22px 0 6px; }
.page-hero h1 { margin-bottom: 8px; }
.lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 820px; }
.lead p { margin: 0 0 .6em; }
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .88rem; color: var(--ink-soft); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "›"; margin: 0 6px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.crumbs a:hover { color: var(--plum); text-decoration: underline; }
.cat-hero, .tool-head { display: flex; gap: 16px; align-items: flex-start; }
.cat-hero-ic, .tool-head-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; flex: none; box-shadow: var(--shadow); }
.cat-hero-ic .ic, .tool-head-ic .ic { width: 32px; height: 32px; }
@media (max-width: 639px) { .cat-hero-ic, .tool-head-ic { width: 48px; height: 48px; border-radius: 14px; } .cat-hero-ic .ic, .tool-head-ic .ic { width: 26px; height: 26px; } }
.card-pad { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 18px; }
@media (min-width: 640px) { .card-pad { padding: 30px 32px; } }

.row-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .row-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 1024px) { .row-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); color: var(--plum); text-decoration: none; box-shadow: var(--shadow); min-height: 76px; transition: transform .15s, box-shadow .15s; }
.tool-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--plum); }
.tool-row-ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.6); display: grid; place-items: center; flex: none; }
.tool-row-ic .ic { width: 28px; height: 28px; }
.tool-row-txt strong { display: block; font-size: 1rem; }
.tool-row-txt small { display: block; color: #33477A; font-size: .87rem; line-height: 1.4; }

.prose { max-width: none; }
.prose h2 { margin-top: 1.4em; font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .94rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--cream); }
.prose code { font-family: var(--mono); background: var(--lavender-soft); padding: 1px 6px; border-radius: 6px; font-size: .9em; word-break: break-word; }
.prose pre { background: #0C2A60; color: #EAF6F3; padding: 14px; border-radius: 12px; overflow-x: auto; font-size: .88rem; }
.prose pre code { background: none; padding: 0; color: inherit; }
.legal .prose { max-width: 860px; }
.legal { display: grid; gap: 24px; }

/* Tool pages */
.tool-section { margin-top: 18px; }
.tool-card-main { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px 14px; border: 1px solid var(--line); }
@media (min-width: 640px) { .tool-card-main { padding: 26px; } }
.privacy-note { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: .88rem; color: var(--ink-soft); margin: 12px 0 0; text-align: center; }
.privacy-note .ic { width: 18px; height: 18px; color: var(--ok); }
.tool-content { display: grid; gap: 28px; margin-top: 32px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; min-height: 34px; padding-top: 4px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--lavender); font-weight: 800; display: grid; place-items: center; }

/* ---------- Tool UI kit ---------- */
.tz-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tz-row + .tz-row, .tz-block + .tz-block, .tz-row + .tz-block, .tz-block + .tz-row { margin-top: 14px; }
.tz-grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .tz-grid2 { grid-template-columns: 1fr 1fr; } }
.tz-grid3 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .tz-grid3 { grid-template-columns: repeat(3, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field + .field { margin-top: 12px; }
.tz-grid2 .field + .field, .tz-grid3 .field + .field, .tz-row .field + .field { margin-top: 0; }
.field > label, .tz-label { font-weight: 700; font-size: .92rem; }
.field small, .tz-hint { color: var(--ink-soft); font-size: .84rem; }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], input[type="time"], input[type="url"], input[type="password"], input[type="tel"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--plum); font-size: 1rem;
}
textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
textarea.tz-mono, .tz-mono { font-family: var(--mono); font-size: .92rem; }
input:focus, select:focus, textarea:focus { border-color: var(--lavender); outline: none; box-shadow: 0 0 0 3px var(--lavender-soft); }
input[type="color"] { width: 54px; height: 46px; border: 2px solid var(--line); border-radius: 12px; padding: 3px; background: #fff; cursor: pointer; }
input[type="range"] { width: 100%; accent-color: var(--plum); min-height: 44px; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--plum); flex: none; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 500; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--lavender-soft); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button, .seg label { min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; }
.seg button[aria-pressed="true"], .seg button.is-active { background: var(--plum); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; font-size: .9rem; }
.chip:hover { border-color: var(--lavender); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }

.stat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .stat-tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { border-radius: 16px; padding: 12px 14px; background: var(--cream); border: 1px solid var(--line); }
.tile b { display: block; font-size: 1.5rem; line-height: 1.2; font-weight: 800; word-break: break-word; }
.tile span { font-size: .85rem; color: var(--ink-soft); }
.tile.tint-lavender, .tile.tint-mint, .tile.tint-peach, .tile.tint-butter, .tile.tint-sky, .tile.tint-pink { border-color: transparent; }

.result-box { margin-top: 16px; border-radius: 18px; background: var(--cream); border: 1px solid var(--line); padding: 16px; }
.result-big { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 800; line-height: 1.15; word-break: break-word; }
.output { width: 100%; font-family: var(--mono); font-size: .9rem; white-space: pre-wrap; word-break: break-word; background: #F2FAF8; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 120px; max-height: 520px; overflow: auto; margin: 0; }
.notice { padding: 12px 14px; border-radius: 14px; background: var(--butter); font-size: .94rem; margin: 0 0 12px; }
.notice p { margin: 0; }
.notice-ok { background: #DDF6EA; color: #0F5C44; }
.notice-err { background: #FDE3E1; color: #8A1F18; }
.tz-error { color: var(--err); font-weight: 600; font-size: .92rem; }
.tz-ok { color: var(--ok); font-weight: 600; font-size: .92rem; }

.dropzone { position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px;
  min-height: 190px; padding: 24px 16px; border: 2.5px dashed #A9C6F5; border-radius: 18px; background: #F2FAF8; cursor: pointer; transition: background .15s, border-color .15s;
}
.dropzone:hover, .dropzone.is-over { background: var(--lavender-soft); border-color: var(--accent); }
.dropzone .ic { width: 44px; height: 44px; color: var(--mauve); }
.dropzone strong { font-size: 1.08rem; }
.dropzone small { color: var(--ink-soft); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }

.file-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.file-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); }
.file-thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #fff; display: grid; place-items: center; overflow: hidden; }
.file-thumb .ic { width: 28px; height: 28px; color: var(--mauve); }
.file-meta { min-width: 0; }
.file-meta strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
.file-meta small { color: var(--ink-soft); font-size: .84rem; display: block; }
.file-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.file-actions .icon-btn { width: 44px; height: 44px; background: #fff; border: 1px solid var(--line); }
.file-actions .icon-btn .ic { width: 20px; height: 20px; }
@media (max-width: 479px) {
  .file-item { grid-template-columns: 48px 1fr; }
  .file-thumb { width: 48px; height: 48px; }
  .file-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
.saved { color: var(--ok); font-weight: 700; }
.bigger { color: var(--err); font-weight: 700; }
.progress { height: 10px; border-radius: 999px; background: var(--lavender-soft); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--plum); width: 0; transition: width .2s; }

.limit-list { display: grid; gap: 10px; }
.limit-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: .92rem; }
.limit-row .progress { grid-column: 1 / -1; }
.limit-row.is-over .progress > span { background: var(--err); }
.limit-row.is-over b { color: var(--err); }

.fancy-list { display: grid; gap: 10px; margin-top: 16px; }
.fancy-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); }
.fancy-item small { display: block; color: var(--ink-soft); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.fancy-item div { font-size: 1.15rem; word-break: break-word; min-width: 0; }

.preview-wrap { background: repeating-conic-gradient(#E8F3F1 0% 25%, #fff 0% 50%) 50% / 20px 20px; border-radius: 16px; padding: 12px; display: grid; place-items: center; min-height: 160px; border: 1px solid var(--line); }
.preview-wrap img, .preview-wrap canvas { max-height: 380px; width: auto; border-radius: 8px; }
.qr-out { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 768px) { .qr-out { grid-template-columns: 1.2fr 1fr; } }
.qr-preview { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; place-items: center; }
.qr-preview canvas { width: 100%; max-width: 300px; height: auto; image-rendering: pixelated; }

.pw-out { display: flex; gap: 8px; align-items: stretch; }
.pw-out input { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; }
.meter { height: 10px; border-radius: 999px; background: var(--lavender-soft); overflow: hidden; margin-top: 10px; }
.meter > span { display: block; height: 100%; width: 0; transition: width .2s, background-color .2s; }
.pw-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.pw-list li { display: flex; gap: 8px; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; font-family: var(--mono); word-break: break-all; }
.pw-list li span { flex: 1; min-width: 0; }

.bmi-scale { position: relative; height: 14px; border-radius: 999px; margin: 18px 8px 6px; background: linear-gradient(90deg, #BFE3FF 0 14%, #B8F0D8 14% 40%, #FFEC99 40% 60%, #FFD9A8 60% 80%, #A8DFF5 80% 100%); }
.bmi-pin { position: absolute; top: -6px; width: 6px; height: 26px; border-radius: 4px; background: var(--plum); transform: translateX(-50%); transition: left .25s; }
.bmi-legend { position: relative; height: 18px; margin: 0 8px; font-size: .78rem; color: var(--ink-soft); }
.bmi-legend span { position: absolute; top: 0; transform: translateX(-50%); }

.donut { width: 160px; height: 160px; border-radius: 50%; position: relative; margin: 0 auto; }
.donut::after { content: ""; position: absolute; inset: 26px; background: var(--cream); border-radius: 50%; }
.legend { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: .92rem; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); margin-top: 12px; max-height: 480px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.table-wrap th, .table-wrap td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-wrap th:first-child, .table-wrap td:first-child { text-align: left; }
.table-wrap thead th { position: sticky; top: 0; background: var(--cream); z-index: 1; }

.json-out .k { color: #00A7A1; }
.json-out .s { color: #17785A; }
.json-out .n { color: #1F5FA8; }
.json-out .b { color: #B0451C; }
.json-out .z { color: #7586A3; }

.sortable-item { cursor: grab; }
.sortable-item.is-dragging { opacity: .5; }

/* Contact form */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .field + .field { margin-top: 14px; }
.form .btn { margin-top: 16px; }
.contact-card { max-width: 860px; }

/* 404 */
.hero-404 { padding-top: 56px; }

/* Print: just content */
@media print { .site-header, .site-footer, .cookie-bar, .ad-slot { display: none !important; } body { background: #fff; } }
.tz-row > input, .tz-row > select { width: auto; flex: 1 1 90px; min-width: 70px; }
.result-big small { display: block; font-size: .85rem; font-weight: 500; color: var(--ink-soft); margin-top: 4px; }
.copyable { cursor: pointer; }
.tz-row > input[type="color"], .tz-row > input[type="checkbox"] { flex: none; width: 54px; min-width: 0; }
.tz-row > input[type="checkbox"] { width: 20px; }
.seg { border-radius: 18px; }
details.tz-block { margin-top: 14px; }
.pw-out input { flex: 1; min-width: 0; }
@media (max-width: 400px) { .pw-out .btn span { display: none; } }
.search-box input:focus { box-shadow: none; border: 0; outline: none; }
.tile.tint-lavender { background: var(--lavender); }
.tile.tint-mint { background: var(--mint); }
.tile.tint-peach { background: var(--peach); }
.tile.tint-butter { background: var(--butter); }
.tile.tint-sky { background: var(--sky); }
.tile.tint-pink { background: var(--pink); }
.tile.tint-lavender span, .tile.tint-mint span, .tile.tint-peach span, .tile.tint-butter span, .tile.tint-sky span, .tile.tint-pink span { color: #22355C; }
.field + .tz-row, .tz-grid2 + .tz-row, .tz-grid3 + .tz-row, .dropzone + .tz-row, .file-list + .tz-row, .seg + .tz-block { margin-top: 14px; }
@media (max-width: 400px) { .badge { font-size: .76rem; padding: 6px 12px; } }

/* ---- 7-category nav: tighten on small desktops ---- */
@media (min-width: 1024px) and (max-width: 1199px) { .nav-btn { padding: 8px 8px; font-size: .92rem; } }

/* ---- Device tests ---- */
.dev-stage { position: relative; border-radius: 18px; overflow: hidden; background: var(--plum); aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; }
.dev-stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.dev-stage video.is-mirrored { transform: scaleX(-1); }
.dev-stage .dev-placeholder { padding: 20px; text-align: center; font-weight: 600; }
.wave-canvas { display: block; width: 100%; height: 140px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); }
.level-meter { height: 22px; border-radius: 999px; background: var(--lavender-soft); overflow: hidden; border: 1px solid var(--line); }
.level-meter span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #7DD6B0, #FFC727 70%, #F5B98A); transition: width .06s linear; }
.dev-status { margin: 0 0 14px; }
.cps-area { width: 100%; min-height: 260px; border-radius: 22px; border: 2px dashed var(--line); background: var(--mint); color: var(--plum); font-weight: 800; font-size: clamp(1.2rem, 4vw, 1.7rem); cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; display: grid; place-items: center; padding: 20px; text-align: center; }
.cps-area:active { background: #BFEBD7; }
.cps-area.is-running { background: var(--lavender); border-style: solid; }
.cps-area.is-done { background: var(--butter); cursor: default; }
.cps-area small { display: block; font-size: .9rem; font-weight: 600; margin-top: 6px; }
.inv-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .inv-list { grid-template-columns: repeat(2, 1fr); } }
.inv-item { display: flex; align-items: center; gap: 12px; justify-content: space-between; border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; background: #fff; }
.inv-item b { display: block; font-size: .95rem; }
.inv-item code { font-size: .82rem; color: var(--ink-soft); }
.ts-table input { min-height: 40px; padding: 6px 8px; width: 100%; min-width: 92px; }
.ts-table td { vertical-align: middle; }
.snap-img { display: block; max-width: 100%; border-radius: 14px; margin-top: 12px; border: 1px solid var(--line); }
.prose .table-wrap table { min-width: 0; display: table; margin: 0; }
.prose .table-wrap th { white-space: normal; }

/* Header nav: Home link styled like the category buttons (user request, 2026-11-29) */
.nav-list a.nav-btn { text-decoration: none; }

/* ==========================================================================
   B4 PREMIUM THEME (2026-11-30) — Layout B structure: rich teal-gradient hero
   (colourful-style design, brand teal colours), clean TinyWow-pale body,
   one-colour cards, navy footer, Font Awesome icons. Premium startup finish.
   ========================================================================== */
::selection { background: #BFE8E2; }

/* ---- Font Awesome <i> icons in the old .ic boxes ---- */
i.ic { display: inline-grid; place-items: center; font-size: 20px; line-height: 1; font-style: normal; }
.btn i.ic { font-size: 16px; }
i.nav-chev { font-size: 13px; width: 16px; height: 16px; }
.search-box-ic i.ic { font-size: 20px; }
.tool-card-ic i.ic { font-size: 29px; }
.cat-card-ic i.ic { font-size: 29px; }
.cat-hero-ic i.ic, .tool-head-ic i.ic { font-size: 27px; }
.tool-row-ic i.ic { font-size: 23px; }
.nav-menu-ic i.ic { font-size: 17px; }
.m-acc-ic i.ic { font-size: 18px; }
.m-acc li a i.ic { font-size: 16px; }
.search-results a i.ic { font-size: 20px; }
i.stat-ic { font-size: 22px; width: 26px; height: 26px; }
i.why-ic { font-size: 40px; width: 46px; height: 46px; }
i.faq-chev { font-size: 15px; width: 20px; height: 20px; }
.see-all i.ic { font-size: 15px; width: 18px; height: 18px; }
.h-ic i.ic { font-size: 20px; }
.dropzone i.ic { font-size: 40px; width: 44px; height: 44px; }
.file-thumb i.ic { font-size: 24px; }
.privacy-note i.ic { font-size: 15px; width: 18px; height: 18px; }
.hero-pill i.ic { font-size: 14px; width: auto; height: auto; }

/* ---- Buttons: solid teal (user, 2026-11-30: no gradient on buttons) ---- */
.btn-plum { background: #00A7A1; color: #fff; box-shadow: 0 8px 20px rgba(0, 126, 143, .26); }
.btn-plum:hover { background: #00B8B1; color: #fff; }
.btn-soft { background: #E2F3F1; }
.btn-soft:hover { background: #CFEDE8; color: var(--plum); }
.btn-ghost:hover { border-color: #9AD1C8; }
.icon-btn { background: #E2F3F1; }
.icon-btn:hover { background: #CFEDE8; }
.search-toggle { background: #00A7A1; color: #fff; }
.search-toggle:hover { background: #00B8B1; }

/* ---- Header ---- */
.site-header { box-shadow: 0 2px 16px rgba(12, 42, 96, .08); }
.nav-btn.is-current { color: var(--accent); }

/* ---- Hero: colourful-style layered gradient, brand teal ---- */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: 54px 0 62px;
  background:
    radial-gradient(680px 320px at 12% -40px, rgba(150, 255, 242, .5), rgba(150, 255, 242, 0) 60%),
    radial-gradient(780px 430px at 97% 118%, rgba(0, 40, 92, .55), rgba(0, 40, 92, 0) 62%),
    linear-gradient(118deg, #00CDBF 0%, #00A7A1 38%, #007E8F 72%, #00597A 100%);
}
@media (min-width: 640px) { .hero { padding: 72px 0 78px; } }
.hero::before { content: ""; position: absolute; width: 430px; height: 430px; border-radius: 50%; background: rgba(255, 255, 255, .13); top: -170px; right: -100px; }
.hero::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(0, 32, 72, .16); bottom: -150px; left: -80px; }
.hero-inner { position: relative; z-index: 1; }
.hero .badge { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.hero-title { color: #fff; }
.hero .accent { color: #fff; box-shadow: inset 0 -.3em 0 rgba(255, 199, 39, .85); }
.hero-sub { color: rgba(255, 255, 255, .92); }
.hero-pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.hero-pill { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: var(--plum); font-size: .86rem; font-weight: 700; padding: 8px 16px; border-radius: 999px; box-shadow: 0 8px 20px rgba(0, 45, 60, .22); }
.hero-pill i.ic { color: var(--accent); }

/* ---- Search boxes ---- */
.search-box { background: #fff; border: 2px solid var(--accent); }
.search-box-ic { color: var(--accent); }
.search-panel[hidden] { display: none !important; }
.hero .search-box { border: 0; box-shadow: 0 18px 42px rgba(0, 45, 60, .35); }
.hero .search-box:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .65), 0 0 0 6px var(--accent); }
.search-results a i.ic, .search-results a .ic { color: var(--accent); }

/* ---- Stats ---- */
.stats { border: 1px solid var(--line); }
.stat-ic { color: var(--accent); }

/* ---- Filter pills ---- */
.pill { background: #fff; border: 1.5px solid var(--line); color: var(--plum); }
.pill:hover { background: #fff; border-color: var(--accent); color: var(--plum); }
.pill.is-active { background: #00A7A1; border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(0, 126, 143, .3); }

/* ---- Tool cards: white card, dark teal stroke, soft shadow (user, 2026-11-30) ---- */
.tool-card { background: #fff; border: 1.5px solid #007E8F; box-shadow: 0 6px 24px rgba(12, 42, 96, .07); }
.tool-card-ic { width: 62px; height: 62px; border-radius: 16px; background: #C8EAE0; display: grid; place-items: center; color: var(--accent); }
.see-all-row { text-align: center; margin-top: 30px; }

/* ---- Category cards: NEW premium design (user, 2026-11-30) ---- */
.cat-card { position: relative; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; border-radius: 20px; background: linear-gradient(135deg, #E6F6F1 0%, #CDEEE4 100%); border: 1px solid #BFE3D8; overflow: hidden; }
.cat-card::after { content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .45); top: -55px; right: -35px; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #9AD1C8; }
.cat-card-ic { width: 56px; height: 56px; border-radius: 16px; background: #C8EAE0; display: grid; place-items: center; color: var(--accent); flex: none; box-shadow: 0 6px 16px rgba(12, 42, 96, .1); position: relative; z-index: 1; }
.cat-card-txt { display: flex; flex-direction: column; align-items: flex-start; position: relative; z-index: 1; }
.cat-card-txt strong { font-size: 1.07rem; }
.cat-card-txt small { display: inline-block; margin-top: 6px; background: rgba(255, 255, 255, .85); color: #00707A; font-weight: 700; font-size: .76rem; padding: 3px 11px; border-radius: 999px; }
.cat-card-arrow { position: absolute; right: 16px; bottom: 16px; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--accent); box-shadow: 0 4px 12px rgba(12, 42, 96, .12); transition: background .18s ease, color .18s ease, transform .18s ease; z-index: 1; }
.cat-card-arrow i.ic { font-size: 15px; width: 18px; height: 18px; }
.cat-card:hover .cat-card-arrow { background: #00A7A1; color: #fff; transform: translateX(3px); }

/* ---- Tool rows (category / all-tools pages) ---- */
.tool-row { background: #fff; border: 1.5px solid #007E8F; }
.tool-row-ic { background: #E2F3F1; color: var(--accent); }
.tool-row-txt small { color: var(--ink-soft); }

/* ---- Inner page heads, section head chips, why cards ---- */
.cat-hero-ic, .tool-head-ic { background: #E2F3F1; color: var(--accent); }
.h-ic { background: #E2F3F1; color: var(--accent); }
.why-card { border: 1.5px solid #007E8F; }
.why-ic { color: var(--accent); }
.steps li::before { background: #CFEDE8; }

/* ---- Forms & tool UI accents ---- */
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #D9F2EE; }
.dropzone { border-color: #9AD1C8; background: #F4FBF9; }
.m-acc li a .ic { color: var(--accent); }
.nav-menu-ic, .m-acc-ic { background: #C8EAE0; color: var(--accent); }

/* ---- Footer: deep navy, logo on a white chip ---- */
.site-footer { background: linear-gradient(120deg, #0C2A60 0%, #081F49 100%); color: #C9D8F2; }
.footer-h { color: #fff; }
.footer-col li a { color: #C9D8F2; }
.footer-col li a:hover { color: #fff; }
.footer-brand p { color: #A9BEE0; }
.footer-brand .logo img { background: #fff; border-radius: 12px; padding: 6px 10px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .18); color: #A9BEE0; }

/* ---- Icon colours like TinyWow: every category its own colour, icon + square same family (user, 2026-11-30) ---- */
[data-cat="text-tools"] .tool-card-ic, [data-cat="text-tools"] .cat-card-ic, [data-cat="text-tools"] .tool-row-ic { background: #E1EDFB; color: #1C67CA; }
.cat-hero-ic[data-cat="text-tools"], .tool-head-ic[data-cat="text-tools"] { background: #E1EDFB; color: #1C67CA; }
[data-cat="image-tools"] .tool-card-ic, [data-cat="image-tools"] .cat-card-ic, [data-cat="image-tools"] .tool-row-ic { background: #FDEBDD; color: #F66213; }
.cat-hero-ic[data-cat="image-tools"], .tool-head-ic[data-cat="image-tools"] { background: #FDEBDD; color: #F66213; }
[data-cat="pdf-tools"] .tool-card-ic, [data-cat="pdf-tools"] .cat-card-ic, [data-cat="pdf-tools"] .tool-row-ic { background: #E9E5FD; color: #6F56EC; }
.cat-hero-ic[data-cat="pdf-tools"], .tool-head-ic[data-cat="pdf-tools"] { background: #E9E5FD; color: #6F56EC; }
[data-cat="calculators"] .tool-card-ic, [data-cat="calculators"] .cat-card-ic, [data-cat="calculators"] .tool-row-ic { background: #E0F0F2; color: #247881; }
.cat-hero-ic[data-cat="calculators"], .tool-head-ic[data-cat="calculators"] { background: #E0F0F2; color: #247881; }
[data-cat="generators"] .tool-card-ic, [data-cat="generators"] .cat-card-ic, [data-cat="generators"] .tool-row-ic { background: #FBE3EB; color: #D61C4E; }
.cat-hero-ic[data-cat="generators"], .tool-head-ic[data-cat="generators"] { background: #FBE3EB; color: #D61C4E; }
[data-cat="developer-tools"] .tool-card-ic, [data-cat="developer-tools"] .cat-card-ic, [data-cat="developer-tools"] .tool-row-ic { background: #DFF5E9; color: #1E9E6A; }
.cat-hero-ic[data-cat="developer-tools"], .tool-head-ic[data-cat="developer-tools"] { background: #DFF5E9; color: #1E9E6A; }
[data-cat="device-tests"] .tool-card-ic, [data-cat="device-tests"] .cat-card-ic, [data-cat="device-tests"] .tool-row-ic { background: #E0F3FC; color: #0E9BD8; }
.cat-hero-ic[data-cat="device-tests"], .tool-head-ic[data-cat="device-tests"] { background: #E0F3FC; color: #0E9BD8; }
.nav-menu-ic.tint-lavender, .m-acc-ic.tint-lavender { background: #E9E5FD; color: #6F56EC; }
.nav-menu-ic.tint-mint, .m-acc-ic.tint-mint { background: #DFF5E9; color: #1E9E6A; }
.nav-menu-ic.tint-peach, .m-acc-ic.tint-peach { background: #FDEBDD; color: #F66213; }
.nav-menu-ic.tint-butter, .m-acc-ic.tint-butter { background: #FBF0DA; color: #D97706; }
.nav-menu-ic.tint-sky, .m-acc-ic.tint-sky { background: #E1EDFB; color: #1C67CA; }
.nav-menu-ic.tint-pink, .m-acc-ic.tint-pink { background: #FBE3EB; color: #D61C4E; }

/* ---- Browse by Category: clean white cards matching the site (user, 2026-11-30) ----
   White card + soft shadow like the tool cards; each category keeps its own
   colour only in the icon tile, the count pill and the arrow. No gradients. */
.cat-card { --cat: #00A7A1; --cat-tint: #E0F5F4; }
.cat-card[data-cat="text-tools"] { --cat: #1C67CA; --cat-tint: #E1EDFB; }
.cat-card[data-cat="image-tools"] { --cat: #F66213; --cat-tint: #FDEBDD; }
.cat-card[data-cat="pdf-tools"] { --cat: #6F56EC; --cat-tint: #E9E5FD; }
.cat-card[data-cat="calculators"] { --cat: #247881; --cat-tint: #E0F0F2; }
.cat-card[data-cat="generators"] { --cat: #D61C4E; --cat-tint: #FBE3EB; }
.cat-card[data-cat="developer-tools"] { --cat: #1E9E6A; --cat-tint: #DFF5E9; }
.cat-card[data-cat="device-tests"] { --cat: #0E9BD8; --cat-tint: #E0F3FC; }
.cat-card[data-cat="time-tools"] { --cat: #C77D0A; --cat-tint: #FBF0DA; }
.cat-card { position: relative; flex-direction: column; align-items: flex-start; gap: 13px; padding: 20px; border: none; border-radius: 20px; background: #fff; color: var(--ink); overflow: hidden; box-shadow: 0 6px 24px rgba(12, 42, 96, .10); }
.cat-card::after { display: none; }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(12, 42, 96, .16); }
.cat-card .cat-card-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--cat-tint); border: none; color: var(--cat); position: relative; z-index: 1; }
.cat-card .cat-card-ic i.ic { font-size: 24px; }
.cat-card .cat-card-txt strong { color: var(--plum); font-size: 17px; position: relative; z-index: 1; }
.cat-card .cat-card-txt small { background: var(--cat-tint); color: var(--cat); padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; position: relative; z-index: 1; }
.cat-card .cat-card-arrow { position: absolute; right: 16px; bottom: 16px; width: 32px; height: 32px; background: var(--cat-tint); color: var(--cat); box-shadow: none; z-index: 1; }
.cat-card:hover .cat-card-arrow { background: var(--cat); color: #fff; transform: translateX(3px); }

/* ---- Convert/tool section top spacing: more white space at the top (user, 2026-11-30) ---- */
.page-hero { padding: 42px 0 16px; }
.tool-section { margin-top: 32px; }
@media (max-width: 639px) { .page-hero { padding-top: 32px; } .tool-section { margin-top: 26px; } }
.cat-grid a.cat-card:hover .cat-card-txt strong { color: var(--plum); }

/* ---- Hero -> Files Converted stats gap, same spacing as the Popular section (user, 2026-11-30) ---- */
.stats { margin-top: 44px; }
@media (min-width: 640px) { .stats { margin-top: 56px; } }

/* ---- Tool rating widget (user, 2026-11-30) ---- */
.rating-section { margin-top: 26px; }
.rating-card { background: #fff; border: 1.5px solid #007E8F; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rating-title { font-size: 1.15rem; margin: 0 0 4px; color: var(--plum); }
.rating-summary { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.rating-avg { color: var(--plum); font-size: 1.05rem; }
.rating-stars { display: flex; gap: 4px; margin-left: auto; }
.rating-star { background: none; border: none; padding: 4px; cursor: pointer; font-size: 26px; line-height: 1; color: #D9DEE7; transition: transform .12s ease, color .12s ease; }
.rating-star.is-on { color: #FFB800; }
.rating-star:hover { transform: scale(1.15); }
.rating-thanks { width: 100%; margin: 6px 0 0; color: var(--accent); font-weight: 700; font-size: .92rem; }
@media (max-width: 639px) { .rating-stars { margin-left: 0; } }

/* ---- Cards pop: no stroke anywhere, soft shadow instead (user, 2026-11-30) ---- */
.tool-card, .why-card, .tool-row, .rating-card, .tool-card-main { border: none; }
.tool-card { box-shadow: 0 6px 24px rgba(12, 42, 96, .10); }
.tool-card:hover { box-shadow: 0 14px 34px rgba(12, 42, 96, .16); }
.why-card, .rating-card { box-shadow: 0 6px 24px rgba(12, 42, 96, .10); }
.tool-row { box-shadow: 0 4px 18px rgba(12, 42, 96, .08); }
.tool-card-main { box-shadow: 0 16px 44px rgba(12, 42, 96, .14); }

/* ---- Footer: no blue - pale tint like the page background, a bit deeper (user, 2026-11-30) ---- */
.site-footer { background: #FFFFFF; color: var(--ink); border-top: 1px solid #E1EDE9; }
.footer-h { color: var(--plum); }
.footer-col li a { color: var(--ink-soft); }
.footer-col li a:hover { color: var(--accent); }
.footer-brand p { color: var(--ink-soft); }
.footer-brand .logo img { background: #fff; border-radius: 12px; padding: 6px 10px; }
.footer-bottom { border-top: 1px solid #E1EDE9; color: var(--ink-soft); }

/* ---- Tool icon colours rotate per tool in grids/lists (user, 2026-11-30: har tool ka icon colour alag) ---- */
.tool-card.cc-0 .tool-card-ic, .tool-row.cc-0 .tool-row-ic { background: #E1EDFB; color: #1C67CA; }
.tool-card.cc-1 .tool-card-ic, .tool-row.cc-1 .tool-row-ic { background: #DFF5E9; color: #1E9E6A; }
.tool-card.cc-2 .tool-card-ic, .tool-row.cc-2 .tool-row-ic { background: #FDEBDD; color: #F66213; }
.tool-card.cc-3 .tool-card-ic, .tool-row.cc-3 .tool-row-ic { background: #E9E5FD; color: #6F56EC; }
.tool-card.cc-4 .tool-card-ic, .tool-row.cc-4 .tool-row-ic { background: #FBE3EB; color: #D61C4E; }
.tool-card.cc-5 .tool-card-ic, .tool-row.cc-5 .tool-row-ic { background: #E0F3FC; color: #0E9BD8; }
.tool-card.cc-6 .tool-card-ic, .tool-row.cc-6 .tool-row-ic { background: #E0F0F2; color: #247881; }
.tool-card.cc-7 .tool-card-ic, .tool-row.cc-7 .tool-row-ic { background: #FBF0DA; color: #D97706; }
.tool-card.cc-8 .tool-card-ic, .tool-row.cc-8 .tool-row-ic { background: #EDE9FE; color: #7C3AED; }
.tool-card.cc-9 .tool-card-ic, .tool-row.cc-9 .tool-row-ic { background: #F1F8DC; color: #65A30D; }
.tool-card.cc-10 .tool-card-ic, .tool-row.cc-10 .tool-row-ic { background: #FFE4E6; color: #E11D48; }
.tool-card.cc-11 .tool-card-ic, .tool-row.cc-11 .tool-row-ic { background: #E0F2F1; color: #0F766E; }
.tool-card.cc-12 .tool-card-ic, .tool-row.cc-12 .tool-row-ic { background: #E8EAF6; color: #3F51B5; }
.tool-card.cc-13 .tool-card-ic, .tool-row.cc-13 .tool-row-ic { background: #FCE7F3; color: #DB2777; }

/* fix31: footer lists aligned on mobile — links become full-width rows, the
   Legal list stops squeezing into two columns inside a half-width cell and
   spans the full width on phones instead. */
.footer-col li a { display: flex; }
.footer-legal li { break-inside: avoid; }
@media (max-width: 1023px) {
  .footer-legal { columns: 1; }
}
@media (max-width: 639px) {
  .footer-grid { gap: 22px 18px; }
  .footer-grid > .footer-col:nth-child(3) { grid-column: 1 / -1; }
  .footer-legal { columns: 2; column-gap: 22px; }
}

/* fix32: footer logo + tagline centred on mobile */
@media (max-width: 639px) {
  .footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .footer-brand .logo { justify-content: center; }
  .footer-brand p { text-align: center; }
}

/* fix33: Image Background Remover — compare stage */
.bgr-stage { margin-top: 18px; }
.bgr-compare { position: relative; border-radius: 16px; overflow: hidden; background: #E9EEF3; --split: 50%; --bgc: transparent; }
.bgr-compare::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(45deg, #CBD5E1 25%, transparent 25%), linear-gradient(-45deg, #CBD5E1 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #CBD5E1 75%), linear-gradient(-45deg, transparent 75%, #CBD5E1 75%); background-size: 22px 22px; background-position: 0 0, 0 11px, 11px -11px, -11px 0; background-color: #F1F5F9; }
.bgr-compare.has-bg::before { background: var(--bgc); }
.bgr-compare img { display: block; width: 100%; height: auto; position: relative; }
.bgr-after-wrap { position: absolute; inset: 0; }
.bgr-after-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#bgr-before { position: relative; }
.bgr-compare:not(.has-result) .bgr-after-wrap, .bgr-compare:not(.has-result) .bgr-tag-r { display: none; }
.bgr-compare.has-result::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--split); width: 3px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.35); transform: translateX(-50%); z-index: 3; }
.bgr-tag { position: absolute; top: 10px; z-index: 4; background: rgba(12,42,96,.78); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }
.bgr-tag-l { left: 10px; }
.bgr-tag-r { right: 10px; }
#bgr-slider { width: 100%; margin-top: 12px; accent-color: var(--accent, #00A7A1); }
.bgr-compare img#bgr-after { object-fit: contain; }
