/* Light theme only (bright, friendly palette). */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --text: #1e2235;
  --muted: #5f667d;
  --border: #e3e6ef;
  --accent: #4f46e5;
  --accent-strong: #4338ca;
  --accent-soft: #eef0ff;
  --pos: #15803d;
  --neg: #c2261c;
  --warn-bg: #fff6e5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30, 34, 53, .04), 0 6px 20px rgba(30, 34, 53, .06);
  --shadow-lg: 0 10px 30px rgba(79, 70, 229, .12), 0 2px 6px rgba(30, 34, 53, .05);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); margin: .3em 0 .25em; }
img, svg { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--muted); margin-top: 0; max-width: 60ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; }
.site-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .92rem; padding: 6px 10px; border-radius: 8px; }
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.cur-pick select { padding: 5px 8px; font-size: .85rem; width: auto; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 12px; font: inherit; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; padding-bottom: 12px; }
  .site-nav.open { display: flex; }
}

/* header menu */
.nav-more { position: relative; }
.nav-more summary { list-style: none; cursor: pointer; color: var(--muted); font-size: .92rem; padding: 6px 10px; border-radius: 8px; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: " ▾"; font-size: .75em; }
.nav-more summary:hover, .nav-more[open] summary { color: var(--text); background: var(--surface-2); }
.nav-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 6px; z-index: 10; }
.nav-menu a { display: flex !important; align-items: center; gap: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
@media (max-width: 900px) { .nav-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; } }

/* hero + search */
.hero { padding: 56px 0 28px; background: radial-gradient(1200px 300px at 50% -60px, var(--accent-soft), transparent); }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 22ch; font-size: clamp(1.9rem, 4.6vw, 3rem); letter-spacing: -.02em; }
.hero .lead { max-width: 64ch; margin-left: auto; margin-right: auto; }
.hero .search { width: 100%; max-width: 640px; margin-top: 8px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding: 0; margin: 18px 0 0; color: var(--muted); font-size: .9rem; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { color: var(--accent); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px 14px; margin-top: 8px; scrollbar-width: thin; }
.tab { flex: none; font: inherit; font-size: .92rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; }
.tab:hover { color: var(--text); border-color: var(--c, var(--accent)); }
.tab.active { background: var(--c, var(--text)); border-color: var(--c, var(--text)); color: #fff; }
.home-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.home-grid .tool-card { flex-direction: column; gap: 10px; padding: 18px; min-height: 150px; }
.home-grid .tool-card .tool-icon { width: 42px; height: 42px; }
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 56px 0 8px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature h2 { font-size: 1.1rem; margin: 12px 0 6px; }
.feature p { margin: 0; color: var(--muted); }
.home-blog { margin-top: 48px; }
.search { display: flex; flex-direction: row; align-items: center; gap: 10px; max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0 18px; box-shadow: var(--shadow); color: var(--muted); }
.search input { border: 0; background: transparent; padding: 14px 0; flex: 1; font: inherit; color: var(--text); outline: none; min-width: 0; }
.search:focus-within { border-color: var(--accent); }

/* tool cards */
.cat-section { margin: 32px 0; }
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cat-head h2 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin: 0 0 12px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tool-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.tool-card:hover { border-color: var(--accent); transform: translateY(-1px); color: var(--text); }
.tool-card strong { display: block; margin-bottom: 2px; }
.tool-card .muted { font-size: .9rem; line-height: 1.45; display: block; }
.tool-icon { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
@supports (background: color-mix(in srgb, red 10%, transparent)) {
  [style*="--c"] .tool-icon, .tool-icon[style*="--c"] { background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
}
.tool-card:hover { border-color: var(--c, var(--accent)); box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--text); font-size: .92rem; }
.other-cats { font-size: 1.1rem; margin-top: 40px; }

/* blog */
.post-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 16px; }
.post-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.post-card:hover { border-color: var(--accent); color: var(--text); }
.post-card strong { font-size: 1.1rem; line-height: 1.35; }
.small { font-size: .85rem; }
.callout { background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; margin: 1.2em 0; }

/* pages */
.page { padding: 20px 16px 48px; }
.crumbs { font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.35rem; margin: 1.8em 0 .5em; }
.prose h3 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.prose th { background: var(--surface-2); }
.prose code, .formula { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.formula { display: block; padding: 12px 14px; margin: 1em 0; border-left: 3px solid var(--accent); overflow-x: auto; }
.home-about { margin: 48px 0 24px; }
.updated { font-size: .85rem; margin-top: 2em; }

/* tool page */
.tool-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); margin: 20px 0 8px; }
@media (min-width: 700px) { .tool-box { padding: 28px; } }
.tool-layout { display: grid; gap: 32px; margin-top: 16px; }
@media (min-width: 960px) { .tool-layout { grid-template-columns: minmax(0, 1fr) 260px; } }
.related { align-self: start; position: sticky; top: 80px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.related h2 { font-size: 1rem; margin: 0 0 8px; }
.related a { display: block; padding: 6px 0; text-decoration: none; border-bottom: 1px solid var(--border); font-size: .95rem; }
.related a:last-child { border-bottom: 0; }
.related .all { font-weight: 600; }
.faq details { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin: 8px 0; }
.faq summary { cursor: pointer; padding: 12px 16px; font-weight: 600; }
.faq details > div { padding: 0 16px 12px; }
.faq details > div p:first-child { margin-top: 0; }

/* forms */
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.form-grid .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--text); }
label .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
.check { flex-direction: row; align-items: center; font-weight: 500; gap: 8px; }
.field { position: relative; display: flex; align-items: stretch; }
.field > span { display: grid; place-items: center; padding: 0 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-weight: 500; }
.field > span:first-child { border-radius: 9px 0 0 9px; border-right: 0; }
.field > span:last-child { border-radius: 0 9px 9px 0; border-left: 0; }
.field > input:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.field > input:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--surface-2); border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.seg label { flex-direction: row; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { padding: 7px 14px; border-radius: 7px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; background: var(--accent); color: #fff; border: 0; border-radius: 9px; padding: 10px 18px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent-strong); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--border); }
.btn.ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn.small { padding: 6px 12px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hp { position: absolute; left: -9999px; }

/* results */
.results { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.stat .label { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; }
.stat .value { display: block; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat.main { background: var(--accent-soft); }
.stat.main .value { color: var(--accent-strong); font-size: 1.7rem; }
.note { font-size: .9rem; color: var(--muted); margin: 12px 0 0; }
.warn { background: var(--warn-bg); border-radius: 8px; padding: 8px 12px; font-size: .9rem; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--surface-2); margin: 14px 0 6px; }
.bar > i { display: block; height: 100%; }
.bar > i:nth-child(1) { background: var(--accent); }
.bar > i:nth-child(2) { background: #f59e0b; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.table-wrap { overflow-x: auto; max-height: 420px; margin-top: 16px; border: 1px solid var(--border); border-radius: 10px; }
table.data { border-collapse: collapse; width: 100%; font-size: .9rem; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th { position: sticky; top: 0; background: var(--surface-2); }
details.more { margin-top: 16px; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.rows { display: grid; gap: 10px; }
.row-item { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) auto; align-items: end; padding: 12px; background: var(--surface-2); border-radius: 10px; }
.icon-btn { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 8px; width: 40px; height: 42px; cursor: pointer; font-size: 1.1rem; }
.icon-btn:hover { color: var(--neg); border-color: var(--neg); }
.output { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

/* file tools (PDF / image) */
.dz { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; border: 2px dashed var(--border); border-radius: 16px; padding: 44px 16px; background: var(--surface-2); transition: border-color .15s, background .15s; }
.dz.over { border-color: var(--accent); background: var(--accent-soft); }
.dz-icon { color: var(--accent); }
.dz-hint { margin: 0; color: var(--muted); }
.dz-private { margin: 6px 0 0; font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.dz.compact { flex-direction: row; flex-wrap: wrap; padding: 14px 16px; gap: 12px; }
.dz.compact .dz-icon, .dz.compact .dz-private { display: none; }
.dz.compact .btn.big { padding: 10px 18px; font-size: 1rem; }
.btn.big { padding: 14px 28px; font-size: 1.1rem; border-radius: 12px; }
.btn:disabled { opacity: .55; cursor: progress; }
#work { margin-top: 20px; }
.ft-info { margin: 0 0 14px; }
.ft-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.ft-status { color: var(--muted); font-size: .95rem; }
.ft-status.err { color: var(--neg); font-weight: 600; }
.ft-result { margin-top: 20px; padding: 20px; border-radius: 14px; background: var(--accent-soft); }
.ft-done { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; color: var(--accent-strong); }
.ft-done > div { color: var(--text); }
.ft-files { margin: 8px 0 0; padding-left: 20px; font-size: .92rem; max-height: 260px; overflow: auto; }
.file-list { display: grid; gap: 8px; }
.fl-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.fl-thumb { width: 52px; height: 52px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--neg); font-size: .8rem; }
.fl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fl-name { display: flex; flex-direction: column; min-width: 0; }
.fl-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 16px; }
.pg { position: relative; border: 2px solid var(--border); border-radius: 12px; background: var(--surface); padding: 10px 10px 6px; cursor: default; user-select: none; transition: border-color .15s, opacity .15s; }
.pg-thumb { display: grid; place-items: center; height: 190px; transition: transform .2s; }
.pg-thumb canvas { max-width: 100%; max-height: 190px; box-shadow: 0 1px 4px rgba(0,0,0,.18); background: #fff; }
.pg-bar { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 8px; min-height: 32px; }
.pg-num { font-size: .85rem; color: var(--muted); font-weight: 600; margin-right: auto; }
.pg-bar .icon-btn { width: 32px; height: 32px; font-size: .95rem; }
.pg.sel { border-color: var(--accent); background: var(--accent-soft); }
.pg.del { border-color: var(--neg); opacity: .45; }
.pg.del::after { content: "Removed"; position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg); background: var(--neg); color: #fff; padding: 4px 10px; border-radius: 6px; font-weight: 700; font-size: .85rem; }
.pg.dragging { opacity: .4; }
.pg.drop-before { box-shadow: -4px 0 0 var(--accent); }
.pg.clickable { cursor: pointer; }
.preview-wrap { position: relative; display: inline-block; max-width: 100%; line-height: 0; border-radius: 8px; overflow: hidden; background: repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.preview-wrap canvas, .preview-wrap img { max-width: 100%; height: auto; display: block; }

/* notices */
.notice { padding: 12px 16px; border-radius: 10px; margin: 16px 0; }
.notice.ok { background: var(--accent-soft); }
.notice.err { background: #fde8e7; color: #7a1a12; }

/* ads */
.ad { margin: 24px 0; min-height: 100px; text-align: center; }

/* footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 48px; padding: 36px 0 20px; font-size: .92rem; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1.4fr repeat(5, 1fr); }
.foot-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text); margin: 0 0 8px; }
.footer-grid a:not(.logo) { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { max-width: 36ch; }
.copyright { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 16px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 8px 16px; border-radius: 999px; font-size: .9rem; z-index: 20; }

/* ===================================================================== refreshed light design */
body { background: var(--bg); }
.site-header { background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(30,34,53,.02); }
.header-inner { min-height: 66px; }
.logo { font-size: 1.2rem; letter-spacing: -.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #ec4899); box-shadow: 0 4px 12px rgba(99,102,241,.35); }
.site-nav a, .nav-more summary { font-weight: 500; color: #4a5068; }
.site-nav a:hover, .nav-more summary:hover { background: var(--accent-soft); color: var(--accent); }
.lang-link { border: 1px solid var(--border); }

/* hero: soft pastel glow */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; background:
  radial-gradient(600px 280px at 12% 10%, rgba(129,140,248,.22), transparent 70%),
  radial-gradient(520px 260px at 88% 0%, rgba(244,114,182,.18), transparent 70%),
  radial-gradient(700px 300px at 50% 110%, rgba(56,189,248,.14), transparent 70%),
  linear-gradient(180deg, #ffffff, var(--bg)); }
.hero h1 { color: #171a2e; }
.hero h1 { background: linear-gradient(90deg, #1e2235 20%, #4f46e5 60%, #9333ea); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { color: #565d75; font-size: 1.15rem; }
.search { border: 1px solid #dfe2f0; box-shadow: 0 8px 30px rgba(79,70,229,.10); padding: 4px 22px; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 8px 30px rgba(79,70,229,.18), 0 0 0 4px rgba(79,70,229,.10); }
.search input { padding: 14px 0; font-size: 1.05rem; }
.trust svg { color: var(--accent); }

/* tabs */
.tab { background: #fff; border-color: var(--border); }
.tab.active { box-shadow: 0 4px 14px rgba(30,34,53,.12); }
.tab[data-filter="all"].active { background: linear-gradient(135deg, #4f46e5, #7c3aed); border-color: transparent; color: #fff; }

/* tool cards */
.tool-card { border-color: #e6e8f2; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c, var(--accent)) 35%, transparent); }
.home-grid .tool-card { border-radius: 16px; padding: 20px; }
.home-grid .tool-card strong { font-size: 1.02rem; }
.tool-icon { border-radius: 12px; }

/* tool page */
.tool-box { border-radius: 20px; border-color: #e6e8f2; box-shadow: 0 10px 40px rgba(30,34,53,.06); }
.dz { background: linear-gradient(180deg, #fafbff, #f3f4fd); border-color: #cfd3f5; border-radius: 18px; }
.dz.over { background: var(--accent-soft); border-color: var(--accent); }
.dz-icon { color: var(--accent); }
.page h1 { letter-spacing: -.02em; }
.related { border-radius: 16px; box-shadow: var(--shadow); }
.faq details { border-radius: 12px; }
.faq details[open] { box-shadow: var(--shadow); }
.stat { background: #f5f6fc; border-radius: 12px; }
.stat.main { background: linear-gradient(135deg, #eef0ff, #f5edff); }
.stat.main .value { color: #3f37c9; }
.ft-result { background: linear-gradient(135deg, #ecfdf5, #eef0ff); border: 1px solid #d5f0e3; }
.ft-done { color: #15803d; }

/* buttons */
.btn { background: linear-gradient(135deg, #4f46e5, #6d28d9); border-radius: 10px; box-shadow: 0 4px 14px rgba(79,70,229,.25); transition: transform .12s, box-shadow .12s, filter .12s; }
.btn:hover { background: linear-gradient(135deg, #4338ca, #5b21b6); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(79,70,229,.32); }
.btn.big { border-radius: 14px; }
.btn.ghost { background: #fff; color: var(--accent); border: 1px solid #d9dcf0; box-shadow: none; }
.btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); transform: none; box-shadow: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid rgba(79,70,229,.12); }

/* sections */
.feature { border-radius: 18px; box-shadow: var(--shadow); border-color: #e6e8f2; }
.post-card { border-radius: 16px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* footer: light */
.site-footer { background: #fbfbfe; border-top: 1px solid var(--border); }
.footer-grid a:not(.logo):hover { color: var(--accent); }

/* Portuguese UI tweaks */
html[lang="pt-BR"] .pg.del::after { content: "Removida"; }

/* ===================================================================== homepage sections layout */
.hero-badge { display: inline-block; font-size: .85rem; font-weight: 600; color: #4338ca; background: #fff; border: 1px solid #dfe2f5; border-radius: 999px; padding: 6px 14px; box-shadow: 0 2px 8px rgba(79,70,229,.08); margin-bottom: 10px; }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.jump a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); }
.jump a svg { color: var(--c); }
.jump a:hover { border-color: var(--c); color: var(--c); }
.home-sec { margin: 44px 0; scroll-margin-top: 80px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 16px; }
.sec-head h2 { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; margin: 0; }
.sec-head p { margin: 0; flex: 1 1 300px; font-size: .95rem; }
.sec-all { margin-left: auto; font-weight: 600; text-decoration: none; white-space: nowrap; }
.feat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.feat { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 18px; border-radius: 18px; text-decoration: none; color: var(--text); background: linear-gradient(160deg, #fff 40%, color-mix(in srgb, var(--c) 9%, #fff)); border: 1px solid color-mix(in srgb, var(--c) 20%, #e6e8f2); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.feat-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--c); color: #fff; margin-bottom: 6px; box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 35%, transparent); }
.feat strong { font-size: 1.05rem; }
.feat span:last-child { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.sec-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.games-grid .tool-card { background: linear-gradient(160deg, #fff 55%, #fff8e6); }
.games-grid .tool-icon { background: #f59e0b !important; color: #fff !important; }
.dir-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.dir-col { background: #fff; border: 1px solid #e6e8f2; border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); border-top: 4px solid var(--c); }
.dir-col h3 { margin: 0 0 8px; font-size: 1rem; }
.dir-col h3 a { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.dir-link { display: block; padding: 5px 0; color: #4a5068; text-decoration: none; font-size: .95rem; border-bottom: 1px dashed #edf0f7; }
.dir-link:last-child { border-bottom: 0; }
.dir-link:hover { color: var(--c); }
@media (min-width: 1000px) { .feat-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 560px) and (max-width: 999px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 559px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===================================================================== ToolWalnut brand */
.logo-mark { background: linear-gradient(135deg, #fbbf24, #d97706 45%, #92400e) !important; box-shadow: 0 4px 12px rgba(180, 83, 9, .35) !important; color: #fff; }
.logo-word { color: #1e2235; }
.logo-accent { color: #b45309; }
.site-footer .logo .logo-mark { width: 28px; height: 28px; border-radius: 8px; }

/* ===================================================================== ToolWalnut logo v2 */
.logo { gap: 10px; }
.brand-mark { flex: none; display: block; filter: drop-shadow(0 4px 10px rgba(180, 83, 9, .28)); }
.logo-word { font-weight: 800; letter-spacing: -.035em; font-size: 1.28rem; color: #1e2235; }
.logo-accent { color: #b4530f; }
.site-footer .logo-word { font-size: 1.12rem; }

/* ===================================================================== ToolWalnut logo v3 (purple tile + golden kernel) */
.brand-mark { filter: drop-shadow(0 4px 10px rgba(99, 102, 241, .35)); }
.logo-accent { background: linear-gradient(90deg, #d97706, #9a3412); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
