/* AI Checkers — site styles. No build step, no external fonts. */
:root {
  --header-h: 64px;
  --ink: #0b1220;
  --text: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #f4f5ff;
  --brand: #4f46e5;
  --brand-600: #4338ca;
  --brand-700: #3730a3;
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --accent: #0891b2;
  --accent-50: #ecfeff;
  --good: #059669;
  --good-50: #ecfdf5;
  --warn: #b45309;
  --warn-50: #fffbeb;
  --bad: #dc2626;
  --bad-50: #fef2f2;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px -12px rgba(15, 23, 42, .14);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 1em; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 10px; color: #fff; text-decoration: none; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; max-width: 1408px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none !important; }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; display: block; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.brand-name span { color: var(--brand); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: #334155; font-size: 14.5px; font-weight: 550; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand-700); background: var(--brand-50); }
.nav .nav-cta { margin-left: 8px; background: var(--brand); color: #fff; padding: 9px 16px; box-shadow: 0 6px 16px -8px rgba(79, 70, 229, .8); }
.nav .nav-cta:hover { background: var(--brand-600); color: #fff; }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.menu-btn svg { width: 22px; height: 22px; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 9px 16px; font: 600 14px/1.2 var(--font); cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .06s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--bg-soft); border-color: #cbd5e1; text-decoration: none; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(79, 70, 229, .9); }
.btn.primary:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.btn.primary:disabled { opacity: .6; cursor: progress; }
.btn.lg { padding: 13px 22px; font-size: 15.5px; border-radius: 12px; }
.btn svg { flex: none; }

/* ---------------- TOOL (100vh hero) ---------------- */
.tool-hero {
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  min-height: 560px;
  display: flex; flex-direction: column;
  padding: 14px 24px 18px;
  background:
    radial-gradient(900px 380px at 8% -10%, rgba(79, 70, 229, .09), transparent 60%),
    radial-gradient(700px 320px at 96% 0%, rgba(8, 145, 178, .09), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.tool-inner { width: 100%; max-width: 1360px; margin: 0 auto; display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 12px; }
.tool-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tool-title h1 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.tool-title p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.tool-tabs { display: inline-flex; padding: 4px; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.tool-tab {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--muted);
  font: 650 14px/1 var(--font); padding: 10px 16px; border-radius: 9px; cursor: pointer;
}
.tool-tab:hover { color: var(--ink); }
.tool-tab[aria-selected="true"], .tool-tab[aria-current="page"] { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -8px rgba(79, 70, 229, .9); }
a.tool-tab { text-decoration: none; }
a.tool-tab:hover { text-decoration: none; }
a.tool-tab[aria-current="page"]:hover { color: #fff; }
.tool-tab svg { width: 17px; height: 17px; }

.tool-body { flex: 1; min-height: 0; display: flex; }
.tool-panel { display: none; min-height: 0; }
.tool-panel.active { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 16px; min-height: 0; }

.pane { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); min-height: 52px; }
.pane-head h2 { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pane-meta { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.pane-body { flex: 1; min-height: 0; overflow: auto; padding: 16px; }
.pane-foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line-soft); background: #fcfdff; flex-wrap: wrap; }
.grow { flex: 1; }

.pane textarea {
  flex: 1; min-height: 0; width: 100%; resize: none; border: 0; outline: none; background: transparent; color: var(--ink);
  padding: 16px; font: 15px/1.7 var(--font);
}
.pane textarea::placeholder { color: var(--muted-2); }

.output { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 15px/1.75 var(--font); color: var(--ink); }
.output.empty { color: var(--muted-2); }

/* tabs inside output pane */
.subtabs { display: inline-flex; gap: 2px; background: var(--bg-soft); padding: 3px; border-radius: 10px; border: 1px solid var(--line-soft); }
.subtab { border: 0; background: transparent; color: var(--muted); font: 600 12.5px/1 var(--font); padding: 7px 11px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.subtab:hover { color: var(--ink); }
.subtab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.subtab .count { font-size: 11px; background: var(--line); color: var(--muted); border-radius: 99px; padding: 1px 6px; min-width: 18px; text-align: center; }
.subtab[aria-selected="true"] .count { background: var(--brand-100); color: var(--brand-700); }

/* status pill */
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--muted); white-space: nowrap; }
.pill.busy { color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-100); }
.pill.done { color: var(--good); background: var(--good-50); border-color: #a7f3d0; }
.pill.err { color: var(--bad); background: var(--bad-50); border-color: #fecaca; }

/* result chips under humanizer output */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line-soft); background: #fcfdff; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; }
.chip b { font-weight: 800; color: var(--ink); }
.chip.good { color: var(--good); background: var(--good-50); border-color: #a7f3d0; }
.chip.good b { color: var(--good); }
.chip.bad { color: var(--bad); background: var(--bad-50); border-color: #fecaca; }
.chip.bad b { color: var(--bad); }
.chip.brand { color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-100); }
.chip.brand b { color: var(--brand-700); }

/* lists (changes/checks) */
.list { display: grid; gap: 8px; }
.item { border: 1px solid var(--line-soft); background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.55; }
.item .ic { font-weight: 800; margin-right: 6px; }
.item.err { border-color: #fecaca; background: var(--bad-50); color: #991b1b; }
.item.warn { border-color: #fde68a; background: var(--warn-50); color: #92400e; }
.item.info { border-color: #a7f3d0; background: var(--good-50); color: #065f46; }
.change { display: grid; gap: 6px; background: #fff; }
.change .b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(220, 38, 38, .45); }
.change .a { color: var(--ink); }

/* ---------------- detector result ---------------- */
.empty-state { height: 100%; display: grid; place-content: center; text-align: center; gap: 10px; padding: 24px; color: var(--muted); }
.empty-state .ico { width: 56px; height: 56px; margin: 0 auto 4px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.empty-state h3 { font-size: 17px; color: var(--ink); }
.empty-state p { margin: 0 auto; max-width: 360px; font-size: 14px; }
.empty-state ul { list-style: none; margin: 8px auto 0; padding: 0; display: grid; gap: 6px; text-align: left; font-size: 13.5px; }
.empty-state li { display: flex; gap: 8px; align-items: flex-start; }
.empty-state li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 99px; background: var(--good-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.4l2.4 2.4 5-5.4' fill='none' stroke='%23059669' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

.verdict { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.gauge { position: relative; width: 132px; height: 132px; flex: none; }
.gauge svg { width: 132px; height: 132px; transform: rotate(-90deg); }
.gauge .g-bg { fill: none; stroke: var(--line-soft); stroke-width: 11; }
.gauge .g-fg { fill: none; stroke: var(--good); stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.2, .8, .2, 1), stroke .3s; }
.gauge .g-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.gauge .g-label strong { font-size: 34px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.gauge .g-label span { margin-top: 5px; font-size: 9px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.verdict-text h3 { font-size: 20px; margin-bottom: 4px; }
.verdict-text p { margin: 0; font-size: 14px; color: var(--muted); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; margin-bottom: 8px; }
.badge.human { background: var(--good-50); color: var(--good); }
.badge.mixed { background: var(--warn-50); color: var(--warn); }
.badge.ai { background: var(--bad-50); color: var(--bad); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.stat { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 10px; }
.stat b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.stat span { font-size: 11.5px; color: var(--muted); }

.sec-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.signals { display: grid; gap: 12px; margin-bottom: 14px; }
.sig-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 5px; }
.sig-top span:first-child { font-weight: 650; color: var(--ink); }
.sig-top span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { height: 7px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--good); transition: width .7s ease; }
.bar.mid i { background: #f59e0b; }
.bar.low i { background: var(--bad); }
.note { font-size: 12.5px; color: var(--muted); background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; }

.hl-wrap { font: 15px/1.85 var(--font); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
mark.ai { background: #fee2e2; color: #991b1b; border-radius: 4px; padding: 1px 3px; }
span.long { background: linear-gradient(transparent 62%, #fde68a 62%); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------------- settings dialog ---------------- */
.sheet { border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--text); padding: 0; width: min(540px, 94vw); max-height: 92vh; box-shadow: 0 40px 100px -24px rgba(15, 23, 42, .5); }
.sheet::backdrop { background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px); }
.sheet-inner { padding: 20px 22px 18px; display: grid; gap: 14px; max-height: 92vh; overflow: auto; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { font-size: 18px; }
.sheet-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.field { display: grid; gap: 6px; }
.field > label { font-size: 13px; color: var(--ink); font-weight: 650; }
.field .opt { color: var(--muted-2); font-weight: 400; }
.sheet input[type="text"], .sheet input[type="password"], .sheet select, .contact-form input, .contact-form textarea, .contact-form select {
  background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; color: var(--ink); font: 14px var(--font); outline: none; width: 100%;
}
.sheet input:focus, .sheet select:focus, .contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .14); }
.row { display: flex; align-items: center; gap: 12px; }
input[type="range"] { flex: 1; accent-color: var(--brand); }
output { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; min-width: 24px; text-align: right; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); cursor: pointer; font-weight: 550; }
.switch input { width: 17px; height: 17px; accent-color: var(--brand); }
.help { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.sheet hr { border: 0; border-top: 1px solid var(--line-soft); margin: 2px 0; width: 100%; }
.llm-fields { display: grid; gap: 12px; opacity: .45; pointer-events: none; transition: opacity .2s; }
.llm-fields.on { opacity: 1; pointer-events: auto; }

/* ---------------- content sections ---------------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.tint { background: var(--bg-tint); }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head.left { max-width: 780px; margin: 0 auto 22px; text-align: left; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 14px; }
.section-head p { font-size: 17.5px; color: var(--muted); margin: 0; }

.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 28px; margin: 44px 0 14px; }
.prose h3 { font-size: 20px; margin: 30px 0 10px; }
.prose p, .prose li { font-size: 17px; color: #334155; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.callout { border-left: 4px solid var(--brand); background: var(--brand-50); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 22px 0; color: #312e81; font-size: 16px; }
.callout.warn { border-color: #f59e0b; background: var(--warn-50); color: #78350f; }
.callout p:last-child { margin: 0; }

.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { margin: 0; font-size: 15.5px; color: var(--muted); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 14px; }
.card .ico svg { width: 22px; height: 22px; }
a.card { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; display: block; }
a.card:hover { border-color: #c7d2fe; box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 650; font-size: 14.5px; color: var(--brand); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; box-shadow: var(--shadow-sm); }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.compare thead th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 650; color: var(--ink); }
.table-wrap { overflow-x: auto; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 650; font-size: 17px; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; 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[open] summary { color: var(--brand-700); }
.faq .answer { padding: 0 20px 18px; color: #475569; font-size: 16px; }
.faq .answer p:last-child { margin: 0; }

.cta-band { background: linear-gradient(135deg, #312e81, #0e7490); color: #fff; border-radius: 22px; padding: 44px 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 28px; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #c7d2fe; font-size: 17px; }
.cta-band .btn.primary { background: #fff; color: var(--brand-700); border-color: #fff; box-shadow: none; }
.cta-band .btn.primary:hover { background: var(--brand-50); }

.page-hero { background: linear-gradient(180deg, var(--bg-tint), #fff); border-bottom: 1px solid var(--line); padding: 52px 0 44px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.page-hero p { font-size: 18.5px; color: var(--muted); max-width: 720px; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 13.5px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--muted-2); }
.breadcrumb a { color: var(--muted); }
.updated { font-size: 14px; color: var(--muted); margin-top: 14px; }

.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 0 0 8px; }
.toc strong { display: block; margin-bottom: 6px; color: var(--ink); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { font-size: 15.5px; margin-bottom: 4px; }

.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; max-width: 980px; margin: 0 auto; }
.contact-form { display: grid; gap: 14px; }
.contact-form label { font-size: 14px; font-weight: 650; color: var(--ink); display: grid; gap: 6px; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }

.not-found { min-height: 60vh; display: grid; place-content: center; text-align: center; padding: 60px 24px; }
.not-found .code { font-size: clamp(72px, 14vw, 140px); font-weight: 900; letter-spacing: -.06em; background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* ---------------- footer ---------------- */
.site-footer { background: #0b1220; color: #cbd5e1; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name span { color: #a5b4fc; }
.footer-about p { margin: 14px 0 0; font-size: 14.5px; color: #94a3b8; max-width: 340px; line-height: 1.7; }
.site-footer h3 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #cbd5e1; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 44px; border-top: 1px solid #1e293b; padding: 20px 0 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #94a3b8; }
.footer-bottom p { margin: 0; }

/* scrollbars */
.pane-body::-webkit-scrollbar, .pane textarea::-webkit-scrollbar { width: 10px; }
.pane-body::-webkit-scrollbar-thumb, .pane textarea::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; border: 2px solid #fff; }

/* ---------------- responsive ---------------- */
@media (max-width: 1100px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 16px; flex-direction: column; align-items: stretch; gap: 2px; display: none; box-shadow: 0 20px 30px -20px rgba(15, 23, 42, .3); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .menu-btn { display: inline-flex; }
  .tool-hero { height: auto; min-height: 0; padding: 14px 14px 20px; }
  .tool-panel.active { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .pane { min-height: 440px; }
  .tool-tabs { width: 100%; }
  .pane-foot .btn.primary { flex: 1; }
  .tool-tab { flex: 1; justify-content: center; }
  .grid.cols-3, .steps, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
@media (max-width: 620px) {
  .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .verdict { flex-direction: column; align-items: flex-start; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 32px 24px; }
  .header-inner, .container { padding-left: 16px; padding-right: 16px; }
  .tool-title h1 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Detector result: score, word count, humanize link */
.result-meta { margin: 16px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.result-actions { margin: 16px 0 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.result-actions .btn.ghost { background: transparent; border-color: transparent; color: var(--brand); box-shadow: none; }

/* ======================= accounts, pricing, paywall ======================= */
.muted { color: var(--muted); }
.tool-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.usage-pill { font: 650 12.5px/1 var(--font); padding: 8px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow-sm); white-space: nowrap; text-decoration: none; }
.usage-pill:hover { text-decoration: none; border-color: var(--brand); color: var(--brand-700); }
.usage-pill.ok { color: var(--good); background: var(--good-50); border-color: #a7f3d0; }
.usage-pill.warn { color: var(--warn); background: var(--warn-50); border-color: #fde68a; }
.usage-pill.bad { color: var(--bad); background: var(--bad-50); border-color: #fecaca; }
.nav .nav-login { color: var(--ink); font-weight: 650; }
.nav .nav-cta.hidden { display: none; }

/* paywall dialog */
.paywall { text-align: center; }
.paywall .sheet-inner { justify-items: center; gap: 12px; padding: 28px 26px 22px; }
.pw-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: var(--brand-50); }
.paywall h2 { font-size: 21px; }
.pw-text { margin: 0; color: var(--text); font-size: 15.5px; }
.pw-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* pricing */
.billing-toggle { display: flex; width: max-content; max-width: 100%; margin: 0 auto 26px; padding: 4px; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.billing-toggle button { border: 0; background: transparent; font: 650 14px/1 var(--font); padding: 11px 18px; border-radius: 9px; color: var(--muted); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.billing-toggle button[aria-pressed="true"] { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -8px rgba(79, 70, 229, .9); }
.billing-toggle .save { font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 99px; background: var(--good-50); color: var(--good); }
.billing-toggle button[aria-pressed="true"] .save { background: rgba(255, 255, 255, .2); color: #fff; }
.pricing-msg { text-align: center; min-height: 22px; margin: 0 0 14px; font-weight: 600; color: var(--muted); }
.pricing-msg.ok { color: var(--good); }
.pricing-msg.warn { color: var(--warn); }
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.plan.popular { border: 2px solid var(--brand); box-shadow: 0 24px 50px -24px rgba(79, 70, 229, .5); }
.plan.current { outline: 3px solid var(--good-50); border-color: var(--good); }
.plan-flag { position: absolute; top: -13px; left: 26px; background: var(--brand); color: #fff; font: 800 11.5px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; }
.plan h3 { font-size: 22px; margin: 0; }
.plan-tag { margin: 4px 0 18px; color: var(--muted); font-size: 14.5px; }
.plan-price b { font-size: 40px; letter-spacing: -.03em; color: var(--ink); }
.plan-price small { font-size: 15px; color: var(--muted); margin-left: 3px; }
.plan-bill { margin: 4px 0 20px; font-size: 13px; color: var(--muted); }
.plan ul { list-style: none; margin: 0 0 24px; padding: 18px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text); }
.plan li svg { flex: none; color: var(--good); margin-top: 3px; }
.plan .btn { width: 100%; }
.pricing[data-period="monthly"] :is(.q, .y), .pricing[data-period="quarterly"] :is(.m, .y), .pricing[data-period="yearly"] :is(.m, .q) { display: none; }
.pricing-note { text-align: center; margin: 22px auto 0; max-width: 640px; font-size: 13.5px; color: var(--muted); }

/* login / signup */
.auth-wrap { display: grid; place-items: center; padding: 20px 0 30px; }
.auth-card { width: min(440px, 100%); padding: 32px 30px; }
.auth-card h1 { font-size: 26px; margin: 0 0 6px; }
.auth-sub { margin: 0 0 22px; color: var(--muted); }
#auth-form { display: grid; gap: 14px; }
#auth-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 650; color: var(--ink); }
#auth-form input { background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; padding: 11px 12px; color: var(--ink); font: 15px var(--font); outline: none; width: 100%; }
#auth-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .14); }
.form-error { margin: 0; min-height: 0; color: var(--bad); font-size: 14px; font-weight: 600; }
.form-error:empty { display: none; }
.auth-alt { margin: 20px 0 0; text-align: center; font-size: 14.5px; color: var(--muted); }

/* account */
.acct { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.acct-wide { grid-column: 1 / -1; }
.acct-card h2 { font-size: 18px; margin: 0 0 14px; }
.acct-profile { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.acct-avatar { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 20px; }
.acct-who { display: grid; flex: 1; min-width: 160px; }
.acct-who span { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.acct-banner { grid-column: 1 / -1; padding: 14px 18px; border-radius: 12px; font-weight: 600; border: 1px solid; }
.acct-banner.ok { background: var(--good-50); color: var(--good); border-color: #a7f3d0; }
.acct-banner.warn { background: var(--warn-50); color: var(--warn); border-color: #fde68a; }
.plan-line { display: flex; align-items: center; gap: 10px; }
.plan-name { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.meter { height: 10px; border-radius: 99px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; margin: 14px 0 8px; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #7c3aed); border-radius: 99px; }
.meter-text { margin: 0 0 16px; font-size: 14.5px; color: var(--muted); }
.acct-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.badge-ok, .badge-bad, .badge-mute { font-size: 12px; font-weight: 750; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.badge-ok { background: var(--good-50); color: var(--good); }
.badge-bad { background: var(--bad-50); color: var(--bad); }
.badge-mute { background: var(--bg-soft); color: var(--muted); }
.pay-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pay-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.pay-table td { padding: 12px 10px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.pay-table .r { text-align: right; }

@media (max-width: 900px) {
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .acct { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .usage-pill { font-size: 12px; }
  .auth-card { padding: 26px 20px; }
}

/* ======================= humanizer: rewriting progress ======================= */
.rw { white-space: normal; display: grid; gap: 26px; padding: 6px 2px; }
.rw-top { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.rw-ring { position: relative; width: 150px; height: 150px; flex: none; display: grid; place-items: center; }
.rw-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.rw-track { fill: none; stroke: #e8ecf8; stroke-width: 9; }
.rw-bar { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .14s linear; }
.rw-glow { position: absolute; inset: 10px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(79,70,229,.0), rgba(79,70,229,.28), rgba(6,182,212,.28), rgba(79,70,229,0)); filter: blur(14px); animation: rw-spin 2.6s linear infinite; }
.rw-pct { position: relative; display: flex; align-items: baseline; color: var(--ink); font-variant-numeric: tabular-nums; }
.rw-pct b { font-size: 44px; line-height: 1; letter-spacing: -.03em; font-weight: 800; }
.rw-pct small { font-size: 18px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.rw-info { min-width: 220px; flex: 1; display: grid; gap: 6px; }
.rw-title { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.rw-stage { font-size: 14.5px; font-weight: 600; color: var(--brand-700, #4338ca); }
.rw-stage::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: rw-dots 1.2s steps(4, end) infinite; }
.rw-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; color: var(--muted-2, #94a3b8); }
.rw-steps li { display: flex; align-items: center; gap: 9px; transition: color .25s; }
.rw-steps i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #cbd5e1; flex: none; transition: all .25s; }
.rw-steps li.now { color: var(--ink); font-weight: 650; }
.rw-steps li.now i { border-color: var(--brand); border-top-color: transparent; animation: rw-spin .8s linear infinite; }
.rw-steps li.done { color: var(--muted); }
.rw-steps li.done i { border-color: #059669; background: #059669 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6 5.4-5.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat; }
.rw-lines { display: grid; gap: 11px; }
.rw-lines span { display: block; height: 11px; width: var(--w, 90%); border-radius: 99px; background: linear-gradient(90deg, #eef1fb 0%, #dfe4f7 40%, #c7d2fe 50%, #dfe4f7 60%, #eef1fb 100%); background-size: 240% 100%; animation: rw-shimmer 1.7s ease-in-out infinite; }
.rw-lines span:nth-child(2) { animation-delay: .15s; } .rw-lines span:nth-child(3) { animation-delay: .3s; }
.rw-lines span:nth-child(4) { animation-delay: .45s; } .rw-lines span:nth-child(5) { animation-delay: .6s; } .rw-lines span:nth-child(6) { animation-delay: .75s; }
@keyframes rw-spin { to { transform: rotate(360deg); } }
@keyframes rw-shimmer { 0% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
@keyframes rw-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }
.rw.still .rw-glow, .rw.still .rw-lines span, .rw.still .rw-stage::after, .rw.still .rw-steps li.now i { animation: none; }
@media (prefers-reduced-motion: reduce) { .rw-glow, .rw-lines span, .rw-stage::after, .rw-steps li.now i { animation: none; } }
@media (max-width: 620px) { .rw-top { justify-content: center; gap: 18px; } .rw-ring { width: 130px; height: 130px; } .rw-pct b { font-size: 38px; } }

/* humanizer tone selector */
.tone-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 9px 14px; border-bottom: 1px solid var(--line-soft); background: #fcfdff; }
.tone-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.tone-opt { appearance: none; border: 1px solid var(--line); background: #fff; color: var(--ink-2, #334155); font: inherit; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 99px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.tone-opt:hover { border-color: #c7d2fe; background: #f5f7ff; }
.tone-opt[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tone-opt:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* tone dropdown in the humanizer footer */
.tone-select { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tone-select select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 10px center/11px no-repeat; border: 1px solid var(--line); border-radius: 10px; padding: 7px 32px 7px 12px; cursor: pointer; }
.tone-select select:hover { border-color: #c7d2fe; }
.tone-select select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* account: devices */
.dev-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.dev-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: #fcfdff; }
.dev-main { display: grid; gap: 2px; font-size: 14px; }
.dev-main .muted { font-size: 12.5px; }

/* AI Checker: why this score */
.why { margin-top: 18px; }
.why h4 { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; color: var(--ink-2, #334155); }
.why-list li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.45; }
.why-list .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; background: #94a3b8; }
.why-list li.ai .dot { background: #dc2626; }
.why-list li.human .dot { background: #059669; }
.why-list b { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.tag em { font-style: normal; opacity: .7; }

/* humanized result, rendered as a real article (h1, h2, p, table, lists) */
.output.fmt { white-space: normal; font: 15px/1.7 var(--font); color: var(--ink); }
.output.fmt > :first-child { margin-top: 0; }
.output.fmt h1 { font-size: 26px; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 14px; }
.output.fmt h2 { font-size: 21px; line-height: 1.3; margin: 26px 0 10px; }
.output.fmt h3 { font-size: 17px; line-height: 1.35; margin: 20px 0 8px; }
.output.fmt h4 { font-size: 15.5px; margin: 16px 0 6px; }
.output.fmt p { margin: 0 0 14px; }
.output.fmt ul, .output.fmt ol { margin: 0 0 14px; padding-left: 22px; }
.output.fmt li { margin: 3px 0; }
.output.fmt table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 14px; display: block; overflow-x: auto; }
.output.fmt th, .output.fmt td { border: 1px solid var(--line); padding: 8px 11px; text-align: left; vertical-align: top; }
.output.fmt th { background: #f5f7ff; font-weight: 700; }
.output.fmt blockquote { margin: 0 0 14px; padding: 4px 0 4px 14px; border-left: 3px solid #c7d2fe; color: var(--muted); }
.output.fmt pre { background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; font-size: 13px; }
.output.fmt img { max-width: 100%; height: auto; }
.output.fmt hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.output.fmt .stale-note { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 8px; padding: 9px 12px; font-size: 13.5px; margin: 0 0 16px; }

.plan-fair { margin: -4px 0 14px; font-size: 12px; color: var(--muted); }
.compare small { color: var(--muted); font-size: 11.5px; }
