:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f6f8fb;
  --brand: #ff3147;
  --brand-d: #e3203a;
  --brand-soft: #fff0f2;
  --blue: #6494af;
  --blue-soft: #eef4f8;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 40px -12px rgba(15, 23, 42, .18);
  --checker: repeating-conic-gradient(#e8ebf0 0 25%, #fff 0 50%) 0 0 / 20px 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.show-sm { display: none; }
@media (max-width: 640px) { .hide-sm { display: none !important; } .show-sm { display: inline; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 20px; font-weight: 650; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s, color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -6px rgba(255, 49, 71, .55); }
.btn-primary:hover { background: var(--brand-d); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn-sm { padding: 9px 15px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 17px; border-radius: 14px; }
.btn:focus-visible, .icon-btn:focus-visible, .seg-btn:focus-visible, .sw:focus-visible, .sample:focus-visible { outline: 3px solid rgba(255, 49, 71, .35); outline-offset: 2px; }

/* ---------- promo top bar ---------- */
html[data-promo-closed] [data-promo-top] { display: none; }
.promo-top { color: #fff; background: linear-gradient(90deg, #1e1b4b, #5b21b6 55%, #9d174d); }
.promo-top-in { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.promo-top-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; text-decoration: none; }
.promo-logo { width: 32px; height: 32px; padding: 2px; border-radius: 8px; background: #fff; flex-shrink: 0; }
.promo-top-txt { min-width: 0; display: flex; flex-direction: column; }
.promo-top-txt b { font-size: 14px; line-height: 1.25; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-top-txt small { font-size: 12px; color: rgba(255, 255, 255, .78); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-top-cta { flex-shrink: 0; background: #fff; color: #5b21b6; font-size: 13px; font-weight: 650; text-decoration: none; padding: 7px 14px; border-radius: 999px; }
.promo-top-cta:hover { opacity: .9; }
.promo-close { flex-shrink: 0; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.promo-close:hover { background: rgba(255, 255, 255, .15); }
@media (max-width: 640px) {
  .promo-top-txt b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; }
  .promo-top-txt small { display: none; }
}

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(226, 232, 240, .7); }
.header-in { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand em { font-style: normal; color: var(--brand); }
.main-nav { display: flex; gap: 6px; }
.main-nav a { text-decoration: none; color: var(--ink-2); font-weight: 550; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.main-nav a:hover { background: var(--soft); color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--soft); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 220px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: grid; }
.lang-list a { text-decoration: none; padding: 8px 12px; border-radius: 9px; font-size: 14px; color: var(--ink-2); }
.lang-list a:hover { background: var(--soft); }
.lang-list a[aria-current] { color: var(--brand); font-weight: 650; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; place-items: center; }
.nav-toggle:hover { background: var(--soft); }
@media (max-width: 820px) {
  .header-in { gap: 12px; height: 60px; }
  .nav-toggle { display: grid; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; padding: 10px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px -18px rgba(15, 23, 42, .3); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; font-size: 16px; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 48px 0 56px; background:
  radial-gradient(60% 50% at 12% 0%, rgba(255, 49, 71, .10), transparent 70%),
  radial-gradient(50% 50% at 92% 10%, rgba(100, 148, 175, .16), transparent 70%),
  linear-gradient(#fff, #fbfcfe); }
.hero-head { text-align: center; max-width: 760px; margin: 0 auto 30px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 850; letter-spacing: -.035em; }
.hero-sub { margin: 14px auto 0; font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 620px; }
.badges { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.badges li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.badges svg { color: #16a34a; }
.page-editor .hero { padding-top: 36px; }

/* ---------- tool ---------- */
.tool { position: relative; max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: 14px; }
.tool-view { display: none; }
.tool[data-state="idle"] [data-view="idle"],
.tool[data-state="processing"] [data-view="processing"],
.tool[data-state="error"] [data-view="error"],
.tool[data-state="result"] [data-view="result"] { display: block; }

.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; min-height: 340px; padding: 36px 20px; border: 2px dashed #cfd6e1; border-radius: 18px; background: linear-gradient(180deg, #fbfcfe, #f5f7fb); transition: border-color .15s, background .15s; cursor: pointer; }
.drop:hover, .drop.is-over { border-color: var(--brand); background: var(--brand-soft); }
.drop-art { position: relative; width: 168px; height: 112px; margin-bottom: 10px; }
.drop-art img { position: absolute; top: 0; width: 76px; height: 112px; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 22px -10px rgba(15, 23, 42, .45); }
.drop-art img:first-child { left: 8px; transform: rotate(-7deg); }
.drop-art img:last-child { right: 8px; transform: rotate(7deg); background: var(--checker); object-fit: contain; border: 3px solid #fff; }
.drop-text { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.drop-types { margin: 0; color: var(--muted); font-size: 13px; }

.samples { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; padding: 14px 6px 4px; font-size: 14px; color: var(--muted); }
.samples-list { display: flex; gap: 8px; }
.sample { width: 52px; height: 52px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 1px var(--line); transition: transform .15s, box-shadow .15s; }
.sample img { width: 100%; height: 100%; object-fit: cover; }
.sample:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--brand); }

.tool-proc { padding: 6px; }
.proc-stage { position: relative; display: grid; place-items: center; min-height: 340px; max-height: 62vh; border-radius: 18px; overflow: hidden; background: var(--soft); }
.proc-stage img { max-height: 62vh; max-width: 100%; object-fit: contain; filter: saturate(.85); }
.proc-scan { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(255, 49, 71, .0) 40%, rgba(255, 49, 71, .28) 50%, rgba(255, 255, 255, 0) 52%); background-size: 100% 200%; animation: scan 1.8s ease-in-out infinite; pointer-events: none; }
@keyframes scan { 0% { background-position: 0 100%; } 100% { background-position: 0 -100%; } }
.proc-info { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px 10px; text-align: center; }
.proc-info b { font-size: 17px; }
.proc-info small { color: var(--muted); font-size: 13px; }
.proc-bar { width: min(360px, 80%); height: 6px; border-radius: 6px; background: #edf0f5; overflow: hidden; }
.proc-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--brand), #ff7a59); transition: width .3s linear; }

.tool-error { text-align: center; padding: 60px 20px; }
.tool-error svg { margin: 0 auto 10px; }
.tool-error p { margin: 0 auto 18px; max-width: 460px; font-weight: 550; }
.tool-error-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.ed-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 12px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--soft); border-radius: 14px; }
.seg-btn { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.ed-bar-right { display: flex; gap: 6px; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.icon-btn:hover:not(:disabled) { background: var(--soft); color: var(--ink); }
.icon-btn[aria-pressed="true"] { background: var(--blue-soft); color: #305f7a; }
.icon-btn:disabled { opacity: .4; cursor: default; }

.ed-stage { display: grid; place-items: center; min-height: 300px; height: min(62vh, 640px); border-radius: 18px; background: var(--soft); overflow: hidden; position: relative; }
.ed-canvas { position: relative; line-height: 0; background: var(--checker); box-shadow: 0 2px 10px rgba(15, 23, 42, .08); }
.ed-canvas canvas { display: block; }
.tool[data-mode="erase"] .ed-canvas canvas, .tool[data-mode="restore"] .ed-canvas canvas { cursor: none; touch-action: none; }
.ed-cursor { position: absolute; left: 0; top: 0; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(0, 0, 0, .35); pointer-events: none; transform: translate(-50%, -50%); }
.ed-compare { position: absolute; top: 0; bottom: 0; left: 50%; width: 44px; margin-left: -22px; cursor: ew-resize; touch-action: none; }
.ed-compare::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .45); }
.ed-compare span { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.ed-compare span::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 16px/1 var(--font); letter-spacing: 2px; color: var(--ink-2); }

.ed-panel { padding: 14px 2px 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sw { position: relative; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .14); display: grid; place-items: center; color: var(--ink-2); transition: transform .12s; }
.sw:hover { transform: scale(1.08); }
.sw.is-on { box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .14), 0 0 0 2px #fff, 0 0 0 4px var(--brand); }
.sw-none { background: var(--checker); background-size: 12px 12px; }
.sw-blur { background: url(/assets/img/rb/t-car.jpg) center / cover; }
.sw-blur::after { content: ""; position: absolute; inset: 0; border-radius: 50%; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sw-custom { background: conic-gradient(#f43f5e, #f59e0b, #84cc16, #06b6d4, #6366f1, #d946ef, #f43f5e); overflow: hidden; }
.sw-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.sw-photo { background: #fff; box-shadow: inset 0 0 0 1.5px #cbd5e1; }
.brush { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.brush input { width: min(320px, 60vw); accent-color: var(--brand); }

.ed-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 2px 2px; }
.ed-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) {
  .tool { padding: 10px; border-radius: 20px; }
  .drop { min-height: 260px; padding: 26px 14px; }
  .seg-btn { padding: 8px 10px; }
  .seg-btn span, .icon-btn span { display: none; }
  .ed-stage { height: 52vh; }
  .ed-actions .btn-lg { flex: 1; }
}

.drop-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(255, 49, 71, .12); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); border: 4px dashed var(--brand); pointer-events: none; }
.drop-overlay span { background: #fff; padding: 16px 26px; border-radius: 14px; font-weight: 700; font-size: 18px; box-shadow: var(--shadow); }

.tool-promo { max-width: 980px; margin: 18px auto 0; }

/* ---------- promo card ---------- */
.promo-card { display: flex; align-items: center; gap: 22px; padding: 22px; border-radius: 20px; background: linear-gradient(120deg, #f5f3ff, #fdf2f8 60%, #fff7ed); border: 1px solid #ddd6fe; }
.promo-demo { flex-shrink: 0; width: 262px; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid #ede9fe; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
.pd-user { display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; }
.pd-bubble { max-width: 186px; padding: 8px 12px; border-radius: 16px 16px 6px 16px; color: #fff; font-size: 12px; line-height: 1.35; background: linear-gradient(120deg, #7c3aed, #db2777); }
.pd-thumb { display: block; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.pd-before { width: 30px; height: 30px; background: var(--checker); background-size: 8px 8px; }
.pd-ai { display: flex; align-items: center; gap: 8px; }
.pd-reply { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 16px 16px 16px 6px; background: #f1f5f9; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pd-after { width: 48px; height: 48px; background: linear-gradient(180deg, #fcd34d, #fb923c 46%, #38bdf8 47%, #0ea5e9); }
.promo-body { flex: 1; min-width: 0; }
.promo-brand { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: #6d28d9; }
.promo-brand img { width: 20px; height: 20px; }
.ai-tag { padding: 1px 6px; border-radius: 999px; font-size: 10px; color: #fff; background: #7c3aed; }
.promo-title { margin: 6px 0 0; font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.promo-text { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.promo-go { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.promo-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; background: linear-gradient(120deg, #7c3aed, #db2777); box-shadow: 0 8px 20px -8px rgba(124, 58, 237, .6); white-space: nowrap; }
.promo-cta:hover { opacity: .92; }
.promo-go small { font-size: 12px; color: var(--muted); }
@media (max-width: 860px) {
  .promo-card { flex-direction: column; align-items: stretch; text-align: left; }
  .promo-demo { display: none; }
  .promo-go { align-items: flex-start; }
}

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section-soft { background: var(--soft); }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; text-align: center; letter-spacing: -.03em; }
.section-sub { max-width: 640px; margin: 12px auto 0; text-align: center; color: var(--muted); font-size: 17px; }

.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.ba { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--soft); box-shadow: 0 1px 2px rgba(15, 23, 42, .06); user-select: none; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { position: absolute; inset: 0; background: var(--ba-bg, #fff); clip-path: inset(0 0 0 var(--pos)); }
.ba-after::before { content: ""; position: absolute; inset: 0; background: var(--checker); opacity: .35; }
.ba-after img { position: relative; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .35); pointer-events: none; }
.ba-line i { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.ba-line i::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 14px/1 var(--font); letter-spacing: 1px; color: var(--ink-2); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
@media (max-width: 900px) { .examples { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .examples { grid-template-columns: 1fr; gap: 14px; } }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 24px 22px; border: 1px solid var(--line); }
.step-icon, .feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.step-num { display: block; margin-top: 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.step h3 { margin-top: 4px; font-size: 18px; font-weight: 750; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 40px; }
.feature-icon { background: var(--blue-soft); color: #3f7392; }
.feature h3 { margin-top: 16px; font-size: 18px; font-weight: 750; }
.feature p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.home-promo { margin-top: 56px; }

.about { color: var(--ink-2); }
.about h2 { margin-bottom: 22px; }
.about p { margin: 0 0 14px; }

.faq { margin-top: 34px; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq details[open] { box-shadow: 0 6px 20px -12px rgba(15, 23, 42, .25); }
.faq summary { list-style: none; cursor: pointer; padding: 17px 30px 17px 0; position: relative; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- footer ---------- */
.xp-bottom:empty { display: none; }
.xp-bottom { margin-top: 24px; margin-bottom: 24px; }
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 40px 0 30px; }
.footer-top { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.footer-tag { margin: 0; color: var(--muted); font-size: 14px; }
.footer-links { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 550; }
.footer-links a:hover { color: var(--brand); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-langs a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-langs a:hover, .footer-langs a[aria-current] { color: var(--ink); }
.copy { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .footer-links { margin-left: 0; } }

/* ---------- simple pages ---------- */
.page-hero { padding: 56px 0 24px; text-align: center; background: linear-gradient(#fbfcfe, #fff); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 850; letter-spacing: -.03em; }
.page-hero p { margin: 10px 0 0; color: var(--muted); }
.legal { padding: 20px 20px 70px; color: var(--ink-2); }
.legal h3 { margin: 30px 0 10px; font-size: 20px; color: var(--ink); }
.legal p, .legal li, .legal address { font-size: 15.5px; }
.legal address { font-style: normal; margin: 6px 0 14px; }
.nf { padding: 90px 20px 110px; text-align: center; }
.nf-code { font-size: clamp(90px, 18vw, 160px); font-weight: 900; line-height: 1; letter-spacing: -.06em; background: linear-gradient(120deg, var(--brand), #6494af); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { margin-top: 8px; font-size: 30px; }
.nf p { color: var(--muted); margin: 12px auto 26px; max-width: 460px; }

/* ---------- tools menu ---------- */
.nav-drop { position: relative; }
.nav-drop summary { list-style: none; display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 10px; cursor: pointer; color: var(--ink-2); font-weight: 550; font-size: 15px; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary:hover, .nav-drop[open] summary { background: var(--soft); color: var(--ink); }
.nav-drop summary svg { transition: transform .2s; }
.nav-drop[open] summary svg { transform: rotate(180deg); }
.nav-drop-list { position: absolute; left: 0; top: calc(100% + 8px); z-index: 60; width: 280px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: grid; }
.main-nav .nav-drop-list a { padding: 9px 12px; font-size: 14.5px; border-radius: 9px; }
.main-nav .nav-drop-list a[aria-current] { color: var(--brand); font-weight: 650; }
@media (max-width: 820px) {
  .nav-drop summary { padding: 12px; font-size: 16px; }
  .nav-drop-list { position: static; width: auto; border: 0; box-shadow: none; padding: 0 0 6px 10px; }
}

/* ---------- tool pages ---------- */
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 13.5px; font-weight: 550; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.ba-full::before { display: none; }
.ba-cut::before { opacity: 1; }
.steps.steps-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .steps.steps-3 { grid-template-columns: 1fr; } }
.features-top { margin-top: 56px; }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.tool-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tc-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.tc-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.tc-img.is-cut { background: var(--checker); }
.tc-img.is-cut img { object-fit: contain; }
.tc-body { display: grid; gap: 4px; padding: 14px 16px 18px; }
.tc-body b { font-size: 17px; line-height: 1.3; }
.tc-body small { color: var(--muted); font-size: 14px; line-height: 1.45; }
@media (max-width: 900px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .tools-grid { gap: 12px; }
  .tc-body { padding: 10px 12px 14px; }
  .tc-body b { font-size: 15px; }
  .tc-body small { display: none; }
}

/* ---------- share ---------- */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sh { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: #fff; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.sh:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(15, 23, 42, .5); }
.sh:focus-visible { outline: 3px solid rgba(255, 49, 71, .35); outline-offset: 2px; }
.sh-whatsapp { background: #25d366; }
.sh-telegram { background: #26a5e4; }
.sh-x { background: #0f1419; }
.sh-facebook { background: #1877f2; }
.sh-pinterest { background: #e60023; }
.sh-reddit { background: #ff4500; }
.sh-vk { background: #0077ff; }
.sh-copy, .sh-more { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.sh.is-done::after, .share-pop-img.is-done::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 5; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font: 600 12.5px/1.3 var(--font); white-space: nowrap; pointer-events: none; }
.share-sm .sh { width: 38px; height: 38px; }
.share-sm .sh svg { width: 18px; height: 18px; }
.share-lg .sh { width: 48px; height: 48px; }
.share-sec { padding-top: 0; }
.section-soft + .share-sec { padding-top: 76px; background: var(--soft); }
.share-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; padding: 30px 34px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(120deg, #fff1f3, #eef4f8); }
.share-card h2 { text-align: left; font-size: clamp(24px, 2.6vw, 30px); }
.share-card p { max-width: 470px; margin: 8px 0 0; color: var(--muted); }
@media (max-width: 640px) { .share-card { padding: 24px 20px; } }
.share-sticky { position: fixed; left: 14px; top: 50%; z-index: 40; flex-direction: column; gap: 8px; transform: translateY(-50%); }
.share-sticky .sh { width: 40px; height: 40px; box-shadow: 0 4px 12px -6px rgba(15, 23, 42, .45); }
.share-sticky .sh-copy { box-shadow: inset 0 0 0 1px var(--line), 0 4px 12px -6px rgba(15, 23, 42, .45); }
.share-sticky .sh svg { width: 18px; height: 18px; }
.share-sticky .sh:hover { transform: translateX(3px); }
.share-sticky .sh.is-done::after { left: calc(100% + 8px); bottom: auto; top: 50%; transform: translateY(-50%); }
@media (max-width: 1279px) { .share-sticky { display: none; } }

/* share the result from the editor */
.ed-actions { position: relative; }
.ed-actions-r { display: flex; align-items: center; gap: 10px; }
.share-pop { position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 30; display: grid; gap: 12px; width: min(380px, 100%); padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.share-pop-title { margin: 0; font-size: 15px; font-weight: 700; }
.share-pop-img { position: relative; justify-self: start; }
.share-pop .share { gap: 8px; }
.sw-photo.is-hint { animation: rb-hint 1.3s ease-in-out 5; }
@keyframes rb-hint {
  0%, 100% { box-shadow: inset 0 0 0 1.5px #cbd5e1, 0 0 0 0 rgba(255, 49, 71, .55); }
  50% { box-shadow: inset 0 0 0 1.5px var(--brand), 0 0 0 9px rgba(255, 49, 71, 0); }
}
@media (max-width: 640px) {
  .ed-actions > .btn-ghost span, .ed-actions-r > .btn-ghost span { display: none; }
  .ed-actions-r { flex: 1; }
  .share-pop { left: 0; width: auto; }
}

/* ---------- footer tools ---------- */
.footer-tools { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }
.footer-tools a { color: var(--ink-2); font-size: 14px; font-weight: 550; text-decoration: none; }
.footer-tools a:hover { color: var(--brand); }
.footer-mid { margin-top: 14px; }
.footer-mid .footer-links { margin-left: 0; }
