/* PandaToolDesk — design system */
:root {
  --bg: #f6f8f7;
  --bg-2: #eef3f0;
  --surface: #ffffff;
  --surface-2: #f3f6f4;
  --border: #e1e8e4;
  --text: #0f1a14;
  --text-2: #4a5a51;
  --text-3: #7a8a81;
  --accent: #16a34a;
  --accent-2: #0d8a3c;
  --accent-soft: #e3f6ea;
  --accent-ink: #ffffff;
  --pdf: #e5484d;
  --pdf-soft: #fdecec;
  --img: #3b82f6;
  --img-soft: #e8f0fe;
  --xtra: #a855f7;
  --xtra-soft: #f3e8ff;
  --danger: #dc2626;
  --shadow: 0 1px 2px rgba(15, 26, 20, .04), 0 8px 24px rgba(15, 26, 20, .06);
  --shadow-lg: 0 2px 4px rgba(15, 26, 20, .04), 0 18px 48px rgba(15, 26, 20, .10);
  --pattern: rgba(22, 163, 74, .10);
  --blob-1: rgba(22, 163, 74, .14);
  --blob-2: rgba(59, 130, 246, .10);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b110e; --bg-2: #0f1713; --surface: #121b16; --surface-2: #17221c; --border: #223029;
    --text: #e8f0eb; --text-2: #a3b3aa; --text-3: #6f8077;
    --accent: #22c55e; --accent-2: #4ade80; --accent-soft: #11291b; --accent-ink: #04140a;
    --pdf: #f87171; --pdf-soft: #2a1314; --img: #60a5fa; --img-soft: #111e33; --xtra: #c084fc; --xtra-soft: #22142f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 18px 48px rgba(0,0,0,.4);
    --pattern: rgba(74, 222, 128, .07); --blob-1: rgba(34, 197, 94, .10); --blob-2: rgba(96, 165, 250, .07);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b110e; --bg-2: #0f1713; --surface: #121b16; --surface-2: #17221c; --border: #223029;
  --text: #e8f0eb; --text-2: #a3b3aa; --text-3: #6f8077;
  --accent: #22c55e; --accent-2: #4ade80; --accent-soft: #11291b; --accent-ink: #04140a;
  --pdf: #f87171; --pdf-soft: #2a1314; --img: #60a5fa; --img-soft: #111e33; --xtra: #c084fc; --xtra-soft: #22142f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 18px 48px rgba(0,0,0,.4);
  --pattern: rgba(74, 222, 128, .07); --blob-1: rgba(34, 197, 94, .10); --blob-2: rgba(96, 165, 250, .07);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column;
  overflow-x: hidden;
}
/* Background decoration: dot grid + soft blobs (pure CSS/SVG, no images) */
.bg-deco { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-deco svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-deco .dots { color: var(--pattern); }
.bg-deco .blob1 { fill: var(--blob-1); }
.bg-deco .blob2 { fill: var(--blob-2); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg, canvas { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
main { flex: 1; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand b { color: var(--accent); font-weight: 800; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text-2); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); text-decoration: none; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; flex: none;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
.menu-btn { display: none; }
@media (max-width: 760px) {
  .menu-btn { display: inline-grid; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: 10px; padding: 12px; }
  .nav .theme-toggle { margin-left: auto; }
}

/* Hero */
.hero { padding: 64px 0 32px; text-align: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; margin-bottom: 18px;
}
.hero h1 span { background: linear-gradient(120deg, var(--accent), var(--img)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-2); max-width: 640px; margin: 0 auto 26px; }
.search-box { max-width: 520px; margin: 0 auto; position: relative; }
.search-box input {
  width: 100%; height: 54px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); padding: 0 20px 0 50px; font: inherit; font-size: 1rem; box-shadow: var(--shadow); outline: none;
}
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.search-box svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-3); }
.trust { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 22px; color: var(--text-2); font-size: .9rem; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--accent); }

/* Category tabs */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 8px 0 26px; }
.tab { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-weight: 650;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: .92rem; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Tool grid */
.section { padding: 28px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head p { color: var(--text-2); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c, var(--accent)) 45%, var(--border)); text-decoration: none; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--cs, var(--accent-soft)); color: var(--c, var(--accent)); }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { margin: 0; font-size: 1.02rem; }
.card p { margin: 0; color: var(--text-2); font-size: .9rem; line-height: 1.5; }
.cat-image { --c: var(--img); --cs: var(--img-soft); }
.cat-pdf { --c: var(--pdf); --cs: var(--pdf-soft); }
.cat-extra { --c: var(--xtra); --cs: var(--xtra-soft); }
.empty-note { text-align: center; color: var(--text-3); padding: 30px 0; display: none; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.feature .ic svg { width: 20px; height: 20px; }
.feature p { color: var(--text-2); margin: 0; font-size: .93rem; }

/* Tool page */
.tool-hero { padding: 36px 0 18px; text-align: center; }
.crumbs { font-size: .85rem; color: var(--text-3); margin-bottom: 14px; }
.crumbs a { color: var(--text-2); }
.tool-hero .ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 14px; background: var(--cs); color: var(--c); }
.tool-hero .ic svg { width: 30px; height: 30px; }
.tool-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.tool-hero p { color: var(--text-2); max-width: 620px; margin: 0 auto; }
.tool-box { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 22px; margin: 22px auto 10px; max-width: 900px; }
@media (max-width: 560px) { .tool-box { padding: 14px; border-radius: 16px; } }

.drop {
  display: block; width: 100%;
  border: 2px dashed color-mix(in srgb, var(--c, var(--accent)) 45%, var(--border)); border-radius: 16px; padding: 38px 16px; text-align: center; cursor: pointer;
  background: color-mix(in srgb, var(--cs, var(--accent-soft)) 55%, transparent); transition: background .15s, border-color .15s;
}
.drop:hover, .drop.over { border-color: var(--c, var(--accent)); background: var(--cs, var(--accent-soft)); }
.drop svg { display: block; width: 46px; height: 46px; color: var(--c, var(--accent)); margin: 0 auto 8px; }
.drop strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.drop span { color: var(--text-2); font-size: .9rem; }
.drop input { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px;
  border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .97rem; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .88rem; border-radius: 10px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }

.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .lbl { font-weight: 650; font-size: .88rem; color: var(--text-2); }
.field input[type=text], .field input[type=number], .field input[type=password], .field select, .field textarea {
  height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); padding: 0 12px; font: inherit; outline: none; width: 100%;
}
.field textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[type=range] { accent-color: var(--accent); width: 100%; }
.field input[type=color] { height: 42px; width: 100%; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); padding: 4px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 650; font-size: .88rem; cursor: pointer; }
.seg button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.file { position: relative; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); padding: 8px; font-size: .8rem; }
.file .thumb { aspect-ratio: 1; border-radius: 8px; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; margin-bottom: 6px; }
.file .thumb img, .file .thumb canvas { width: 100%; height: 100%; object-fit: contain; }
.file .name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .meta { color: var(--text-3); }
.file .meta .good { color: var(--accent); font-weight: 700; }
.file .x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 999px; border: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; }
.file .x svg { width: 14px; height: 14px; }
.file .dl { margin-top: 6px; width: 100%; }
.file.sel { outline: 3px solid var(--accent); outline-offset: -1px; }
.file .pg { position: absolute; left: 6px; top: 6px; background: var(--text); color: var(--bg); font-weight: 700; font-size: .72rem; padding: 2px 7px; border-radius: 999px; }
.sortable-ghost { opacity: .4; }
.draggable .file { cursor: grab; }

.preview { margin-top: 18px; text-align: center; }
.preview canvas, .preview img { max-height: 520px; border-radius: 12px; border: 1px solid var(--border); background:
  repeating-conic-gradient(var(--bg-2) 0% 25%, var(--surface) 0% 50%) 50% / 18px 18px; }
.output { width: 100%; min-height: 200px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); padding: 14px; font: .92rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.status { margin-top: 14px; text-align: center; color: var(--text-2); font-weight: 600; font-size: .92rem; min-height: 1.4em; }
.status.err { color: var(--danger); }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 12px; display: none; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--img)); transition: width .2s; }
.result-box { margin-top: 18px; padding: 18px; border-radius: 14px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); text-align: center; }
.result-box strong { color: var(--accent); }
.hidden { display: none !important; }
.privacy-note { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--text-3); font-size: .84rem; margin-top: 14px; }
.privacy-note svg { width: 15px; height: 15px; color: var(--accent); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.swatch { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; font: 600 .85rem ui-monospace, Menlo, monospace; color: var(--text); }
.swatch i { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border); display: block; }
.sig-pad { width: 100%; height: 180px; border: 1px dashed var(--border); border-radius: 12px; background: #fff; touch-action: none; }
.pdf-stage { position: relative; display: inline-block; margin-top: 14px; max-width: 100%; }
.pdf-stage canvas { display: block; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); }
.sig-drag { position: absolute; border: 2px dashed var(--accent); cursor: move; touch-action: none; }
.sig-drag img { width: 100%; height: 100%; display: block; pointer-events: none; }
.sig-drag .h { position: absolute; right: -8px; bottom: -8px; width: 16px; height: 16px; border-radius: 999px; background: var(--accent); cursor: nwse-resize; }
.cropper-wrap { max-height: 520px; margin-top: 16px; }
.cropper-wrap img { display: block; max-width: 100%; }

/* Article content */
.article { max-width: 820px; margin: 0 auto; padding: 24px 0 10px; }
.article h2 { margin-top: 1.6em; }
.article p, .article li { color: var(--text-2); }
.article ol, .article ul { padding-left: 1.3em; }
.article li { margin-bottom: .45em; }
.article strong { color: var(--text); }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 14px 16px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--text); }
.faq details p { margin: 10px 0 0; }
.page { max-width: 820px; margin: 0 auto; padding: 40px 0; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.page p, .page li { color: var(--text-2); }
.ad-slot { max-width: 900px; margin: 18px auto; min-height: 0; }

/* Footer */
.site-footer { margin-top: 56px; border-top: 1px solid var(--border); background: var(--surface); padding: 40px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
.site-footer h4 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text-2); font-size: .93rem; }
.site-footer p { color: var(--text-2); font-size: .93rem; }
.copy { border-top: 1px solid var(--border); margin-top: 26px; padding-top: 18px; color: var(--text-3); font-size: .85rem; text-align: center; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---- App-style colorful icons ---- */
.card .ic, .feature .ic, .tool-hero .ic { background: none !important; border-radius: 0; width: 62px; height: 62px; }
.card .ic svg, .feature .ic svg, .tool-hero .ic svg { width: 100%; height: 100%; }
.app-ic { filter: drop-shadow(0 6px 10px rgba(15, 26, 20, .18)); transition: transform .25s cubic-bezier(.2,.9,.3,1.4); }
.card:hover .app-ic { transform: translateY(-3px) rotate(-5deg) scale(1.06); }
.tool-hero .ic { width: 88px; height: 88px; }
.tool-hero .app-ic { animation: icFloat 4s ease-in-out infinite; }
@keyframes icFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
:root[data-theme="dark"] .app-ic { filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .45)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-ic { filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .45)); } }

/* ---- Panda helper chatbot ---- */
.pbot-btn { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 64px; height: 64px; border: 0; padding: 0; background: none; cursor: pointer; animation: botBob 3.2s ease-in-out infinite; }
.pbot-btn svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 18px rgba(22, 163, 74, .35)); }
.pbot-btn .bubble { position: absolute; right: 70px; bottom: 16px; white-space: nowrap; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 8px 12px; border-radius: 14px 14px 4px 14px; font: 600 .85rem "Plus Jakarta Sans", sans-serif; animation: bubbleIn .4s 1.2s both; }
.pbot-btn.seen .bubble { display: none; }
@keyframes botBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pbot-blink { animation: blink 4s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.pbot { position: fixed; right: 18px; bottom: 94px; z-index: 91; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right; transition: transform .22s ease, opacity .22s ease; }
.pbot.closed { opacity: 0; transform: scale(.85) translateY(10px); pointer-events: none; }
.pbot-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(120deg, #16a34a, #0d8a3c); color: #fff; }
.pbot-head svg { width: 38px; height: 38px; flex: none; }
.pbot-head b { display: block; font-size: 1rem; } .pbot-head small { opacity: .85; font-size: .78rem; }
.pbot-head button { margin-left: auto; background: rgba(255,255,255,.18); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 999px; cursor: pointer; font-size: 18px; }
.pbot-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.pbot-msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: .92rem; line-height: 1.45; animation: bubbleIn .25s both; }
.pbot-msg.bot { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--text); }
.pbot-msg.me { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; align-self: flex-end; }
.pbot-msg a { font-weight: 700; }
.pbot-tools { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.pbot-tools a { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 650; font-size: .88rem; }
.pbot-tools a:hover { border-color: var(--accent); }
.pbot-tools a svg { width: 30px; height: 30px; flex: none; }
.pbot-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 0; background: var(--surface); }
.pbot-chips button { border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); border-radius: 999px; padding: 6px 11px; font: 600 .8rem "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.pbot-chips button:hover { color: var(--accent); border-color: var(--accent); }
.pbot-form { display: flex; gap: 8px; padding: 10px 12px 12px; background: var(--surface); }
.pbot-form input { flex: 1; height: 42px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); padding: 0 16px; font: inherit; font-size: .92rem; outline: none; }
.pbot-form input:focus { border-color: var(--accent); }
.pbot-form button { width: 42px; height: 42px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: grid; place-items: center; }
.pbot-form button svg { width: 18px; height: 18px; }
.pbot-typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 99px; background: var(--text-3); animation: typing 1s infinite; }
.pbot-typing span:nth-child(2) { animation-delay: .15s; } .pbot-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 100% { opacity: .3; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 560px) { .pbot { right: 8px; left: 8px; width: auto; bottom: 86px; } .pbot-btn { right: 12px; bottom: 12px; width: 58px; height: 58px; } .pbot-btn .bubble { display: none; } }

/* ---- Panda moods ---- */
.pbot-btn { animation: none; overflow: visible; }
.pb-wrap { position: absolute; inset: 0; display: block; animation: botBob 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
.pb-svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 10px 18px rgba(22, 163, 74, .35)); }
.pb-head, .pb-paw, .pb-ears circle { transform-box: fill-box; transform-origin: center; }
.pb-closed, .pb-happy, .pb-yawn, .pb-grin, .pb-paw { opacity: 0; transition: opacity .2s; }
.pb-blush { opacity: .55; transition: opacity .3s; }
.pb-open { animation: pbBlink 4.5s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pbBlink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.pb-pupils { transition: transform .15s ease-out; }
/* hover: wave paw + ear wiggle */
.pbot-btn.wave .pb-paw { opacity: 1; animation: pbWave .9s ease-in-out infinite; transform-origin: 30% 100%; }
.pbot-btn.wave .pb-ears circle:first-child { animation: pbEar .6s ease-in-out 2; }
@keyframes pbWave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-28deg) translateY(-2px); } }
@keyframes pbEar { 50% { transform: rotate(-14deg) scale(1.08); } }
/* sleep */
.pbot-btn.sleep .pb-wrap { animation: pbBreathe 3.6s ease-in-out infinite; }
.pbot-btn.sleep .pb-head { transform: rotate(-10deg) translateY(2px); transition: transform .8s; }
.pbot-btn.sleep .pb-open { opacity: 0; animation: none; }
.pbot-btn.sleep .pb-closed { opacity: 1; }
.pbot-btn.sleep .pb-mouth { opacity: 0; }
.pbot-btn.sleep .pb-yawn { opacity: 1; animation: pbSnore 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pbot-btn.sleep .pb-svg { filter: drop-shadow(0 6px 12px rgba(22, 163, 74, .2)) saturate(.85); }
@keyframes pbBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045, .97); } }
@keyframes pbSnore { 0%, 100% { transform: scale(.55); } 50% { transform: scale(1); } }
.pb-z { position: absolute; right: -4px; top: -10px; pointer-events: none; }
.pb-z i { position: absolute; font: 800 14px "Plus Jakarta Sans", sans-serif; font-style: normal; color: var(--accent); opacity: 0; }
.pbot-btn.sleep .pb-z i { animation: pbZ 3s ease-in infinite; }
.pb-z i:nth-child(2) { animation-delay: 1s !important; font-size: 17px; } .pb-z i:nth-child(3) { animation-delay: 2s !important; font-size: 21px; }
@keyframes pbZ { 0% { opacity: 0; transform: translate(0, 10px) scale(.5); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(18px, -34px) scale(1.1) rotate(12deg); } }
.pbot-btn.sleep .bubble { display: none; }
/* wake: stretch + surprised */
.pbot-btn.wake .pb-wrap { animation: pbStretch 1.2s ease-out; }
.pbot-btn.wake .pb-mouth { opacity: 0; } .pbot-btn.wake .pb-yawn { opacity: 1; }
@keyframes pbStretch { 0% { transform: scale(1, .9); } 30% { transform: scale(.92, 1.12) translateY(-6px); } 60% { transform: scale(1.04, .96); } 100% { transform: none; } }
/* happy (click) & yay (tool done) */
.pbot-btn.happy .pb-wrap, .pbot-btn.yay .pb-wrap { animation: pbJump .7s cubic-bezier(.3, 1.6, .5, 1) 2; }
.pbot-btn.yay .pb-wrap { animation-iteration-count: 3; }
.pbot-btn.happy .pb-open, .pbot-btn.yay .pb-open { opacity: 0; animation: none; }
.pbot-btn.happy .pb-happy, .pbot-btn.yay .pb-happy { opacity: 1; }
.pbot-btn.happy .pb-mouth, .pbot-btn.yay .pb-mouth { opacity: 0; }
.pbot-btn.happy .pb-grin, .pbot-btn.yay .pb-grin { opacity: 1; }
.pbot-btn.happy .pb-blush, .pbot-btn.yay .pb-blush { opacity: 1; }
.pbot-btn.yay .pb-paw { opacity: 1; animation: pbWave .45s ease-in-out infinite; transform-origin: 30% 100%; }
@keyframes pbJump { 0% { transform: none; } 35% { transform: translateY(-16px) scale(1.06, .95) rotate(-6deg); } 70% { transform: translateY(0) scale(1.08, .9); } 100% { transform: none; } }
.pb-fx { position: absolute; left: 50%; top: 10%; pointer-events: none; }
.pb-fx i { position: absolute; font-style: normal; font-size: 16px; left: -8px; animation: pbFx 1.3s ease-out forwards; opacity: 0; }
@keyframes pbFx { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), -70px) scale(1.2) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) { .pb-wrap, .pb-open, .pb-z i, .pb-fx i { animation: none !important; } }

/* ---- Two-column hero ---- */
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; text-align: left; }
.hero-grid .hero-text h1 { font-size: clamp(2rem, 4vw, 3.15rem); }
.hero-grid .hero-text h1 span { display: block; }
.hero-grid p.lead { margin-left: 0; }
.hero-grid .search-box { margin: 0; }
.hero-grid .trust { justify-content: flex-start; }
.hero-grid .showcase { margin: 0; max-width: none; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .hero-grid p.lead { margin: 0 auto 26px; } .hero-grid .search-box { margin: 0 auto; } .hero-grid .trust { justify-content: center; }
  .hero-grid .showcase { max-width: 600px; margin: 0 auto; width: 100%; }
}

/* ---- Nav dropdowns ---- */
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; color: var(--text-2); font: inherit; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.dd-btn svg { width: 15px; height: 15px; transition: transform .2s; }
.dd-btn:hover, .dd.open .dd-btn { color: var(--text); background: var(--surface-2); }
.dd-panel { position: absolute; top: calc(100% + 10px); left: 50%; width: 520px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 60; }
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dd-head { display: flex; align-items: baseline; gap: 10px; padding: 2px 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.dd-head b { font-size: .95rem; } .dd-head span { color: var(--text-3); font-size: .82rem; }
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-links .dd-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--text); font-size: .9rem; font-weight: 600; }
.nav-links .dd-item:hover { background: var(--surface-2); text-decoration: none; }
.dd-ic { width: 30px; height: 30px; flex: none; } .dd-ic svg { width: 100%; height: 100%; filter: none; }
.nav-links .dd-all { display: block; margin-top: 8px; padding: 8px; border-top: 1px solid var(--border); border-radius: 0; color: var(--accent); font-size: .86rem; font-weight: 700; text-align: center; }
.nav-links .dd-all:hover { background: none; color: var(--accent-2); }
@media (min-width: 761px) {
  .dd:hover .dd-panel, .dd:focus-within .dd-panel, .dd.open .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .dd:hover .dd-btn svg, .dd.open .dd-btn svg { transform: rotate(180deg); }
  .dd-pdf .dd-panel { left: 40%; } .dd-extra .dd-panel { width: 420px; }
}
@media (max-width: 760px) {
  .nav-links { max-height: calc(100vh - 70px); overflow-y: auto; }
  .dd-btn { width: 100%; justify-content: space-between; padding: 12px; border-radius: 10px; }
  .dd-panel { position: static; width: auto; transform: none; box-shadow: none; border: 0; padding: 0 0 8px; display: none; opacity: 1; visibility: visible; background: none; }
  .dd.open .dd-panel { display: block; } .dd.open .dd-btn svg { transform: rotate(180deg); }
  .dd-head { display: none; } .dd-grid { grid-template-columns: 1fr; }
}

/* ---- Hero showcase animation ---- */
.showcase { position: relative; max-width: 640px; margin: 34px auto 0; padding: 18px 18px 54px; border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.showcase svg { display: block; width: 100%; height: auto; overflow: visible; }
.showcase .scn, .showcase .cap { opacity: 0; animation: scn 16s infinite both; animation-delay: var(--d); }
.showcase .scn .a { transform-box: fill-box; transform-origin: center; animation-duration: 16s; animation-iteration-count: infinite; animation-fill-mode: both; }
.showcase .scn[style*="--d:0s"] .a { animation-delay: 0s; } .showcase .scn[style*="--d:4s"] .a { animation-delay: 4s; }
.showcase .scn[style*="--d:8s"] .a { animation-delay: 8s; } .showcase .scn[style*="--d:12s"] .a { animation-delay: 12s; }
.showcase .arw { animation-name: arw; } .showcase .dashp { animation-name: dash; transform-box: view-box; }
.showcase .pop1 { animation-name: pop1; } .showcase .pop2 { animation-name: pop2; } .showcase .pop3 { animation-name: pop3; }
.showcase .crop { animation-name: crop; } .showcase .shrink { animation-name: shrink; }
.showcase .fly1 { animation-name: fly1; } .showcase .fly2 { animation-name: fly2; } .showcase .fly3 { animation-name: fly3; }
.showcase .caps { position: absolute; left: 0; right: 0; bottom: 16px; height: 26px; text-align: center; }
.showcase .cap { position: absolute; inset: 0; display: flex; gap: 10px; justify-content: center; align-items: baseline; font-size: .95rem; }
.showcase .cap b { color: var(--accent); } .showcase .cap span { color: var(--text-2); }
.showcase .dots { position: absolute; right: 18px; top: 16px; display: flex; gap: 6px; }
.showcase .dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--border); animation: dot 16s infinite; animation-delay: var(--d); }
@keyframes scn { 0% { opacity: 0; transform: translateY(10px); } 3%, 22% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes dot { 0%, 24% { background: var(--accent); width: 20px; } 25%, 100% { background: var(--border); width: 7px; } }
@keyframes dash { 0%, 4% { stroke-dashoffset: 70; } 9%, 100% { stroke-dashoffset: 0; } }
@keyframes arw { 0%, 4% { opacity: .3; } 9%, 100% { opacity: 1; } }
@keyframes pop1 { 0%, 7% { opacity: 0; transform: translateX(-90px) scale(.4); } 11%, 100% { opacity: 1; transform: none; } }
@keyframes pop2 { 0%, 9% { opacity: 0; transform: translateX(-90px) scale(.4); } 13%, 100% { opacity: 1; transform: none; } }
@keyframes pop3 { 0%, 11% { opacity: 0; transform: translateX(-90px) scale(.4); } 15%, 100% { opacity: 1; transform: none; } }
@keyframes crop { 0%, 4% { transform: scale(1.08); } 10%, 100% { transform: scale(.6); } }
@keyframes shrink { 0%, 5% { transform: scale(1); } 11%, 100% { transform: scale(.82); opacity: .45; } }
@keyframes fly1 { 0%, 5% { transform: none; opacity: 1; } 12%, 100% { transform: translate(150px, 40px) scale(.3); opacity: 0; } }
@keyframes fly2 { 0%, 6% { transform: none; opacity: 1; } 13%, 100% { transform: translate(90px, 0) scale(.3); opacity: 0; } }
@keyframes fly3 { 0%, 7% { transform: none; opacity: 1; } 14%, 100% { transform: translate(140px, -40px) scale(.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .showcase .scn, .showcase .cap, .showcase .a, .showcase .dots i { animation: none !important; }
  .showcase .scn:first-child, .showcase .cap:first-child { opacity: 1; }
}
@media (max-width: 560px) { .showcase { padding: 12px 10px 50px; } .showcase .cap span { display: none; } }
