:root {
  --primary: #145c84;
  --primary-600: #0f4c6e;
  --primary-50: #eaf3f9;
  --ink: #2b2d38;
  --ink-2: #4a4d5a;
  --muted: #6c7180;
  --line: #e6e8ec;
  --line-2: #d6d9df;
  --bg: #ffffff;
  --bg-soft: #f5f6f7;
  --bg-tint: #f6f9fb;
  --green: #22a55b;
  --hl: #fbf35b;
  --shadow: 0 4px 24px rgba(20, 40, 60, .08);
  --shadow-sm: 0 1px 3px rgba(20, 40, 60, .08);
  --radius: 14px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0; }
p { margin: 0; }
.center { text-align: center; }
[hidden] { display: none !important; }
button { font: inherit; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 10px 18px; font-size: 16px; font-weight: 500; cursor: pointer; text-decoration: none !important; transition: background .15s, box-shadow .15s, opacity .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-outline { background: #fff; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-50); }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-green { background: #1fae4b; color: #fff; }
.btn-green:hover { background: #17963f; }
.btn-gradient { background: linear-gradient(90deg, #135b83, #4b8db6); color: #fff; }
.btn-gradient:hover { box-shadow: 0 6px 18px rgba(19, 91, 131, .3); }
.btn-sm { padding: 7px 12px; font-size: 15px; }
.btn-lg { min-width: 220px; height: 50px; font-size: 18px; }
.btn[disabled], .btn.loading { opacity: .65; cursor: wait; pointer-events: none; }
.btn.loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #9cc3dc; background: var(--primary-50); color: var(--primary); font-weight: 600; font-size: 15px; padding: 9px 22px; border-radius: 999px; cursor: pointer; text-decoration: none !important; }
.pill-btn svg { width: 16px; height: 16px; transition: transform .2s; }
.pill-btn.open svg { transform: rotate(180deg); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 8px rgba(0,0,0,.04); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; padding: 0 20px; max-width: 1440px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 27px; font-weight: 700; color: var(--primary); letter-spacing: -.3px; text-decoration: none !important; }
.logo-mark { width: 40px; height: 40px; }
.main-nav { display: flex; align-items: center; gap: 32px; margin-left: 24px; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--ink); font-size: 17px; cursor: pointer; padding: 6px 0; text-decoration: none !important; }
.nav-link svg { width: 18px; height: 18px; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.products-btn { font-weight: 600; }
.nav-cta { position: relative; display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(90deg, #2c5fd6, #1e4bb8); color: #fff; padding: 8px 16px; border-radius: 8px; font-size: 18px; font-weight: 500; text-decoration: none !important; box-shadow: 0 2px 6px rgba(30, 75, 184, .25); }
.nav-cta svg { width: 18px; height: 18px; color: #ffd84d; }
.nav-cta em { position: absolute; top: -12px; right: -22px; background: #a5152f; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.header-right { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; font-weight: 600; font-size: 16px; color: var(--ink); cursor: pointer; }
.lang-btn svg { width: 16px; height: 16px; }
.lang-btn svg:first-child { width: 18px; height: 18px; color: var(--primary); }
.lang-menu { position: absolute; right: 0; top: 34px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; min-width: 150px; }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.lang-menu a:hover { background: var(--bg-soft); }
.get-started { font-size: 17px; }
.menu-toggle { display: none; border: 0; background: none; padding: 6px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

.products { position: relative; }
.mega { position: absolute; left: 0; top: 46px; width: min(936px, calc(100vw - 40px)); background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(20, 40, 60, .18); overflow: hidden; }
.mega-head { background: #e9edf2; padding: 18px 24px; font-size: 26px; font-weight: 700; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 12px; padding: 16px; max-height: 70vh; overflow: auto; }
.mega-item { display: block; padding: 10px; border-radius: 8px; color: var(--ink); text-decoration: none !important; }
.mega-item:hover { background: var(--bg-soft); }
.mega-title { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 17px; }
.mega-title svg { width: 14px; height: 14px; }
.mega-desc { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-2); line-height: 1.55; }

/* ---------- hero + editor ---------- */
.hero { max-width: 1100px; margin: 0 auto; padding: 18px 20px 10px; text-align: center; }
.hero h1 { font-size: 28px; font-weight: 700; }
.hero-sub { margin-top: 18px; font-size: 21px; font-weight: 600; color: var(--ink); }
.page-head { max-width: 1000px; margin: 0 auto; padding: 18px 20px 6px; text-align: center; }
.page-head h1 { font-size: 28px; font-weight: 700; }
.page-head p { margin-top: 12px; font-size: 19px; font-weight: 600; }
.tool-wrap { display: flex; gap: 6px; justify-content: center; align-items: flex-start; margin: 14px auto 0; max-width: 980px; text-align: left; }
.tool-rail { display: flex; flex-direction: column; gap: 4px; width: 84px; padding: 6px 0; background: linear-gradient(90deg, #fff, #f3f4f6); border-radius: 10px; flex: none; }
.tool-rail a { display: flex; align-items: center; justify-content: flex-start; padding: 6px 2px; color: var(--primary); }
.tool-rail a svg { width: 26px; height: 26px; }
.tool-rail a.active { background: #e9ebee; border-bottom: 1px solid #9aa3ad; border-radius: 6px 0 0 0; }
.tool-rail a span { display: none; }
.editor-card { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 24px 32px 14px; }
.editor { display: block; width: 100%; height: 214px; border: 0; outline: 0; resize: none; font: 14px/1.2 var(--font); color: var(--ink); background: transparent; }
.editor.mono { font-family: var(--mono); font-size: 13px; line-height: 1.15; }
.editor::placeholder { color: #6b6f78; }
.editor-bar { display: flex; align-items: center; gap: 28px; margin-top: 14px; flex-wrap: wrap; }
.bar-spacer { flex: 1; max-width: 140px; }
.upload-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; cursor: pointer; color: var(--ink); }
.upload-link svg { width: 20px; height: 20px; }
.char-count { margin-left: auto; color: var(--ink-2); font-size: 16px; }
.char-count b { font-weight: 400; }
.char-count.over { color: #c0392b; }
.form-error { max-width: 860px; margin: 16px auto 0; background: #fdecea; color: #a23224; border: 1px solid #f5c2bb; border-radius: 8px; padding: 10px 14px; text-align: left; }

/* ---------- detector result ---------- */
.result-card { scroll-margin-top: 84px; max-width: 860px; margin: 36px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 30px 56px 26px; text-align: left; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.result-title { text-align: center; font-size: 21px; font-weight: 600; }
.gauge { position: relative; width: 210px; margin: 18px auto 10px; }
.gauge svg { width: 210px; }
.gauge-label { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; line-height: 1.15; }
.gauge-label b { display: block; font-size: 21px; font-weight: 600; }
.gauge-label span { font-size: 19px; font-weight: 600; }
.highlighted { margin: 26px 0 14px; font-size: 17px; line-height: 1.72; white-space: pre-wrap; word-wrap: break-word; max-height: 520px; overflow: auto; }
.highlighted mark { background: var(--hl); color: inherit; padding: 1px 0; }
.under-btn { margin-top: 8px; font-size: 14px; font-weight: 600; }
.result-meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 26px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.result-meta p { margin: 6px 0; }
.legend { display: flex; align-items: center; gap: 8px; }
.swatch { width: 15px; height: 10px; background: var(--hl); display: inline-block; }
.pdf-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font-weight: 600; text-decoration: underline; cursor: pointer; color: var(--ink); align-self: flex-start; }
.pdf-link svg { width: 26px; height: 26px; }
.educators { margin-top: 14px; font-size: 14px; }
.educators summary { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; list-style: none; color: var(--ink-2); }
.educators summary::-webkit-details-marker { display: none; }
.educators summary svg { width: 16px; height: 16px; transition: transform .2s; }
.educators[open] summary svg { transform: rotate(180deg); }
.educators div { margin-top: 10px; color: var(--ink-2); }
.educators ul { margin: 8px 0 0; padding-left: 20px; }

/* ---------- sections ---------- */
.section-title { text-align: center; font-size: 28px; font-weight: 600; }
.section-title.small { font-size: 23px; margin-top: 34px; }
.section-sub { text-align: center; color: var(--ink-2); max-width: 760px; margin: 16px auto 0; font-size: 16px; }
.keep { max-width: 1100px; margin: 0 auto; padding: 52px 20px 10px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.tool-grid + .tool-grid { margin-top: 16px; }
.keep .center { margin-top: 18px; }
.tool-card { display: flex; align-items: center; gap: 14px; padding: 14px 14px; background: #fff; border: 1px solid #dfe2e7; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,.05); color: var(--ink); text-decoration: none !important; transition: box-shadow .15s, transform .15s; }
.tool-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.09); transform: translateY(-1px); }
.tool-card .tool-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; flex: none; }
.tool-card .tool-ico svg { width: 24px; height: 24px; }
.tool-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tool-txt b { font-weight: 600; font-size: 16px; }
.tool-txt small { font-size: 14px; color: var(--muted); }
.tool-arrow svg { width: 22px; height: 22px; color: var(--ink); }
.tool-grid.outline .tool-card { border-radius: 10px; padding: 18px 16px; align-items: flex-start; box-shadow: none; }
.tool-grid.outline .tool-ico { background: var(--primary-50); color: var(--primary); }
.tool-grid.outline .tool-txt small { color: var(--ink-2); font-size: 14px; line-height: 1.5; margin-top: 2px; }
.tool-grid.outline .tool-arrow { align-self: center; color: var(--muted); }
.tool-grid.outline .tool-arrow svg { width: 18px; color: var(--muted); }

.features { max-width: 1100px; margin: 0 auto; padding: 56px 20px 30px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0 26px; }
.feature { display: flex; gap: 12px; padding: 10px 12px 12px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.feature-ico { width: 72px; height: 72px; flex: none; border-radius: 50%; background: #eef4f9; color: var(--primary); display: grid; place-items: center; }
.feature-ico svg { width: 36px; height: 36px; }
.feature h4 { font-size: 20px; font-weight: 600; margin-top: 8px; }
.feature .fdash { display: block; width: 24px; height: 3px; background: var(--primary); margin: 12px 0 10px; }
.feature p { font-size: 15px; color: var(--ink-2); }

.api-strip { max-width: 1080px; margin: 30px auto; padding: 10px 20px 24px; display: flex; align-items: center; gap: 26px; }
.api-badge { width: 96px; height: 96px; flex: none; border-radius: 50%; background: #121c25; color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 600; letter-spacing: -.5px; }
.api-strip p { margin: 4px 0; font-size: 16px; }
.api-strip b { font-size: 16px; font-weight: 600; }
.api-strip .btn { margin-left: auto; }
.api-strip .btn svg { width: 16px; }

.tech { background: var(--bg-tint); padding: 60px 20px; }
.tech-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.tech-art svg { width: min(340px, 100%); margin: 0 auto; }
.tech-copy h3 { font-size: 19px; font-weight: 700; }
.tech-copy h4 { font-size: 16px; font-weight: 600; margin: 20px 0; }
.tech-copy p { font-size: 16px; line-height: 1.55; color: var(--ink); }
.tech-copy .pill-btn { margin-top: 24px; border-radius: 999px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.stats b { display: block; font-size: 21px; font-weight: 600; }
.stats span { font-size: 14px; color: var(--ink-2); }

.dark-band { background: #0b0b0c; color: #e9e9ea; padding: 64px 20px; }
.dark-inner { max-width: 1130px; margin: 0 auto; }
.dark-band h2 { color: #fff; font-size: 34px; font-weight: 500; }
.dark-band > .dark-inner > p { margin-top: 14px; font-size: 18px; color: #d4d4d6; }
.dark-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; }
.dark-card { background: #1f1f21; border-radius: 16px; padding: 28px; }
.dark-card h4 { color: #fff; margin: 16px 0 12px; font-size: 18px; font-weight: 600; }
.dark-card p { font-size: 15px; color: #d0d0d2; line-height: 1.6; }
.dark-ico { width: 40px; height: 40px; border-radius: 50%; background: #2a2a2d; color: #5ab0e6; display: grid; place-items: center; }
.dark-ico svg { width: 22px; height: 22px; }

.explore { max-width: 1160px; margin: 0 auto; padding: 36px 20px 40px; }
.eyebrow { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 0 auto 16px; padding: 8px 16px; border-radius: 999px; background: #eef4f9; color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: .6px; }
.eyebrow svg { width: 15px; height: 15px; }
.explore .tool-grid { margin-top: 36px; }

.faq-band { background: var(--bg-soft); padding: 40px 20px 50px; }
.faq-inner { max-width: 1130px; margin: 0 auto; }
.eyebrow-plain { font-size: 13px; color: var(--muted); font-weight: 500; }
.faq-title { font-size: 40px; font-weight: 700; margin: 10px 0 36px; }
.faq-item { border-bottom: 1px solid #dcdfe3; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 30px 16px; cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { width: 32px; height: 32px; flex: none; display: grid; place-items: center; background: #e4e6e9; border-radius: 6px; transition: transform .2s; }
.faq-item summary i svg { width: 18px; height: 18px; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-a { padding: 0 16px 26px; color: var(--ink-2); line-height: 1.7; max-width: 980px; }

.blog { text-align: center; padding: 70px 20px 20px; }
.blog h3 { font-size: 21px; font-weight: 600; margin-bottom: 18px; }
.blog a { display: block; font-size: 16px; margin: 4px 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--primary); color: #fff; margin-top: 0; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 24px 20px 30px; display: grid; grid-template-columns: 1.1fr .8fr 2fr 1fr; gap: 30px; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 6px; }
.brand-light { color: #fff; font-size: 23px; }
.brand-light .logo-mark { width: 36px; height: 36px; }
.footer-brand p { font-size: 16px; text-align: center; }
.site-footer h4 { color: #fff; font-size: 19px; font-weight: 600; margin: 10px 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 10px; }
.site-footer a { color: #fff; font-size: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-contact { padding-top: 14px; font-size: 16px; }
.footer-contact p { margin-bottom: 10px; line-height: 1.5; }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding: 18px 20px 46px; border-top: 1px solid rgba(255,255,255,.3); display: flex; justify-content: space-between; gap: 16px; font-size: 14px; flex-wrap: wrap; }

/* ---------- generic tool pages ---------- */
.why { display: flex; gap: 12px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; margin-top: 24px; }
.why-ico { width: 30px; height: 30px; flex: none; color: var(--primary); }
.why-ico svg { width: 26px; height: 26px; }
.why b { font-size: 15px; }
.why p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.content { max-width: 1000px; margin: 0 auto; padding: 46px 20px 30px; }
.content h2 { font-size: 22px; font-weight: 700; position: relative; padding-bottom: 10px; }
.content h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 22px; height: 3px; background: var(--primary); }
.content h3 { font-size: 18px; margin: 26px 0 8px; }
.content p, .content li { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.content p + p { margin-top: 10px; }
.steps-list { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 16px; margin-top: 20px; }
.steps-list li { counter-increment: s; display: flex; gap: 14px; }
.steps-list li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; font-size: 14px; }
.note-box { background: var(--bg-tint); border: 1px solid #d8e7f1; border-radius: 10px; padding: 14px 18px; margin-top: 20px; font-size: 15px; color: var(--ink-2); }

.opts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 15px; color: var(--ink-2); }
.opts label { display: inline-flex; align-items: center; gap: 8px; }
.select { border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 10px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); }
.switch { position: relative; width: 36px; height: 20px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #cfd3d9; border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(16px); }
.range { accent-color: var(--primary); width: 120px; }

.output-card { max-width: 900px; margin: 26px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 22px 28px; text-align: left; animation: rise .35s ease; }
.output-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.output-head h3 { font-size: 18px; }
.output-text { white-space: pre-wrap; line-height: 1.7; font-size: 16px; color: var(--ink); }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: #fff; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--bg-soft); }

/* split editors (humanizer, translator) */
.split-card { max-width: 1000px; margin: 18px auto 0; background: #fff; border: 1px solid #cfe0ef; border-radius: 6px; box-shadow: var(--shadow); text-align: left; overflow: hidden; }
.split-banner { background: #dfeefa; padding: 12px 18px; text-align: center; font-size: 14px; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.split-banner .btn { padding: 6px 14px; font-size: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split > div { padding: 18px; display: flex; flex-direction: column; }
.split > div + div { border-left: 1px solid var(--line); }
.pane { flex: 1; min-height: 260px; border: 1px solid var(--line); border-radius: 8px; padding: 14px; font: 15px/1.6 var(--font); color: var(--ink); resize: vertical; outline: none; width: 100%; background: #fff; }
.pane.out { background: #f6f8fb; white-space: pre-wrap; overflow: auto; }
.pane.out.empty { display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.pane-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pane-bar .btn { padding: 8px 14px; font-size: 14px; }
.pane-bar .grow { flex: 1; }
.warn-strip { max-width: 1010px; margin: 14px auto 0; display: flex; align-items: center; gap: 12px; justify-content: space-between; background: #fdf0f0; border: 1px solid #f3d0d0; border-radius: 6px; padding: 10px 14px; font-size: 13.5px; text-align: left; flex-wrap: wrap; }
.warn-strip b { font-weight: 700; }
.ai-cta { display: flex; align-items: center; gap: 16px; max-width: 320px; margin: 30px auto; padding: 10px 14px; background: #fdecec; border-radius: 8px; text-align: left; }
.ai-cta b { display: block; font-size: 14px; }
.ai-cta small { font-size: 13px; color: var(--ink-2); }
.ai-cta-ico svg { width: 26px; height: 26px; color: var(--ink); }
.ai-cta .btn { padding: 8px 14px; font-size: 14px; margin-left: auto; }
.ai-cta .btn svg { width: 14px; }

/* grammar */
.issue-list { display: grid; gap: 10px; margin-top: 14px; }
.issue { border: 1px solid var(--line); border-left: 4px solid #e0533d; border-radius: 8px; padding: 10px 14px; font-size: 15px; }
.issue del { color: #c0392b; }
.issue ins { color: #1e8e3e; text-decoration: none; font-weight: 600; }
.issue small { display: block; color: var(--muted); margin-top: 4px; }
.issue .tag { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; background: var(--bg-soft); border-radius: 4px; padding: 1px 6px; margin-right: 6px; color: var(--ink-2); }

/* word counter */
.wc-wrap { display: grid; grid-template-columns: 84px 1fr 200px; gap: 12px; max-width: 1060px; margin: 18px auto 0; text-align: left; }
.wc-main { border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.wc-stats { display: grid; grid-template-columns: repeat(8, 1fr); border-bottom: 1px solid var(--line); }
.wc-stats div { padding: 12px 8px; font-size: 12.5px; text-transform: uppercase; color: var(--ink); border-right: 1px solid var(--line); }
.wc-stats div:last-child { border-right: 0; }
.wc-stats b { display: block; color: var(--primary); font-size: 15px; margin-top: 8px; }
.wc-main textarea { border: 0; height: 320px; padding: 14px; }
.wc-social { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.wc-social div { padding: 12px; font-size: 13px; text-transform: uppercase; }
.wc-social b { display: block; color: var(--primary); margin-top: 6px; }
.wc-side { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-size: 12.5px; text-transform: uppercase; align-self: start; }
.wc-side div { padding: 6px 0; border-bottom: 1px solid var(--line); }
.wc-side b { display: block; color: var(--primary); text-transform: none; font-size: 14px; }
.kw { display: flex; justify-content: space-between; text-transform: none; font-size: 13px; padding: 3px 0; }

/* translator */
.tr-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px 0; }
.tr-head .select { border: 0; font-weight: 600; }
.tr-head .swap { margin: 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--bg-soft); cursor: pointer; display: grid; place-items: center; color: var(--primary); }
.tr-head .swap svg { width: 18px; height: 18px; }

/* dictionary */
.dict-search { display: flex; max-width: 640px; margin: 20px auto 0; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; box-shadow: var(--shadow-sm); }
.dict-search select { border: 0; background: #2f6fe0; color: #fff; padding: 0 16px; font: inherit; font-size: 15px; outline: none; }
.dict-search input { flex: 1; border: 0; padding: 12px 14px; font: inherit; outline: none; min-width: 0; }
.dict-search button { border: 0; background: #fff; padding: 0 16px; cursor: pointer; }
.dict-search button svg { width: 22px; height: 22px; }
.dict-result { max-width: 800px; margin: 26px auto 0; text-align: left; }
.dict-word { display: flex; align-items: baseline; gap: 12px; }
.dict-word h2 { font-size: 32px; }
.dict-word span { color: var(--muted); }
.dict-tabs { display: flex; gap: 6px; margin: 16px 0; border-bottom: 1px solid var(--line); }
.dict-tabs button { border: 0; background: none; padding: 8px 14px; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.dict-tabs button.active { color: var(--primary); border-color: var(--primary); }
.pos { margin-top: 14px; font-style: italic; color: var(--primary); font-weight: 600; }
.defs { margin: 6px 0 0; padding-left: 20px; }
.defs li { margin: 6px 0; }
.defs em { display: block; color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--bg-soft); border-radius: 999px; padding: 4px 12px; font-size: 14px; cursor: pointer; border: 0; color: var(--ink); }
.chip:hover { background: var(--primary-50); }

/* email */
.email-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; max-width: 1100px; margin: 18px auto 0; text-align: left; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); padding: 18px 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 14px; font-weight: 600; }
.field { margin-bottom: 16px; }
.field > label, .field > .lbl { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field small { color: var(--muted); font-weight: 400; }
.input, .field textarea, .field input, .field select { width: 100%; border: 1px solid var(--line-2); border-radius: 6px; padding: 9px 12px; font: inherit; font-size: 14.5px; color: var(--ink); background: #fff; outline: none; }
.field textarea { min-height: 90px; resize: vertical; }
.input:focus, .field textarea:focus, .field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20,92,132,.12); }
.seg { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.seg button { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; color: var(--ink); }
.seg button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-5 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr; gap: 8px; }

/* citation */
.cite-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; max-width: 980px; margin: 24px auto 0; text-align: left; align-items: start; }
.radio-row { display: flex; gap: 18px; font-size: 14px; }
.cite-preview { position: sticky; top: 90px; }
.cite-out { font-size: 15px; line-height: 1.7; margin: 10px 0 14px; color: var(--ink); word-break: break-word; }
.cite-out .hang { padding-left: 2em; text-indent: -2em; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 14px; }
.tabs button { border: 0; background: none; padding: 8px 12px; cursor: pointer; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--primary); border-color: var(--primary); }

/* pomodoro */
.pomo-bar { background: #f26b4f; color: #fff; transition: background .4s; }
.pomo-bar.short { background: #3b9c9b; }
.pomo-bar.long { background: #3f7ab3; }
.pomo-inner { max-width: 1000px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 14px; font-weight: 600; }
.pomo-inner .sp { flex: 1; }
.pomo-inner button { border: 0; background: rgba(255,255,255,.2); color: #fff; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.pomo-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1000px; margin: 0 auto; padding: 18px 20px 50px; }
.pomo-card { background: #fff; border-radius: 8px; box-shadow: var(--shadow); padding: 22px; text-align: center; }
.pomo-modes { display: flex; gap: 8px; justify-content: center; }
.pomo-modes button { border: 0; padding: 7px 12px; border-radius: 4px; background: #f26b4f; color: #fff; cursor: pointer; font-size: 14px; opacity: .75; }
.pomo-modes button.active { opacity: 1; font-weight: 700; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.pomo-time { font-size: 72px; font-weight: 500; margin: 14px 0; font-variant-numeric: tabular-nums; }
.pomo-start { background: #f26b4f; color: #fff; border: 0; width: 200px; height: 52px; font-size: 20px; font-weight: 600; border-radius: 4px; cursor: pointer; box-shadow: 0 5px 0 #d4553b; }
.pomo-start.running { transform: translateY(5px); box-shadow: none; }
.pomo-tasks { border-left: 2px dashed var(--line-2); padding-left: 30px; }
.task { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 6px; padding: 12px; box-shadow: var(--shadow-sm); margin-bottom: 8px; }
.task.done span { text-decoration: line-through; color: var(--muted); }
.task span { flex: 1; }
.task button { border: 0; background: none; cursor: pointer; color: var(--muted); }
.add-task { width: 100%; border: 2px dashed var(--line-2); background: var(--bg-soft); padding: 14px; border-radius: 6px; cursor: pointer; font-weight: 600; color: var(--ink-2); }

/* chat */
.chat-box { max-width: 860px; margin: 18px auto 0; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); background: #fff; display: flex; flex-direction: column; height: 560px; text-align: left; }
.chat-log { flex: 1; overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 12px; line-height: 1.6; white-space: pre-wrap; font-size: 15px; }
.msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--bg-soft); border-bottom-left-radius: 4px; }
.msg.bot.typing { color: var(--muted); }
.chat-empty { margin: auto; text-align: center; color: var(--muted); }
.chat-empty .chips { justify-content: center; margin-top: 14px; }
.chat-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat-input textarea { flex: 1; resize: none; height: 46px; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 14px; font: inherit; outline: none; }

/* image detector */
.drop { display: block; cursor: pointer; border: 1px solid var(--line); border-radius: 10px; padding: 26px; text-align: center; color: var(--ink-2); background: #fff; transition: background .15s, border-color .15s; }
.drop.drag { background: var(--primary-50); border-color: var(--primary); }
.drop .big-ico { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--primary); }
.drop .btn { margin-top: 14px; border-radius: 999px; padding: 8px 18px; font-size: 14px; }
.drop img.preview { max-height: 260px; margin: 0 auto 10px; border-radius: 8px; }
.img-verdict { display: flex; gap: 22px; align-items: center; }
.img-verdict .ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(var(--c, #d9392b) calc(var(--p) * 1%), #eceff3 0); display: grid; place-items: center; flex: none; }
.img-verdict .ring b { width: 92px; height: 92px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 24px; }

/* soon / gate */

/* pricing */
.pricing-top { max-width: 1100px; margin: 0 auto; padding: 18px 20px 0; text-align: center; }
.pricing-top h1 { font-size: 40px; font-weight: 700; }
.pricing-top > p { margin: 12px auto 0; max-width: 560px; color: var(--ink-2); }
.free-row { display: flex; justify-content: space-between; align-items: center; gap: 30px; text-align: left; margin: 40px 0 0; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.free-row h2 { font-size: 34px; font-weight: 700; }
.free-row p { margin-top: 12px; font-size: 18px; color: var(--ink-2); max-width: 560px; }
.free-card { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; text-align: center; min-width: 260px; box-shadow: var(--shadow-sm); }
.free-card .price { font-size: 34px; font-weight: 800; }
.free-card .price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.free-card .btn { width: 100%; margin: 12px 0 6px; background: linear-gradient(90deg, #12b5e8, #7b3ff2); color: #fff; }
.free-card p { font-size: 12px; color: var(--muted); }
.seg-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; padding: 3px; margin-top: 30px; }
.seg-toggle button { border: 0; background: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 14px; }
.seg-toggle button.active { background: var(--ink); color: #fff; }
.bill-toggle { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.bill-toggle .switch { width: 44px; height: 24px; }
.bill-toggle .switch span::before { width: 20px; height: 20px; }
.bill-toggle .switch input:checked + span::before { transform: translateX(20px); }
.save-tag { background: #eef0f2; border-radius: 999px; padding: 4px 12px; font-weight: 600; color: var(--ink); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0 40px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow-sm); text-align: center; position: relative; }
.plan.popular { border: 2px solid var(--primary); }
.plan .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 12px; }
.plan h3 { font-size: 22px; font-weight: 500; letter-spacing: 1px; }
.plan .amt { font-size: 40px; font-weight: 800; margin-top: 12px; }
.plan .amt sup { font-size: 16px; }
.plan .amt small { font-size: 14px; font-weight: 500; }
.plan .was { color: #d33; text-decoration: line-through; font-size: 14px; }
.plan .yearly { color: var(--muted); font-size: 13px; margin-top: 4px; min-height: 18px; }
.plan .btn { width: 100%; margin: 16px 0; }
.plan ul { list-style: none; padding: 0; margin: 0; text-align: left; font-size: 14px; }
.plan li { display: flex; gap: 8px; padding: 6px 0; border-top: 1px solid var(--bg-soft); }
.plan li .y { color: var(--green); font-weight: 700; }
.plan li .n { color: #c9ccd2; font-weight: 700; }
.meter { height: 6px; background: #eef0f2; border-radius: 99px; margin: 4px 0 10px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, #12b5e8, #145c84); border-radius: 99px; }
.compare { width: 100%; border-collapse: collapse; margin: 20px 0 50px; font-size: 14px; }
.compare th, .compare td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--bg-soft); }
.enterprise { background: var(--bg-tint); border-radius: 16px; padding: 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; margin-bottom: 50px; flex-wrap: wrap; }

/* faq page */
.faq-page { max-width: 1100px; margin: 0 auto; padding: 20px 20px 50px; }
.faq-hero { text-align: center; }
.faq-hero .tag { display: inline-block; background: var(--bg-soft); border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.faq-hero h1 { font-size: 48px; font-weight: 700; margin-top: 10px; }
.faq-hero p { max-width: 640px; margin: 20px auto 0; font-size: 18px; color: var(--ink-2); }
.faq-layout { display: grid; grid-template-columns: 200px 1fr; gap: 40px; margin-top: 40px; }
.faq-nav { position: sticky; top: 92px; align-self: start; display: grid; gap: 8px; font-size: 13px; }
.faq-nav a { color: var(--ink-2); }
.faq-nav a.active { color: var(--ink); font-weight: 700; }
.faq-group h2 { font-size: 34px; font-weight: 700; margin: 10px 0 18px; scroll-margin-top: 90px; }
.faq-group + .faq-group { margin-top: 30px; }
.faq-card { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; background: #fff; }
.faq-card summary { list-style: none; cursor: pointer; padding: 12px 18px; font-weight: 600; display: flex; gap: 12px; align-items: center; }
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary svg { width: 18px; height: 18px; transition: transform .2s; flex: none; }
.faq-card[open] summary svg { transform: rotate(180deg); }
.faq-card div { padding: 0 18px 16px 48px; color: var(--ink-2); line-height: 1.7; }

/* auth */
.auth { max-width: 440px; margin: 0 auto; padding: 20px 20px 70px; text-align: center; }
.auth .logo-mark { width: 64px; height: 64px; margin: 0 auto; }
.auth .brand-name { font-size: 24px; font-weight: 700; color: var(--primary); margin-top: 6px; }
.auth h1 { font-size: 20px; margin: 18px 0; }
.auth .muted { color: var(--ink-2); font-size: 14px; margin: 10px 0 16px; }
.auth form { text-align: left; display: grid; gap: 12px; }
.auth .input { padding: 10px 12px; }
.pw { position: relative; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--primary); cursor: pointer; font-size: 13px; }
.auth .btn-primary { width: 100%; height: 44px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth .btn-outline { min-width: 200px; }
.small-link { font-size: 13px; }

/* legal + docs */
.doc { max-width: 860px; margin: 0 auto; padding: 30px 20px 60px; }
.doc h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.doc h2 { font-size: 22px; margin: 30px 0 10px; }
.doc p, .doc li { color: var(--ink-2); line-height: 1.75; }
.doc p + p { margin-top: 10px; }
.doc pre { background: #f3f5f8; border: 1px solid var(--line); border-radius: 10px; padding: 16px; overflow: auto; font-size: 13.5px; line-height: 1.55; }
.doc code { font-family: var(--mono); font-size: .92em; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-soft); }

/* dashboard */
.dash { max-width: 980px; margin: 0 auto; padding: 30px 20px 60px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.dash-cards .panel b { display: block; font-size: 26px; margin-top: 6px; }
.hist { width: 100%; border-collapse: collapse; font-size: 14px; }
.hist th, .hist td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #23262d; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 100; box-shadow: var(--shadow); }

/* ---------- print (Export to PDF) ---------- */
@media print {
  .site-header, .site-footer, .tool-wrap, .keep, .features, .api-strip, .tech, .dark-band, .explore, .faq-band, .center, .educators, .pdf-link, .toast, .page-head .tool-wrap { display: none !important; }
  body.printing-result main > *:not(.hero) { display: none !important; }
  body.printing-result .hero > *:not(.result-card) { display: none !important; }
  .result-card { box-shadow: none; border: 0; margin: 0; padding: 0; }
  .highlighted { max-height: none; overflow: visible; }
  .highlighted mark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-head { display: block !important; }
}
.print-head { display: none; margin-bottom: 18px; font-size: 13px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .main-nav { gap: 22px; margin-left: 0; }
  .header-right { gap: 14px; }
  .get-started { display: none; }
}
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 40px; overflow: auto; margin: 0; }
  .main-nav.open { display: flex; }
  .main-nav .nav-link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; justify-content: space-between; width: 100%; }
  .nav-cta { margin-top: 16px; justify-content: center; }
  .nav-cta em { right: 10px; }
  .products { width: 100%; }
  .mega { position: static; width: 100%; box-shadow: none; border-radius: 0; }
  .mega-head { display: none; }
  .mega-grid { grid-template-columns: 1fr; padding: 0; max-height: none; }
  .mega-desc { display: none; }
  .header-inner { height: 64px; gap: 10px; padding: 0 14px; }
  .brand { font-size: 22px; }
  .logo-mark { width: 32px; height: 32px; }
  .lang-switch { display: none; }
  .header-right .get-started { display: none; }
  .header-right .nav-link { font-size: 15px; }
  .tool-wrap { flex-direction: column; align-items: stretch; }
  .tool-rail { flex-direction: row; width: auto; overflow-x: auto; background: none; gap: 2px; padding: 0 0 4px; scrollbar-width: none; }
  .tool-rail::-webkit-scrollbar { display: none; }
  .tool-rail a { flex-direction: column; justify-content: center; gap: 4px; min-width: 76px; padding: 8px 4px; font-size: 11px; color: var(--ink-2); text-align: center; border-bottom: 2px solid transparent; }
  .tool-rail a svg { width: 22px; height: 22px; color: var(--primary); }
  .tool-rail a span { display: block; line-height: 1.2; }
  .tool-rail a.active { background: #eef0f2; border-radius: 6px 6px 0 0; border-bottom: 2px solid var(--green); }
  .tool-grid, .feature-grid, .dark-grid, .plans, .dash-cards { grid-template-columns: 1fr; }
  .tech-inner, .email-wrap, .cite-wrap, .pomo-wrap, .faq-layout, .split { grid-template-columns: 1fr; }
  .split > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .faq-nav { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-features { grid-column: 1 / -1; }
  .wc-wrap { grid-template-columns: 1fr; }
  .wc-stats { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .pomo-tasks { border-left: 0; padding-left: 0; }
  .free-row { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .hero, .page-head { padding: 14px 16px 6px; }
  .hero h1, .page-head h1 { font-size: 22px; }
  .hero-sub, .page-head p { font-size: 16px; margin-top: 10px; }
  .header-right { gap: 12px; }
  .brand { font-size: 20px; }
  .editor-card { padding: 16px 16px 12px; border-radius: 12px; }
  .editor { height: 200px; }
  .editor-bar { gap: 12px; justify-content: space-between; }
  .bar-spacer { display: none; }
  .editor-bar .btn-lg { min-width: 0; flex: 1 1 100%; order: 3; }
  .char-count { margin-left: 0; font-size: 14px; }
  .result-card { padding: 22px 18px; margin-top: 22px; }
  .result-meta { flex-direction: column; }
  .section-title { font-size: 22px; }
  .section-title.small { font-size: 19px; }
  .faq-title { font-size: 28px; }
  .faq-item summary { padding: 20px 6px; font-size: 16px; }
  .api-strip { flex-direction: column; text-align: center; }
  .api-strip .btn { margin: 0; }
  .dark-band h2 { font-size: 26px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stats b { font-size: 17px; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-brand { align-items: flex-start; }
  .row-5 { grid-template-columns: 1fr 1fr; }
  .wc-stats { grid-template-columns: repeat(2, 1fr); }
  .wc-social { grid-template-columns: 1fr; }
  .pricing-top h1, .faq-hero h1 { font-size: 30px; }
  .compare { font-size: 12px; }
  .compare th, .compare td { padding: 8px 4px; }
  .pomo-time { font-size: 56px; }
  .chat-box { height: 70vh; }
  .msg { max-width: 92%; }
}

/* fixes */
.drop .big-ico { display: block; }
.drop .big-ico svg { width: 100%; height: 100%; }
.ai-cta { max-width: 440px; }
.ai-cta > div { white-space: nowrap; }
.ai-cta-ico { display: block; width: 26px; height: 26px; flex: none; }
.tr-head .select { min-width: 0; flex: 1 1 0; }
.tr-head .swap { flex: none; margin: 0 6px; }
.mobile-extra { display: none; }
@media (max-width: 980px) {
  .mobile-extra { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
  .mobile-extra .btn { width: 100%; height: 46px; }
  .mobile-lang { display: flex; align-items: center; gap: 16px; padding: 10px 0; color: var(--ink-2); }
  .mobile-lang svg { width: 20px; height: 20px; color: var(--primary); }
  .mobile-lang a { color: var(--ink); font-size: 16px; }
  .mobile-lang a.active { font-weight: 700; color: var(--primary); }
}

/* ---------- plagiarism / video / background remover ---------- */
.progress-line { margin: 12px 0 0; text-align: center; color: var(--ink-2); font-size: 14px; }
.highlighted mark.plag { background: #ffd9de; border-bottom: 2px solid #e0466b; cursor: help; }
.highlighted mark.plag sup { font-size: 10px; color: #b8284a; margin-left: 2px; font-weight: 700; }
.highlighted mark.plag.focus, .source-list li.focus { background: #ffb8c3; }
.swatch.plag { background: #ffd9de; border-bottom: 2px solid #e0466b; }
.plag-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 26px; margin-top: 22px; }
.plag-grid h4 { margin: 0 0 10px; }
.plag-grid .highlighted { max-height: 460px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 0; }
.source-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.source-list li { padding: 8px 10px; border-radius: 8px; transition: background .15s; }
.source-list a { font-weight: 600; word-break: break-word; }
.source-list small { display: block; color: var(--ink-2); margin-top: 2px; }
.source-list .src-url { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop video.preview { max-height: 280px; max-width: 100%; margin: 0 auto 10px; border-radius: 8px; background: #000; display: block; }
.drop video.preview[hidden] { display: none; }
.frame-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.frame { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; position: relative; background: #fff; }
.frame img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #111; }
.frame figcaption { display: flex; justify-content: space-between; padding: 6px 10px 8px; font-size: 13px; color: var(--ink-2); }
.frame i { position: absolute; left: 0; bottom: 0; height: 3px; }
.bg-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bg-compare figure { margin: 0; }
.bg-compare figcaption { font-weight: 600; margin-bottom: 8px; color: var(--ink-2); }
.bg-stage { border: 1px solid var(--line); border-radius: 10px; min-height: 200px; display: grid; place-items: center; overflow: hidden; background: #f6f7f9; }
.bg-stage img { max-width: 100%; max-height: 420px; display: block; }
.checker { background-color: #fff !important; background-image: linear-gradient(45deg, #e3e6ea 25%, transparent 25%), linear-gradient(-45deg, #e3e6ea 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e3e6ea 75%), linear-gradient(-45deg, transparent 75%, #e3e6ea 75%); background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0; }
.bg-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.bg-tools .lbl { font-weight: 600; color: var(--ink-2); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; padding: 0; position: relative; overflow: hidden; }
.sw.active { outline: 2px solid var(--primary); outline-offset: 2px; }
.sw-pick { background: conic-gradient(#f44, #fd4, #4d4, #4df, #44f, #f4f, #f44); display: inline-block; }
.sw-pick input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
@media (max-width: 760px) {
  .plag-grid, .bg-compare { grid-template-columns: 1fr; }
  .frame-grid { grid-template-columns: repeat(2, 1fr); }
}
.output-card p, .output-card li, .output-card .note-box { font-weight: 400; font-size: 15px; }
.output-card h3 { font-size: 19px; }
.dash-actions { display: flex; gap: 14px; margin-top: 6px; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.muted { color: var(--muted); }
.key-form { display: flex; gap: 10px; margin-bottom: 12px; }
.key-form .input { flex: 1; max-width: 360px; }
.new-key { background: #fffbe6; border: 1px solid #f2d57a; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.new-key p { margin: 0 0 8px; font-size: 14px; }
.new-key code { font-size: 14px; word-break: break-all; }
.bot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bot-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 6px; }
.bot-code { margin-top: 12px; font-size: 15px; }
.bot-code b { font-family: var(--mono); font-size: 18px; letter-spacing: 1px; }
@media (max-width: 640px) { .bot-grid { grid-template-columns: 1fr; } .key-form { flex-direction: column; } }
.batch-card { max-width: 860px; }
.batch-table td { vertical-align: top; }
.batch-table .st-ok { color: #1f9d55; } .batch-table .st-err { color: #d9392b; }
.batch-table .detail td { background: #fafbfc; }
.batch-table .detail .highlighted { margin: 0; max-height: 300px; overflow: auto; font-size: 14px; }
/* ---------- blog ---------- */
.blog-home { max-width: 1100px; margin: 0 auto; padding: 50px 20px 60px; }
.blog-page { max-width: 1100px; margin: 0 auto; padding: 36px 20px 60px; text-align: center; }
.blog-page h1 { font-size: 36px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 26px 0; text-align: left; }
.blog-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s; }
.blog-card:hover { transform: translateY(-2px); }
.blog-card-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.blog-card-body small { color: var(--muted); }
.blog-card-body h3 { font-size: 18px; line-height: 1.35; }
.blog-card-body p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.blog-cover { height: 150px; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 18%, #fff), color-mix(in srgb, var(--c) 40%, #fff)); color: var(--c); }
.blog-cover span { width: 64px; height: 64px; display: block; }
.blog-cover svg { width: 100%; height: 100%; }
.blog-post .blog-cover { border-radius: 14px; margin: 10px 0 24px; height: 200px; }
.blog-post h1 { margin-top: 14px; }
.blog-post ul { padding-left: 22px; }
.blog-post li + li { margin-top: 6px; }
.blog-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 34px; padding: 18px 22px; border-radius: 14px; background: var(--primary-50); border: 1px solid #d8e7f1; }
.blog-cta p { margin: 4px 0 0; }
