/* ==========================================================================
   AI Text Watermark Remover — stylesheet
   Design tokens → base → layout → components → responsive
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #070b17;
  --bg-2: #0b1020;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --border: rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .18);
  --text: #e8ecf7;
  --text-dim: #9aa6c4;
  --text-faint: #6b779a;

  --brand: #6d5efc;
  --brand-2: #22d3ee;
  --accent: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;

  --grad: linear-gradient(120deg, #6d5efc 0%, #a855f7 45%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(109, 94, 252, .18), rgba(34, 211, 238, .14));

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .75);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, .6);
  --ring: 0 0 0 3px rgba(109, 94, 252, .45);

  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="light"] {
  --bg: #f6f7fc;
  --bg-2: #ffffff;
  --surface: rgba(15, 23, 42, .03);
  --surface-2: rgba(15, 23, 42, .06);
  --border: rgba(15, 23, 42, .10);
  --border-strong: rgba(15, 23, 42, .18);
  --text: #101733;
  --text-dim: #4c5a7e;
  --text-faint: #75809e;
  --shadow: 0 18px 50px -22px rgba(23, 32, 64, .30);
  --shadow-sm: 0 8px 22px -14px rgba(23, 32, 64, .35);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

.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: 50%; top: -60px; transform: translateX(-50%);
  background: var(--brand); color: #fff; padding: .6rem 1.1rem; border-radius: 0 0 10px 10px;
  z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, opacity .2s;
  white-space: nowrap; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-lg { padding: .9rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1rem; font-size: .86rem; }

.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -12px rgba(109, 94, 252, .9); }
.btn-primary:hover { box-shadow: 0 16px 38px -12px rgba(109, 94, 252, 1); }
.btn-accent { background: linear-gradient(120deg, #10b981, #34d399); color: #04231a; box-shadow: 0 10px 30px -12px rgba(52, 211, 153, .8); }
.btn-soft { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-soft:hover { background: var(--surface); border-color: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--surface); border-color: var(--border-strong); }
.i-moon { display: none; }
[data-theme="light"] .i-sun { display: none; }
[data-theme="light"] .i-moon { display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.02rem; flex-shrink: 0; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: var(--grad); color: #fff; box-shadow: 0 8px 22px -10px rgba(109, 94, 252, .95);
}
.brand-text { font-weight: 500; color: var(--text-dim); letter-spacing: -.01em; }
.brand-text strong { color: var(--text); font-weight: 700; }

.nav ul { display: flex; align-items: center; gap: .35rem; }
.nav a { padding: .5rem .85rem; border-radius: 10px; font-size: .93rem; color: var(--text-dim); transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav .btn { color: #fff; margin-left: .4rem; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.hamburger { display: none; flex-direction: column; gap: 4px; }
.hamburger span { display: block; width: 17px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% -10% auto; height: 620px; pointer-events: none;
  background:
    radial-gradient(46% 46% at 22% 32%, rgba(109, 94, 252, .38), transparent 70%),
    radial-gradient(40% 40% at 78% 22%, rgba(34, 211, 238, .26), transparent 70%),
    radial-gradient(34% 34% at 52% 62%, rgba(168, 85, 247, .22), transparent 70%);
  filter: blur(14px);
}
[data-theme="light"] .hero-glow { opacity: .55; }
.hero-inner { position: relative; text-align: center; max-width: 880px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border);
  padding: .38rem .9rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }

.hero h1 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .5em; }
.lede { font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--text-dim); max-width: 680px; margin: 0 auto 2rem; }
.lede strong { color: var(--text); }

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-bottom: 2.2rem; }

.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: center; font-size: .9rem; color: var(--text-dim); }
.hero-badges li { display: inline-flex; align-items: center; gap: .45rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 2.8rem; }
.section-head p:not(.eyebrow) { color: var(--text-dim); margin-bottom: 0; }
.section-head .eyebrow { margin-bottom: 1rem; }

/* ---------- App ---------- */
.app-section { padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 7vw, 5rem); }

.app-shell {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: clamp(1rem, 3vw, 1.9rem);
}

.app-toolbar { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.toolbar-left { display: flex; flex-wrap: wrap; gap: .5rem; }
.counter { font-size: .85rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }

.editor-wrap { position: relative; }
.editor {
  width: 100%; min-height: 260px; resize: vertical; display: block;
  padding: 1.1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: 1rem; line-height: 1.75;
  transition: border-color .2s, box-shadow .2s;
}
.editor::placeholder { color: var(--text-faint); }
.editor:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(109, 94, 252, .16); }

.drop-overlay {
  position: absolute; inset: 0; display: none; place-items: center; text-align: center;
  border-radius: var(--radius); border: 2px dashed var(--brand);
  background: color-mix(in srgb, var(--bg-2) 88%, var(--brand)); color: var(--text);
}
.drop-overlay small { color: var(--text-dim); }
.editor-wrap.dragging .drop-overlay { display: grid; }

.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.1rem; }

.switch { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; font-size: .9rem; color: var(--text-dim); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  width: 42px; height: 24px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--border); position: relative; transition: background .2s, border-color .2s; flex-shrink: 0;
}
.switch-thumb {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--text-faint); transition: transform .2s, background .2s;
}
.switch input:checked + .switch-track { background: color-mix(in srgb, var(--brand) 45%, transparent); border-color: var(--brand); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + .switch-track { box-shadow: var(--ring); }

.status { margin: 1rem 0 0; font-size: .92rem; color: var(--text-dim); min-height: 1.5em; }
.status.error { color: var(--danger); }
.status.ok { color: var(--accent); }
.status .spinner {
  display: inline-block; width: 13px; height: 13px; margin-right: .5rem; vertical-align: -1px;
  border: 2px solid var(--border-strong); border-top-color: var(--brand); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Results ---------- */
.results { margin-top: 1.6rem; display: grid; gap: 1.3rem; }

.score-grid { display: grid; grid-template-columns: minmax(260px, .85fr) 1.15fr; gap: 1.1rem; }

.score-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.3rem; box-shadow: var(--shadow-sm);
}
.score-card h3 { margin: 0 0 1rem; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; color: var(--text-dim); }
.score-card-main { text-align: center; background-image: var(--grad-soft); }
.score-card-main header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.score-card-main header h3 { margin: 0; text-align: left; }

.chip {
  font-size: .74rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: .28rem .65rem; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text-dim); white-space: nowrap;
}
.chip.high { color: #fff; background: linear-gradient(120deg, #f43f5e, #fb7185); border-color: transparent; }
.chip.mid { color: #201603; background: linear-gradient(120deg, #fbbf24, #fcd34d); border-color: transparent; }
.chip.low { color: #04231a; background: linear-gradient(120deg, #10b981, #34d399); border-color: transparent; }

.gauge { position: relative; display: grid; place-items: center; margin: .6rem auto .8rem; width: 132px; height: 132px; }
.gauge svg { transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.gauge-bg { stroke: var(--surface-2); }
.gauge-fg {
  stroke: var(--brand);
  stroke-dasharray: 327; stroke-dashoffset: 327;
  transition: stroke-dashoffset 1s cubic-bezier(.22, .8, .3, 1), stroke .4s;
}
.gauge-value { position: absolute; font-size: 2.1rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.gauge-value small { font-size: 1rem; color: var(--text-dim); margin-left: 1px; }
.score-note { font-size: .84rem; color: var(--text-dim); margin: 0; }

.stat-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem 1.2rem; }
.stat-list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); }
.stat-list dd { margin: .15rem 0 0; font-size: 1.22rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; }
.panel-head { margin-bottom: 1rem; }
.panel-head h3 { margin: 0 0 .3rem; }
.panel-head p { margin: 0; font-size: .88rem; color: var(--text-dim); }

/* Segment cards */
.segment-list { display: grid; gap: .8rem; counter-reset: seg; }
.segment-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .95rem 1.05rem;
  background: var(--bg-2); position: relative; overflow: hidden;
}
.segment-item::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--grad); }
.segment-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-bottom: .5rem; }
.segment-index {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  background: var(--surface-2); font-size: .78rem; font-weight: 700; color: var(--text-dim); flex-shrink: 0;
}
.segment-title { font-weight: 600; font-size: .92rem; }
.segment-metrics { display: flex; flex-wrap: wrap; gap: .35rem; margin-left: auto; }
.metric {
  font-size: .74rem; font-family: var(--mono); padding: .2rem .55rem; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); white-space: nowrap;
}
.metric strong { color: var(--text); font-weight: 700; }
.segment-text { font-size: .92rem; color: var(--text-dim); margin: 0 0 .7rem; }
.impact-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.impact-fill { display: block; height: 100%; border-radius: 999px; background: var(--grad); width: 0; transition: width .9s cubic-bezier(.22, .8, .3, 1); }

/* Preview */
.preview, .output {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem;
  background: var(--bg-2); line-height: 1.85; white-space: pre-wrap; word-wrap: break-word;
  max-height: 460px; overflow-y: auto; font-size: .98rem;
}
mark.wm {
  background: linear-gradient(120deg, rgba(244, 63, 94, .26), rgba(251, 191, 36, .26));
  color: inherit; border-bottom: 2px solid rgba(244, 63, 94, .7); border-radius: 4px;
  padding: .1em .12em; position: relative;
}
mark.wm[data-rank]::after {
  content: attr(data-rank); position: relative; top: -.6em; margin-left: .18em;
  font-size: .62em; font-weight: 700; color: var(--danger); font-family: var(--mono);
}
.output ins { background: rgba(52, 211, 153, .2); border-bottom: 2px solid rgba(52, 211, 153, .75); border-radius: 4px; padding: .06em .18em; text-decoration: none; font-weight: 600; }

/* Delta bar */
.delta-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-bottom: 1rem;
  padding: .9rem 1.1rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border);
}
.delta-item { display: flex; flex-direction: column; }
.delta-item-wide { margin-left: auto; text-align: right; }
.delta-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); }
.delta-value { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.delta-bad { color: var(--danger); }
.delta-good { color: var(--accent); }
.delta-arrow { font-size: 1.3rem; color: var(--text-faint); }

.output-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

.changes { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: .8rem; }
.changes summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.change-list { display: grid; gap: .4rem; margin-top: .8rem; font-size: .9rem; }
.change-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .45rem .7rem; background: var(--surface-2); border-radius: 8px; }
.change-list .from { color: var(--danger); text-decoration: line-through; }
.change-list .to { color: var(--accent); font-weight: 600; }
.change-list .src { margin-left: auto; font-size: .74rem; color: var(--text-faint); font-family: var(--mono); }

.disclaimer {
  margin: 1.5rem 0 0; padding: .95rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px dashed var(--border-strong);
  font-size: .84rem; color: var(--text-dim);
}
.disclaimer strong { color: var(--text); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.1rem; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; position: relative; transition: transform .2s, border-color .2s;
}
.step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); color: #fff; font-weight: 700; margin-bottom: 1rem;
  box-shadow: 0 10px 24px -12px rgba(109, 94, 252, .95);
}
.step p { margin: 0; color: var(--text-dim); font-size: .93rem; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.feature {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.35rem; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); font-size: 1.2rem; margin-bottom: .9rem;
}
.feature p { margin: 0; color: var(--text-dim); font-size: .92rem; }

/* ---------- Strip ---------- */
.strip { padding: 2.4rem 0; background: var(--bg-2); border-block: 1px solid var(--border); }
.strip-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.4rem; text-align: center; }
.strip-inner strong {
  display: block; font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 700; letter-spacing: -.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.strip-inner span { font-size: .87rem; color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .7rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .95rem 1.15rem; transition: border-color .2s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.35rem; color: var(--text-faint); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: .8rem 0 0; color: var(--text-dim); font-size: .93rem; }

/* ---------- CTA ---------- */
.cta { padding: clamp(3rem, 7vw, 5rem) 0; }
.cta-inner {
  text-align: center; background: var(--grad-soft); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.4rem) 1.5rem;
}
.cta-inner p { color: var(--text-dim); margin-bottom: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 3rem 0 1.6rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }
.footer-brand p { color: var(--text-dim); font-size: .9rem; max-width: 42ch; margin: .6rem 0 0; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1.5rem; }
.footer-nav h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: .7rem; }
.footer-nav ul { display: grid; gap: .45rem; }
.footer-nav a { font-size: .91rem; color: var(--text-dim); transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--border);
  font-size: .84rem; color: var(--text-faint);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--text-dim); }
.legal ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .4rem; margin-bottom: 1rem; }
.legal .updated { font-size: .87rem; color: var(--text-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .score-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .hamburger { display: inline-flex; }
  .nav {
    position: fixed; inset: 68px 0 auto; padding: 1rem 20px 1.4rem;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    transform: translateY(-140%); transition: transform .3s cubic-bezier(.22, .8, .3, 1);
    box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav a { padding: .8rem .9rem; font-size: 1rem; }
  .nav .btn { margin: .5rem 0 0; justify-content: center; }
  .brand-text { font-size: .95rem; }
}

@media (max-width: 560px) {
  .app-actions .btn, .toolbar-left .btn { flex: 1 1 auto; }
  .hero-badges { flex-direction: column; align-items: center; gap: .4rem; }
  .delta-item-wide { margin-left: 0; text-align: left; }
  .segment-metrics { margin-left: 0; width: 100%; }
  .brand-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .hero, .app-actions, .app-toolbar, .cta, .strip { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Detection engine bar ---------- */
.engine-bar {
  display: grid; gap: .6rem; margin-bottom: 1.1rem; padding: 1rem 1.15rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.engine-main { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.engine-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); font-weight: 600; }
.engine-note { margin: 0; font-size: .86rem; color: var(--text-dim); }

.select, .input {
  font-family: inherit; font-size: .92rem; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  padding: .55rem .8rem; transition: border-color .2s, box-shadow .2s;
}
.select:focus, .input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(109, 94, 252, .16); }
.select option:disabled { color: var(--text-faint); }
.select { min-width: 260px; }

.key-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.key-row .input { flex: 1 1 260px; }

/* ---------- Human verification ---------- */
.verify-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.1rem; padding: 1rem 1.15rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface-2);
}
.verify-box strong { display: block; font-size: .95rem; }
.verify-box p { margin: .2rem 0 0; font-size: .85rem; color: var(--text-dim); max-width: 46ch; }
.turnstile-widget { min-height: 65px; }

/* ---------- Primary action, repeated at the scroll target ----------
   Analysis scrolls the results into view, which would leave the only
   "Break the watermark" button off-screen above. This is the same action
   placed where the eye lands. */
.run-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem; border-radius: var(--radius);
  background: var(--grad-soft); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
}
.run-cta-text strong { display: block; font-size: 1.05rem; }
.run-cta-text p { margin: .15rem 0 0; font-size: .88rem; color: var(--text-dim); max-width: 52ch; }

/* Sheen sweep plus a soft pulse, so the button reads as the thing to press. */
.btn-shine { position: relative; overflow: hidden; isolation: isolate; animation: cta-pulse 2.6s ease-in-out infinite; }
.btn-shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: cta-sheen 2.6s ease-in-out infinite;
}
.btn-shine:disabled { animation: none; }
.btn-shine:disabled::after { animation: none; opacity: 0; }

@keyframes cta-sheen {
  0%   { transform: translateX(-120%); }
  55%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 10px 30px -12px rgba(52, 211, 153, .8); }
  50%      { box-shadow: 0 12px 36px -10px rgba(52, 211, 153, 1), 0 0 0 4px rgba(52, 211, 153, .18); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-shine, .btn-shine::after { animation: none !important; }
}
@media (max-width: 560px) {
  .run-cta { flex-direction: column; align-items: stretch; }
  .run-cta .btn { justify-content: center; }
}

/* ---------- Articles ---------- */
.article { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }
.breadcrumb { font-size: .85rem; color: var(--text-faint); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--text); }

.article h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); margin-bottom: .6rem; text-wrap: balance; }
.article-meta { font-size: .85rem; color: var(--text-faint); display: flex; flex-wrap: wrap; gap: .5rem; }

.prose { margin-top: 2.2rem; font-size: 1.03rem; }
.prose > p { margin-bottom: 1.15rem; color: var(--text-dim); max-width: 68ch; }
.prose > p strong, .prose li strong { color: var(--text); }
.prose .lede-p { font-size: 1.15rem; color: var(--text); line-height: 1.65; margin-bottom: 1.6rem; }
.prose h2 {
  font-size: 1.45rem; margin: 2.6rem 0 .8rem; padding-top: 1.4rem;
  border-top: 1px solid var(--border); text-wrap: balance;
}
.prose h3 { font-size: 1.1rem; margin: 2rem 0 .6rem; }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-inline-start: 1.4rem; max-width: 68ch; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5rem; color: var(--text-dim); }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="light"] .prose a { color: #4f46e5; }
.prose pre {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; overflow-x: auto; font-size: .9rem; margin: 1.2rem 0;
  font-family: var(--mono);
}
.prose code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
.prose pre code { background: none; padding: 0; }
.prose .scroll { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { padding: .65rem .85rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.prose tr:last-child td { border-bottom: none; }
.prose .yes { color: var(--accent); font-weight: 600; }
.prose .no { color: var(--danger); font-weight: 600; }
.prose .sources { font-size: .9rem; }

.article-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.1rem;
  margin: 3rem 0 0; padding: 1.4rem 1.5rem; border-radius: var(--radius);
  background: var(--grad-soft); border: 1px solid var(--border);
}
.article-cta strong { display: block; font-size: 1.1rem; }
.article-cta p { margin: .2rem 0 0; font-size: .9rem; color: var(--text-dim); }

.related { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.related h2 { font-size: 1.25rem; margin-bottom: 1.1rem; }
.related-list { display: grid; gap: .7rem; }
.related-list a {
  display: block; padding: 1rem 1.15rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color .2s, transform .2s;
}
.related-list a:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.related-list strong { display: block; margin-bottom: .25rem; }
.related-list span { font-size: .88rem; color: var(--text-dim); }

.article-list { display: grid; gap: .9rem; margin-top: 2.4rem; }
.article-list a {
  display: block; padding: 1.3rem 1.4rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.article-list a:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.article-list h2 { font-size: 1.2rem; margin: 0 0 .35rem; }
.article-list p { margin: 0 0 .5rem; font-size: .93rem; color: var(--text-dim); }
