/* =========================================================
   iLoveConvertify 3.0 — redesign layer
   Loads after main.css + pro-light.css. Header, footer, shared
   buttons, and every home-page section (hx-*).
   ========================================================= */

@font-face { font-family: "Caveat"; src: url(../fonts/sig-caveat.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --paper: #ffffff;
  --line: #e6ebf3;
  --line-strong: #d3dbe8;
  --brand: #1f4fe0;
  --brand-ink: #173cc0;
  --brand-tint: #eef3ff;
  --wash: #f4f7fe;
  --r-card: 16px;
  --r-panel: 28px;
  --lift: 0 1px 2px rgba(15,23,42,.04), 0 12px 32px -14px rgba(15,23,42,.12);
  --wrap: 1180px;
}

body { background: #fff; color: var(--ink); }
h1, h2, h3 { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 650; gap: 8px; }
.btn--lg { min-height: 50px; padding: 12px 24px; font-size: 16px; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14.5px; border-radius: 10px; }
.btn--primary { background: var(--brand); border-color: var(--brand); box-shadow: 0 8px 20px -8px rgba(31,79,224,.55); }
.btn--primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); transform: none; }
.btn--ghost { background: #fff; border: 1.5px solid #cdd8ee; color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn--light { background: #fff; color: var(--brand-ink); border-color: #fff; }
.btn--light:hover { background: #eef3ff; color: var(--brand-ink); }
.btn .icon { flex: none; }

/* ---------- Header ---------- */
.site-header { background: rgba(255,255,255,.92); border-bottom: 1px solid transparent; box-shadow: none; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -12px rgba(15,23,42,.12); }
.site-header__inner { min-height: 76px; gap: 32px; }
.brand { min-width: 0; }
.brand__img, .brand__img--original { width: 176px; max-height: 38px; }
.site-nav { margin: 0 auto 0 8px; }
.site-nav__list { align-items: center; }
.site-nav a, .nav-sub__btn { padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-size: 15px; font-weight: 600; background: none; }
.site-nav a:hover, .site-nav .current-menu-item > a, .nav-sub__btn:hover, .nav-sub.is-open .nav-sub__btn { color: var(--brand); background: var(--brand-tint); }
.site-nav a::after { display: none !important; }
.nav-sub { position: relative; }
.nav-sub__btn { display: inline-flex; align-items: center; gap: 5px; border: 0; cursor: pointer; font-family: inherit; }
.nav-sub__caret { transition: transform .18s var(--ease); }
.nav-sub.is-open .nav-sub__caret { transform: rotate(180deg); }
.nav-sub__panel { position: absolute; top: calc(100% + 10px); left: -8px; width: 340px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(15,23,42,.25); display: none; }
.nav-sub.is-open .nav-sub__panel { display: grid; gap: 2px; }
.site-nav .nav-sub__item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; }
.nav-sub__item strong { display: block; color: var(--ink); font-size: 15px; }
.nav-sub__item small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; line-height: 1.35; }
.site-nav .nav-sub__item:hover { background: var(--wash); }
.site-nav .nav-sub__all { margin-top: 4px; padding: 10px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--brand); font-size: 14px; }

.site-header__actions { gap: 10px; }
.search-trigger { min-width: 230px; height: 42px; padding: 0 8px 0 14px; border: 1px solid var(--line-strong); border-radius: 11px; background: #f8faff; box-shadow: none; color: #8391a7; font-size: 14.5px; }
.search-trigger:hover { border-color: #b9c7e2; background: #fff; color: var(--ink-2); }
.search-trigger__kbd { background: #fff; }
.site-header__cta { min-height: 42px; padding: 8px 16px; }

/* ---------- Shared home typography ---------- */
.hx-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hx-kicker::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: currentColor; }
.hx-kicker--light { color: rgba(255,255,255,.85); }
.hx-title { margin: 0 0 12px; font-size: clamp(28px, 2.7vw, 38px); line-height: 1.12; letter-spacing: -.035em; }
.hx-lede { margin: 0 0 22px; max-width: 34rem; color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.hx-head { margin-bottom: 30px; }
.hx-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hx-head--split .hx-lede { margin-bottom: 0; }
.hx-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap; }
.hx-link:hover { color: var(--brand-ink); }
.hx-link .icon { transition: transform .16s var(--ease); }
.hx-link:hover .icon { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hx-hero { padding: clamp(36px, 5vw, 64px) 0 40px; background: radial-gradient(900px 420px at 78% 20%, #eef3ff 0%, rgba(238,243,255,0) 70%), #fff; }
.hx-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hx-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #cfe9dc; border-radius: 999px; background: #f0faf5; color: #0d7a4f; font-size: 13px; font-weight: 650; }
.hx-hero__title { margin: 22px 0 18px; font-size: clamp(40px, 4.6vw, 60px); font-weight: 800; line-height: 1.04; letter-spacing: -.045em; max-width: 12.5em; }
.hx-hero__mark { color: var(--brand); }
.hx-hero__text { max-width: 31rem; margin: 0 0 30px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hx-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hx-hero__actions .btn--ghost { min-width: 180px; }
.hx-hero__checks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 14px; }
.hx-hero__checks li { display: inline-flex; align-items: center; gap: 7px; }
.hx-hero__checks .icon { color: var(--brand); stroke-width: 2.4; }

/* Hero stage: router card + floating file tiles */
.hx-stage { position: relative; padding: 46px 40px 30px 46px; }
.hx-stage__blob { position: absolute; inset: 8% -4% -6% 6%; border-radius: 44% 56% 50% 50% / 52% 44% 56% 48%; background: linear-gradient(160deg, #e7eeff, #f4f7ff 60%, rgba(244,247,255,0)); z-index: 0; }
.hx-stage__note { position: absolute; top: -22px; right: -26px; z-index: 3; margin: 0; display: grid; justify-items: end; color: var(--brand); font: 600 22px/1.05 "Caveat", "Segoe Print", cursive; transform: rotate(7deg); text-align: right; max-width: 150px; }
.hx-stage__note svg { margin: 2px 38px 0 0; transform: rotate(-4deg); }

.file-art { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #fff; box-shadow: 0 1px 1px rgba(15,23,42,.04), 0 16px 32px -12px rgba(31,63,160,.28); }
.file-art svg { width: 70%; height: 70%; display: block; }
.hx-float { position: absolute; z-index: 2; }
.hx-float--pdf { top: 18px; left: 10px; transform: rotate(-12deg); }
.hx-float--jpg { top: -6px; left: 30%; width: 72px; height: 72px; transform: rotate(6deg); }
.hx-float--doc { top: 42%; left: -8px; width: 56px; height: 56px; transform: rotate(-8deg); }
.hx-float--ppt { top: 44%; right: -2px; width: 70px; height: 70px; transform: rotate(10deg); }

.hx-router { position: relative; z-index: 1; filter: none; padding: 16px; border-radius: 26px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 30px 70px -30px rgba(31,63,160,.35); }
.hx-router .router__drop,
.hx-router .router__result { min-height: 318px; border-radius: 18px; box-shadow: none; }
.hx-router .router__drop { gap: 8px; padding: 32px 24px 22px; border: 1.5px dashed #a9bdf0; background: #fafcff; cursor: pointer; }
.hx-router .router__drop::before, .hx-router .router__result::before { display: none; }
.hx-router .router__drop:hover, .hx-router.is-over .router__drop { border-color: var(--brand); background: #f2f6ff; transform: none; }
.hx-router__icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 8px; border-radius: 50%; background: #e6edff; color: var(--brand); }
.hx-router__icon .icon { stroke-width: 2; }
.hx-router .router__title { font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.hx-router .router__hint { margin: 0 0 10px; font-size: 14.5px; }
.hx-router .router__drop .btn { min-width: 170px; }
.hx-router__foot { margin-top: 14px; max-width: 28em; color: #8a97ab; font-size: 12.5px; line-height: 1.5; }
.hx-router .router__result { border: 1px solid var(--line); background: #fff; padding: 20px; }

/* Stats strip */
.hx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 48px 0 0; padding: 20px 8px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--lift); }
.hx-stats li { display: flex; align-items: center; gap: 14px; padding: 4px 24px; }
.hx-stats li + li { border-left: 1px solid var(--line); }
.hx-stats__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); }
.hx-stats strong { display: block; font: 700 19px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); }
.hx-stats small { display: block; color: var(--muted); font-size: 13.5px; }

/* ---------- Popular ---------- */
.hx-popular { padding: 24px 0 40px; }
.hx-popular__panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 40px; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-panel); background: var(--wash); }
.hx-popular__intro .hx-title { font-size: clamp(26px, 2.3vw, 32px); }
.hx-popular__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pop-card { position: relative; display: grid; align-content: start; gap: 6px; min-height: 172px; padding: 20px 56px 20px 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .16s var(--ease), box-shadow .16s var(--ease); }
.pop-card:hover { color: var(--ink); border-color: #c5d3f5; box-shadow: var(--lift); }
.pop-card .tool-icon { margin-bottom: 12px; width: 46px; height: 46px; border-radius: 12px; }
.pop-card__name { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.pop-card__desc { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.pop-card__go { position: absolute; right: 18px; bottom: 22px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--brand); background: var(--brand-tint); transition: transform .16s var(--ease); }
.pop-card:hover .pop-card__go { transform: translateX(3px); }
.pop-card--lead { background: linear-gradient(160deg, #2b5cf0, #1a40c9); border-color: transparent; box-shadow: 0 20px 40px -18px rgba(31,79,224,.7); }
.pop-card--lead, .pop-card--lead:hover { color: #fff; border-color: transparent; }
.pop-card--lead .pop-card__desc { color: rgba(255,255,255,.82); }
.pop-card--lead .tool-icon { background: rgba(255,255,255,.18); color: #fff; }
.pop-card--lead .tool-icon__swap { box-shadow: 0 0 0 2.5px #2550e2; }
.pop-card--lead .pop-card__go { background: #fff; color: var(--brand); }

/* ---------- Library ---------- */
.hx-library { padding: 64px 0 40px; }
.hx-library__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lib-card { position: relative; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--lift); scroll-margin-top: 100px; overflow: hidden; }
.lib-card__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; margin-bottom: 18px; }
.lib-card__head .tool-icon { width: 52px; height: 52px; border-radius: 14px; }
.lib-card__head .tool-icon svg { width: 28px; height: 28px; }
.lib-card__head h3 { margin: 2px 0 4px; font-size: 18px; letter-spacing: -.02em; }
.lib-card__head p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.lib-card__count { padding: 4px 9px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-size: 12px; font-weight: 700; white-space: nowrap; }
.lib-card__list { position: relative; z-index: 1; margin: 0 0 20px; padding: 0; list-style: none; }
.lib-card__list a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eef1f6; color: var(--ink-2); font-size: 14.5px; font-weight: 550; text-decoration: none; }
.lib-card__list a span { margin-right: auto; }
.lib-card__list a .icon { color: #9aa7bb; }
.lib-card__list a:hover { color: var(--brand); }
.lib-card__list a:hover .icon { color: var(--brand); }
.lib-card--image .lib-card__list,
.lib-card--pdf .lib-card__list,
.lib-card--office .lib-card__list { margin-right: 0; }
.lib-card__list li:nth-child(n+4) a { margin-right: 96px; }
.lib-card__art { position: absolute; right: 20px; bottom: 56px; width: 110px; height: 96px; pointer-events: none; }
.lib-card__art > svg { width: 110px; filter: drop-shadow(0 14px 22px rgba(31,63,160,.22)); }
.lib-card__doc { position: absolute; right: 6px; bottom: 0; width: 84px; height: 94px; transform: rotate(-6deg); background: #fff3f2; }
.lib-card__stack { position: absolute; width: 48px; height: 48px; border-radius: 13px; }
.lib-card__stack--1 { right: 50px; top: -6px; transform: rotate(-8deg); }
.lib-card__stack--2 { right: 22px; top: 26px; transform: rotate(4deg); }
.lib-card__stack--3 { right: -2px; top: 58px; transform: rotate(10deg); }
.lib-card__more { margin-top: auto; }

/* ---------- Privacy ---------- */
.hx-privacy { padding: 40px 0; }
.hx-privacy__panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 48px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-panel); background: var(--wash); }
.hx-privacy__art { position: relative; max-width: 340px; width: 100%; margin: 0 auto; }
.hx-privacy__art::before { content: ""; position: absolute; inset: 6% -2% 10% -6%; border-radius: 50%; background: radial-gradient(circle, #dfe8ff 0%, rgba(223,232,255,0) 70%); }
.hx-laptop { position: relative; display: block; width: 100%; }
.hx-privacy__f { position: absolute; width: 48px; height: 48px; border-radius: 13px; }
.hx-privacy__f--1 { left: 4%; top: -4%; transform: rotate(-8deg); }
.hx-privacy__f--2 { right: 4%; top: 4%; transform: rotate(8deg); }
.hx-privacy__f--3 { right: -2%; top: 46%; width: 42px; height: 42px; transform: rotate(-4deg); }
.hx-privacy__copy .hx-lede { max-width: 38rem; }
.hx-privacy__points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.hx-privacy__points li { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.hx-privacy__points strong { display: block; font-size: 14px; color: var(--ink); }
.hx-privacy__points small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.hx-privacy__ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); }
.hx-privacy__ico--ok { background: #e7f7ef; color: #0d7a4f; }

/* ---------- Steps ---------- */
.hx-steps { padding: 48px 0 24px; }
.hx-steps__aside { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.hx-steps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.hx-steps__list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.hx-steps__list li::before { display: none; }
.hx-steps__num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 6px 14px -6px rgba(31,79,224,.8); }
.hx-steps__list h3 { margin: 5px 0 6px; font: 700 16px/1.3 var(--body); letter-spacing: -.01em; }
.hx-steps__list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.hx-steps__ico { display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid #c9d6f5; border-radius: 9px; color: var(--brand); }

/* ---------- FAQ ---------- */
.hx-faq { padding: 48px 0 64px; }
.hx-faq__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.hx-faq__list { display: grid; gap: 8px; }
.hx-faq__item { border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .16s var(--ease); }
.hx-faq__item[open] { border-color: #c5d3f5; }
.hx-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; cursor: pointer; list-style: none; font-weight: 650; font-size: 15px; color: var(--ink); }
.hx-faq__item summary::-webkit-details-marker { display: none; }
.hx-faq__item summary .icon { flex: none; color: var(--muted); transition: transform .2s var(--ease); }
.hx-faq__item[open] summary .icon { transform: rotate(45deg); color: var(--brand); }
.hx-faq__item p { margin: 0; padding: 0 16px 16px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- CTA (all non-tool pages) ---------- */
.hx-cta { padding: 16px 0 0; position: relative; z-index: 1; margin-bottom: -64px; }
.hx-cta__panel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 44px) clamp(28px, 6vw, 72px); border-radius: var(--r-panel); background: linear-gradient(120deg, #1f4fe0 0%, #2a5cf2 55%, #1a3fc6 100%); color: #fff; box-shadow: 0 30px 60px -30px rgba(31,79,224,.6); }
.hx-cta__panel::after { content: ""; position: absolute; right: -80px; top: -120px; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }
.hx-cta h2 { margin: 0 0 6px; color: #fff; font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.035em; }
.hx-cta p { margin: 0; max-width: 32rem; color: rgba(255,255,255,.85); font-size: 15.5px; }
.hx-cta .btn { position: relative; z-index: 1; flex: none; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 0; background: #fff; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.hx-cta + .site-footer { padding-top: 120px; border-top: 0; }
.site-footer__grid { grid-template-columns: minmax(0, 1.9fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.site-footer__grid.site-footer__grid--4 { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
.site-footer .brand { margin-bottom: 14px; }
.site-footer .brand__img, .site-footer .brand__img--original { width: 168px; }
.site-footer__about p { max-width: 24em; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.site-footer__proof { display: inline-flex; width: fit-content; max-width: 100%; padding: 7px 11px; font-size: 12.5px; border-radius: 10px; white-space: nowrap; }
@media (max-width: 380px) { .site-footer__proof { white-space: normal; } }
.site-footer h2 { margin-bottom: 12px; color: var(--ink); font: 700 14px/1.4 var(--body); }
.site-footer ul { gap: 7px; }
.site-footer a { color: var(--muted); font-size: 13.5px; }
.site-footer a:hover { color: var(--brand); text-decoration: none; }
.site-footer__social { display: flex !important; gap: 8px !important; }
.site-footer__social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eef2f8; color: var(--ink-2); }
.site-footer__social a:hover { background: var(--brand); color: #fff; }
.site-footer__base { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 18px; border-top: 0; color: #94a3b8; font-size: 13px; }

.site-footer__base::before { content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut); height: 1px; background: var(--line); }

/* ---------- Inner pages: bring shared pieces in line with the home page ---------- */
.section-kicker { padding: 0; border: 0; background: none; font-size: 12px; }
.section-kicker::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: currentColor; }
.section-kicker--light { color: rgba(255,255,255,.85); background: none; }
.filter.is-active { background: var(--brand); color: #fff; }
.dir-group__head { border-bottom: 1px solid var(--line); }
.directory__rail-card, .dir-group { border-color: var(--line); }

/* ---------- One entrance moment: hero file tiles settle in ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hx-float, .hx-stage__note { animation: hx-drop .7s var(--ease) both; }
  .hx-float--jpg { animation-delay: .08s; }
  .hx-float--doc { animation-delay: .16s; }
  .hx-float--ppt { animation-delay: .24s; }
  .hx-stage__note { animation-delay: .4s; }
  @keyframes hx-drop { from { opacity: 0; translate: 0 -14px; } to { opacity: 1; translate: 0 0; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-header__inner { gap: 18px; }
  .search-trigger { min-width: 190px; }
  .hx-popular__panel { grid-template-columns: 1fr; gap: 24px; }
  .hx-popular__intro .hx-lede { max-width: 40rem; }
}
@media (max-width: 1024px) {
  .search-trigger { min-width: 0; width: 42px; padding: 0; justify-content: center; border: 1px solid var(--line-strong); background: #fff; }
  .hx-hero__grid { grid-template-columns: 1fr; }
  .hx-stage { max-width: 600px; width: 100%; margin: 0 auto; }
  .hx-library__grid { grid-template-columns: 1fr 1fr; }
  .hx-privacy__panel { grid-template-columns: 1fr; }
  .hx-privacy__art { max-width: 300px; }
  .hx-steps__list { grid-template-columns: 1fr; }
  .site-footer__grid, .site-footer__grid.site-footer__grid--4 { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .site-header__inner { min-height: 66px; }
  .site-nav { inset: 66px 0 auto 0; padding: 10px var(--gut) 18px; max-height: calc(100vh - 66px); overflow-y: auto; }
  .site-nav__list { align-items: stretch; }
  .nav-sub__btn { width: 100%; justify-content: space-between; padding: 12px 8px; font-size: 17px; }
  .nav-sub__panel { position: static; width: auto; margin: 4px 0 8px; box-shadow: none; background: var(--wash); border-color: transparent; }
  .hx-stats { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .hx-stats li:nth-child(3) { border-left: 0; }
  .hx-popular__grid { grid-template-columns: 1fr 1fr; }
  .hx-privacy__points { grid-template-columns: 1fr; }
  .hx-faq__grid { grid-template-columns: 1fr; gap: 24px; }
  .hx-head--split { flex-direction: column; align-items: flex-start; }
  .hx-cta__panel { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  .site-header__cta { display: none; }
  .hx-library__grid { grid-template-columns: 1fr; }
  .hx-stage { padding: 40px 12px 16px; }
  .hx-stage__note { display: none; }
  .hx-float--doc { left: -6px; }
  .hx-float--ppt { right: -6px; }
  .hx-router .router__drop, .hx-router .router__result { min-height: 280px; }
  .hx-hero__actions .btn { flex: 1 1 100%; }
  .site-footer__grid, .site-footer__grid.site-footer__grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .hx-popular__panel { padding: 24px 16px; border-radius: 22px; }
  .hx-popular__intro { padding: 0 6px; }
  .hx-popular__grid { grid-template-columns: 1fr; gap: 10px; }
  .pop-card { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 2px; min-height: 0; padding: 16px 52px 16px 16px; }
  .pop-card .tool-icon { grid-row: span 2; margin: 0; }
  .pop-card__go { top: 50%; bottom: auto; margin-top: -15px; }
  .hx-stats { padding: 16px 4px; gap: 16px 0; }
  .hx-stats li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 4px 16px; }
  .hx-stats li + li { border-left: 0; }
  .hx-stats li:nth-child(even) { border-left: 1px solid var(--line); }
  .hx-steps__aside { margin: 0; }
  .hx-cta__panel { padding: 28px 22px; }
  .lib-card__list li:nth-child(n+4) a { margin-right: 0; }
  .lib-card__art { display: none; }
  .brand__img, .brand__img--original { width: 146px; }
}

/* Resize Image — live output-size preview (3.1.0) */
.rz-prev { margin: 4px 0 16px; padding: 12px 14px; border: 1px solid var(--line, #e6ebf3); border-radius: 12px; background: #f8fafc; font-size: 13px; }
.rz-prev__title { margin: 0 0 6px; font-weight: 600; color: var(--ink, #0f172a); }
.rz-prev ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rz-prev li { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rz-prev__name { color: var(--muted, #64748b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rz-prev__dim b { color: var(--ink, #0f172a); }
.rz-prev__dim em { font-style: normal; color: var(--muted, #64748b); }
.rz-prev__wait, .rz-prev__more { margin: 0; color: var(--muted, #64748b); }

/* Blog/search empty state (3.1.1 — was unstyled) */
.empty-state { max-width: 560px; margin: 32px auto; padding: 28px; text-align: center; border: 1px dashed var(--line-strong, #d3dbe8); border-radius: 16px; color: var(--muted, #64748b); }
.empty-state .search-form { margin-top: 14px; justify-content: center; }
