/* =========================================================
   TextSight tools — shared design system (tools-ui.css)
   Ported from the new tool design. Light theme. Depends on
   Plus Jakarta Sans + Instrument Serif (loaded via <link>).
   Used by every reskinned /tools/* page + TSTiers/TSPricing.
   ========================================================= */

/* =========================================================
   TextSight — Landing page (refined v2)
   Self-contained: depends only on Plus Jakarta Sans + Instrument Serif
   ========================================================= */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --surface-3: #fafbff;
  --border: #e6e9f1;
  --border-strong: #d6dbe6;
  --ink: #0f1729;
  --ink-2: #344056;
  --muted: #6b7591;
  --muted-2: #9aa3b8;
  --brand: #3788d8;
  --brand-2: #2c6cb0;
  --brand-soft: #e3effb;
  --brand-softer: #eef5fc;
  --green: #119d5b;
  --green-soft: #e6f6ee;
  --red: #e11d48;
  --red-soft: #fde8ec;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --violet: #7c3aed;
  --violet-soft: #f3e8ff;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.02);
  --shadow-md: 0 2px 6px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.04);
  --shadow-lg: 0 30px 80px -30px rgba(15,23,42,.22), 0 8px 24px -8px rgba(15,23,42,.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11","ss01";
  min-height: 100vh;
}
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  height: 38px; padding: 0 14px;
  border-radius: 10px;
  font-weight: 600; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border);
  background: #fff; color: var(--ink-2);
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s ease, transform .12s ease, box-shadow .2s ease, border-color .15s ease;
}
.btn:hover { background: var(--surface-2); }
.btn.primary {
  background: linear-gradient(180deg, #4a99e6, #2c6cb0);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 10px rgba(55,136,216,.22), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(55,136,216,.34); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink-2); }

/* =========================================================
   NAV
   ========================================================= */
.lp-nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.lp-nav .nav-left { display: flex; align-items: center; gap: 36px; }
.lp-logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 17px; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.lp-logo .mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  flex: 0 0 34px;
}
.lp-logo .mark img,
.lp-logo .mark svg { width: 100%; height: 100%; display: block; }
.lp-logo .lp-name {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-size: 18.5px; font-weight: 800; letter-spacing: -.02em;
}
.lp-logo .lp-name .ln-text { color: var(--ink); font-weight: 400; }
.lp-logo .lp-name .ln-sight { color: var(--brand); font-weight: 700; }
.lp-logo .lp-name .ln-ai {
  align-self: center;
  margin-left: 4px;
  padding: 2px 6px;
  font-size: 9.5px; font-weight: 800;
  letter-spacing: .06em;
  background: rgba(55,136,216,.10);
  color: var(--brand);
  border-radius: 4px;
  border: 1px solid rgba(55,136,216,.2);
}
.footer .lp-logo .lp-name .ln-text { color: #fff; }
.footer .lp-logo .lp-name .ln-sight { color: #9ec5ee; }
.footer .lp-logo .lp-name .ln-ai { background: rgba(255,255,255,.06); color: #c4d6ec; border-color: rgba(255,255,255,.1); }
.lp-menu { display: flex; align-items: center; gap: 4px; }
.lp-menu a {
  padding: 8px 12px; border-radius: 8px;
  color: var(--ink-2); font-size: 13.5px; font-weight: 600;
  text-decoration: none; transition: background .12s ease, color .12s ease;
}
.lp-menu a:hover { background: var(--surface-2); color: var(--ink); }
.lp-cta { display: flex; align-items: center; gap: 6px; }
.lp-cta .btn { height: 36px; }

/* Hamburger button (hidden by default) */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  align-items: center; justify-content: center;
  transition: all .15s ease;
}
.nav-toggle:hover { background: var(--surface-2); border-color: var(--border-strong); }
.nav-toggle .ico-close { display: none; }
.lp-nav.open .nav-toggle .ico-menu { display: none; }
.lp-nav.open .nav-toggle .ico-close { display: block; }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  padding: 24px 20px 32px;
  display: flex; flex-direction: column;
  gap: 4px;
  z-index: 55;
  overflow-y: auto;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .25s ease;
}
.lp-nav.open .nav-drawer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-drawer a {
  padding: 14px 16px;
  border-radius: 11px;
  color: var(--ink);
  font-size: 16px; font-weight: 600;
  text-decoration: none;
  letter-spacing: -.01em;
  transition: background .12s ease;
}
.nav-drawer a:hover, .nav-drawer a:active { background: var(--surface-2); }
.nav-drawer .drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}
.nav-drawer .drawer-signin {
  color: var(--ink-2);
  font-weight: 700;
}
.nav-drawer .drawer-cta {
  background: linear-gradient(180deg, #4a99e6, #2c6cb0);
  color: #fff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-weight: 700;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(55,136,216,.30);
}
.nav-drawer .drawer-cta:hover { background: linear-gradient(180deg, #5aa3e8, #3076c4); }

/* =========================================================
   HERO
   ========================================================= */
.hero-lp {
  position: relative;
  padding: 72px 32px 60px;
  background:
    radial-gradient(900px 500px at 50% -120px, rgba(90,163,232,.18), transparent 70%),
    radial-gradient(700px 400px at 90% 10%, rgba(124,58,237,.10), transparent 70%),
    linear-gradient(180deg, #f7f9fd 0%, #fff 80%);
  overflow: hidden;
}
.hero-lp::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(closest-side at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(closest-side at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-wrap { max-width: 1180px; margin: 0 auto; position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  color: var(--ink-2);
  box-shadow: 0 1px 0 rgba(15,23,42,.02), 0 6px 18px rgba(15,23,42,.04);
}
.eyebrow .tag {
  background: linear-gradient(135deg, var(--brand), #2c6cb0);
  color: #fff; padding: 3px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
}
.eyebrow .sep { width: 1px; height: 12px; background: var(--border); }

.hero-h1 {
  margin: 18px 0 0;
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--ink);
  max-width: 14ch;
  text-wrap: balance;
}
.hero-h1 .italic {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, #3788d8 0%, #7c3aed 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 4px;
  letter-spacing: -.01em;
}
.hero-sub {
  margin: 22px 0 0;
  font-size: 18px; line-height: 1.55;
  color: var(--muted);
  max-width: 58ch;
}
.hero-sub b { color: var(--ink-2); font-weight: 600; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 22px;
  margin-top: 22px;
  align-items: center;
  font-size: 13.5px; color: var(--muted);
}
.hero-meta .stars { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .stars .s { color: #fbbf24; letter-spacing: -1px; }
.hero-meta b { color: var(--ink); font-weight: 700; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

/* =========================================================
   HERO TOOL (Detect + Humanize tabs)
   ========================================================= */
.lp-tool {
  margin-top: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.lp-tool::before {
  content: ""; position: absolute; inset: 0; padding: 1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(90,163,232,.5), rgba(124,58,237,.35) 50%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Tool mode switcher (Detect / Humanize) */
.tool-modes {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  padding: 0 20px;
  position: relative;
}
.tool-mode {
  position: relative;
  background: transparent;
  border: 0;
  padding: 18px 22px 16px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14.5px; font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s ease;
}
.tool-mode .micon {
  width: 26px; height: 26px; border-radius: 7px;
  background: #fff; border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--muted);
  transition: all .15s ease;
}
.tool-mode:hover { color: var(--ink-2); }
.tool-mode:hover .micon { color: var(--ink-2); }
.tool-mode.active { color: var(--ink); }
.tool-mode.active .micon {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 6px rgba(55,136,216,.30);
}
.tool-mode.active::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--violet));
  border-radius: 2px;
}
.tool-mode .badge-new {
  font-size: 9.5px; font-weight: 800;
  padding: 2px 6px; border-radius: 4px;
  background: var(--violet-soft); color: var(--violet);
  letter-spacing: .06em;
}

/* ============= DETECT PANEL ============= */
.det-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  min-height: 480px;
}
.det-input {
  position: relative;
  padding: 22px 26px 0;
  display: flex; flex-direction: column;
}
.det-tabs {
  display: flex; gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 10px;
  align-self: flex-start;
  margin-bottom: 14px;
}
.det-tab {
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 12.5px; font-weight: 700;
  color: var(--muted); background: transparent; border: 0;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s ease, color .15s ease;
}
.det-tab:hover { color: var(--ink-2); }
.det-tab.active {
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 1px 0 rgba(15,23,42,.04);
}
.det-tab .free {
  font-size: 9.5px; padding: 2px 6px;
  border-radius: 4px;
  background: var(--green-soft); color: var(--green);
  letter-spacing: .04em;
}

.det-editor {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink);
  outline: 0;
  resize: none;
  width: 100%;
  font-family: inherit;
  min-height: 240px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.det-editor:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(55,136,216,.10);
}

.det-editor-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0 20px;
  gap: 12px; flex-wrap: wrap;
}
.det-counter {
  display: flex; gap: 14px; align-items: center;
  font-size: 12.5px; color: var(--muted);
}
.det-counter b { color: var(--ink); font-weight: 700; }
.det-counter .limit { color: var(--muted-2); }
.det-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.det-quick button {
  height: 32px; padding: 0 11px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.det-quick button:hover { background: var(--surface-2); color: var(--ink); border-color: var(--border-strong); }

.det-cta {
  background: linear-gradient(180deg, #4a99e6, #2c6cb0);
  color: #fff; border: 0;
  height: 46px; padding: 0 22px;
  border-radius: 12px;
  font-weight: 700; font-size: 14.5px;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(55,136,216,.32), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .15s ease, box-shadow .2s ease;
  margin-bottom: 24px;
  width: 100%;
  justify-content: center;
}
.det-cta:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(55,136,216,.42); }
.det-cta:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.det-cta.humanize { background: linear-gradient(180deg, #8b5cf6, #6d28d9); box-shadow: 0 6px 20px rgba(124,58,237,.32), inset 0 1px 0 rgba(255,255,255,.2); }
.det-cta.humanize:hover:not(:disabled) { box-shadow: 0 10px 28px rgba(124,58,237,.45); }

/* Result side */
.det-result {
  background:
    radial-gradient(280px 200px at 100% 0%, rgba(124,58,237,.10), transparent 70%),
    linear-gradient(180deg, #fafbff 0%, #f4f6fb 100%);
  border-left: 1px solid var(--border);
  padding: 24px 26px;
  display: flex; flex-direction: column; gap: 18px;
}
.det-result-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 800; letter-spacing: .14em;
  color: var(--muted);
}
.det-result-head .badge {
  font-size: 10.5px; padding: 4px 8px; border-radius: 6px;
  background: var(--surface-2); color: var(--muted); letter-spacing: .08em;
}
.det-result-head .badge.live { background: var(--red-soft); color: var(--red); }
.det-result-head .badge.running { background: var(--brand-softer); color: var(--brand); }
.det-result-head .badge.good { background: var(--green-soft); color: var(--green); }

.det-ring { display: flex; flex-direction: column; align-items: center; padding: 4px 0 0; }
.det-ring .ring { width: 160px; height: 160px; position: relative; display: grid; place-items: center; }
.det-ring .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.det-ring .track { fill: none; stroke: rgba(15,23,42,.06); stroke-width: 9; }
.det-ring .bar {
  fill: none; stroke-width: 9; stroke-linecap: round;
  stroke: url(#gradBad);
  transition: stroke-dashoffset .9s ease, stroke .3s ease;
}
.det-ring.good .bar { stroke: url(#gradGood); }
.det-ring.warn .bar { stroke: url(#gradWarn); }
.det-ring .center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.det-ring .num { font-size: 40px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.det-ring .num small { font-size: 17px; font-weight: 700; color: var(--muted-2); }
.det-ring .label { margin-top: 6px; font-size: 10.5px; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.det-ring .verdict {
  margin-top: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--red-soft); color: var(--red);
}
.det-ring .verdict.good { background: var(--green-soft); color: var(--green); }
.det-ring .verdict.warn { background: var(--amber-soft); color: #b45309; }
.det-ring .verdict.idle { background: var(--surface-2); color: var(--muted); }

.det-bk { display: flex; flex-direction: column; gap: 10px; }
.det-bk .row { display: flex; flex-direction: column; gap: 4px; }
.det-bk .top { display: flex; justify-content: space-between; font-size: 12.5px; }
.det-bk .top b { color: var(--ink); font-weight: 700; }
.det-bk .top span { color: var(--muted); font-weight: 700; }
.det-bk .bar { height: 6px; background: rgba(15,23,42,.06); border-radius: 999px; overflow: hidden; }
.det-bk .bar > i { display: block; height: 100%; width: 0%; border-radius: 999px; transition: width .9s cubic-bezier(.2,.75,.25,1); }
.det-bk .bar > i.red    { background: linear-gradient(90deg, #ef4444, #e11d48); }
.det-bk .bar > i.amber  { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.det-bk .bar > i.green  { background: linear-gradient(90deg, #10b981, #059669); }

/* =========================================================
   RESULT PANEL MOTION  (idle breathe → scan → resolve)
   ========================================================= */
.det-ring .num { font-variant-numeric: tabular-nums; }

/* Glow halo behind the ring — drives every state's mood */
.det-ring .ring::before {
  content: "";
  position: absolute; inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.12), transparent 70%);
  opacity: 0;
  transition: opacity .6s ease, background .4s ease;
  pointer-events: none;
  z-index: 0;
}
.det-ring .ring svg,
.det-ring .ring .center { position: relative; z-index: 1; }

/* IDLE — a slow breathing aura: "armed, waiting" */
.det-ring:not(.scanning):not(.resolved) .ring::before {
  opacity: 1;
  animation: detBreathe 3.4s ease-in-out infinite;
}
@keyframes detBreathe {
  0%, 100% { opacity: .32; transform: scale(.94); }
  50%      { opacity: .9;  transform: scale(1.03); }
}

/* SCANNING — spinning indeterminate arc + brand pulse */
.det-ring.scanning .bar {
  stroke: var(--brand);
  stroke-dasharray: 64 262.7;
  stroke-dashoffset: 0;
  transition: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: detRingSpin .9s linear infinite;
}
@keyframes detRingSpin { to { transform: rotate(360deg); } }
.det-ring.scanning .num { color: var(--brand); }
.det-ring.scanning .ring::before {
  opacity: 1;
  background: radial-gradient(circle, rgba(55,136,216,.22), transparent 70%);
  animation: detBreathe 1.1s ease-in-out infinite;
}

/* RESOLVE — score-reactive glow flush + verdict pop */
.det-ring.resolved .ring::before { opacity: 1; }
.det-ring.resolved:not(.good):not(.warn) .ring::before { background: radial-gradient(circle, rgba(239,68,68,.22), transparent 70%); }
.det-ring.resolved.warn .ring::before { background: radial-gradient(circle, rgba(245,158,11,.24), transparent 70%); }
.det-ring.resolved.good .ring::before { background: radial-gradient(circle, rgba(16,185,129,.22), transparent 70%); }
.det-ring.resolved .verdict { animation: detVPop .5s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes detVPop {
  0%   { opacity: 0; transform: translateY(8px) scale(.9); }
  100% { opacity: 1; transform: none; }
}

/* Verdict pill while scanning + animated dots */
.det-ring .verdict.scanning { background: var(--brand-softer); color: var(--brand); }
.det-ring .verdict .scan-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; display: inline-block;
  animation: detDotPulse 1s ease-in-out infinite;
}
.det-ring .verdict .ell { letter-spacing: 1px; }
.det-ring .verdict .ell i { font-style: normal; animation: detBlink 1.2s infinite both; }
.det-ring .verdict .ell i:nth-child(2) { animation-delay: .2s; }
.det-ring .verdict .ell i:nth-child(3) { animation-delay: .4s; }
@keyframes detDotPulse { 0%,100% { transform: scale(.6); opacity: .5; } 50% { transform: scale(1); opacity: 1; } }
@keyframes detBlink { 0%,100% { opacity: .2; } 50% { opacity: 1; } }

/* Breakdown bars shimmer while scanning */
.det-bk.scanning .bar {
  background: linear-gradient(90deg, rgba(15,23,42,.05) 25%, rgba(55,136,216,.16) 50%, rgba(15,23,42,.05) 75%);
  background-size: 200% 100%;
  animation: detShimmer 1.1s linear infinite;
}
.det-bk.scanning .bar > i { width: 0% !important; }
.det-bk.scanning .top span { color: var(--muted-2); letter-spacing: 1px; }
@keyframes detShimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  .det-ring .ring::before,
  .det-ring.scanning .bar,
  .det-ring .verdict .scan-dot,
  .det-ring .verdict .ell i,
  .det-ring.resolved .verdict,
  .det-bk.scanning .bar { animation: none !important; }
}

.det-promo {
  margin-top: auto;
  padding: 13px 14px;
  background: linear-gradient(135deg, #eef5fc 0%, #e3effb 100%);
  border: 1px solid #cfe1f5;
  border-radius: 12px;
  display: flex; gap: 10px; align-items: flex-start;
  text-decoration: none;
}
.det-promo .spark {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  border-radius: 8px;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(124,58,237,.32);
}
.det-promo .t { font-size: 13px; font-weight: 700; color: var(--ink); }
.det-promo .s { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.det-promo .more {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 6px;
  color: var(--violet); font-weight: 700; font-size: 12px;
}

/* Highlighted-result view (replaces editor after scan) */
.det-rendered {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  min-height: 240px;
  overflow-y: auto;
  max-height: 320px;
}
.det-rendered span.hl-ai {
  background: linear-gradient(180deg, transparent 55%, rgba(225,29,72,.18) 55%);
  color: var(--ink);
  padding: 0 2px; border-radius: 2px;
  border-bottom: 2px solid rgba(225,29,72,.45);
  box-decoration-break: clone;
}
.det-rendered span.hl-mixed {
  background: linear-gradient(180deg, transparent 55%, rgba(245,158,11,.22) 55%);
  color: var(--ink);
  padding: 0 2px; border-radius: 2px;
  border-bottom: 2px solid rgba(245,158,11,.45);
  box-decoration-break: clone;
}

/* ============= HUMANIZE PANEL ============= */
.hum-panel {
  padding: 22px 26px 26px;
  display: none; /* shown when active */
  flex-direction: column;
  gap: 16px;
}
.hum-panel.active { display: flex; }
.det-panel.hidden { display: none; }

.hum-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.hum-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.hum-tag {
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .12s ease;
}
.hum-tag:hover { background: #fff; border-color: var(--border-strong); }
.hum-tag.active {
  background: var(--violet-soft);
  border-color: var(--violet);
  color: var(--violet);
}
.hum-tag-label {
  font-size: 11.5px; font-weight: 700;
  color: var(--muted-2); letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 4px 0;
}

.hum-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  min-height: 220px;
}
.hum-col {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; flex-direction: column;
  min-height: 220px;
}
.hum-col.after {
  background: linear-gradient(180deg, #f3e8ff 0%, #faf5ff 100%);
  border-color: #d8b4fe;
}
.hum-col-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 800; letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 10px;
}
.hum-col-head .score {
  font-size: 11px; padding: 3px 8px; border-radius: 5px;
  font-weight: 800; letter-spacing: .04em;
}
.hum-col-head .score.bad { background: var(--red-soft); color: var(--red); }
.hum-col-head .score.good { background: var(--green-soft); color: var(--green); }
.hum-col-head .score.idle { background: var(--surface); color: var(--muted); }
.hum-text {
  flex: 1;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  overflow-y: auto;
  max-height: 220px;
}
.hum-text .hum-cursor {
  display: inline-block;
  width: 2px; height: 16px;
  background: var(--violet);
  vertical-align: middle;
  margin-left: 1px;
  animation: humBlink 1s steps(2) infinite;
}
@keyframes humBlink { 50% { opacity: 0; } }

.hum-arrow {
  display: grid; place-items: center;
  width: 38px;
  color: var(--violet);
}
.hum-arrow svg { display: block; }

.hum-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.hum-passes {
  display: flex; gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 11.5px;
  color: var(--muted);
}
.hum-passes .lbl { font-weight: 700; color: var(--ink-2); }
.hum-passes .pass-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11.5px; font-weight: 700;
  color: var(--muted);
  transition: all .3s ease;
}
.hum-passes .pass-chip.pass {
  background: var(--green-soft);
  border-color: #a7f3d0;
  color: var(--green);
}
.hum-passes .pass-chip .ck {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--muted-2);
  display: grid; place-items: center;
  color: #fff;
  font-size: 9px;
  transition: background .3s ease;
}
.hum-passes .pass-chip.pass .ck { background: var(--green); }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   STATS STRIP
   ========================================================= */
.stats-strip {
  padding: 36px 32px;
  background: #fff;
}
.stats-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #fafbff, #fff);
}
.stat-cell {
  padding: 26px 28px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.stat-cell:last-child { border-right: 0; }
.stat-cell .stat-num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  background: linear-gradient(135deg, var(--brand), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-cell .stat-num .plus { font-size: 24px; opacity: .7; }
.stat-cell .stat-lbl {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .02em;
}
.stat-cell .stat-sub {
  font-size: 11.5px;
  color: var(--muted-2);
  font-weight: 600;
  margin-top: 4px;
}

/* =========================================================
   PRESS BAR
   ========================================================= */
.press-bar {
  padding: 36px 32px 24px;
  text-align: center;
  background: var(--surface-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.press-bar .lbl {
  font-size: 11.5px; font-weight: 700;
  color: var(--muted-2); letter-spacing: .18em;
  text-transform: uppercase;
}
.press-bar .logos {
  margin-top: 22px;
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 56px;
  color: #6b7591;
}
.press-bar .logos span {
  font-weight: 700; font-size: 19px; letter-spacing: -.01em;
  opacity: .55; transition: opacity .2s ease, color .2s ease;
  filter: grayscale(100%);
}
.press-bar .logos span:hover { opacity: 1; color: var(--ink-2); }
.press-bar .logos .serif { font-family: "Instrument Serif", serif; font-size: 26px; font-style: italic; font-weight: 400; }
.press-bar .logos .uppercase { text-transform: uppercase; letter-spacing: .1em; font-size: 14px; }

/* =========================================================
   SECTION FRAME
   ========================================================= */
.section { padding: 90px 32px; }
.section.alt { background: #fafbff; }
.section.dark { background: #0c1322; color: #f1f5fb; }
.section.dark .sec-title { color: #f1f5fb; }
.section.dark .sec-eyebrow { color: #8b96b3; }
.section.dark .sec-sub { color: #9aa3b8; }
.sec-wrap { max-width: 1180px; margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: .14em;
  color: var(--brand);
  text-transform: uppercase;
}
.sec-title {
  margin: 12px 0 0;
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: -.03em; font-weight: 800;
  line-height: 1.08;
  color: var(--ink);
  max-width: 22ch; margin-left: auto; margin-right: auto;
  text-wrap: balance;
}
.sec-title .italic {
  font-family: "Instrument Serif", serif;
  font-style: italic; font-weight: 400;
  letter-spacing: -.005em;
  color: var(--brand);
}
.sec-title .gradient {
  background: linear-gradient(135deg, var(--brand), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sec-sub {
  margin: 16px auto 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 17px; line-height: 1.55;
}

/* =========================================================
   FEATURES
   ========================================================= */
.feat-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 14px;
}
.feat-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 26px 26px 28px;
  display: flex; flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease, box-shadow .2s ease;
}
.feat-card:hover {
  transform: translateY(-3px);
  border-color: #cfe1f5;
  box-shadow: 0 18px 40px -16px rgba(55,136,216,.20);
}
.feat-card .ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--brand-softer); color: var(--brand);
  display: grid; place-items: center;
}
.feat-card.amber .ico { background: #fff5e6; color: #b45309; }
.feat-card.violet .ico { background: var(--violet-soft); color: var(--violet); }
.feat-card.green .ico { background: var(--green-soft); color: var(--green); }
.feat-card.red .ico { background: var(--red-soft); color: var(--red); }
.feat-card h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.feat-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.feat-card.wide { grid-column: span 2; }

.feat-vis {
  margin-top: 8px;
  border-radius: 12px;
  background: var(--surface-2);
  padding: 16px;
  border: 1px solid var(--border);
}
.feat-vis-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--muted);
  padding: 6px 0;
}
.feat-vis-row + .feat-vis-row { border-top: 1px dashed var(--border); }
.feat-vis-row b { color: var(--ink); font-weight: 700; }
.feat-vis-row .pct.bad { color: var(--red); font-weight: 700; }
.feat-vis-row .pct.good { color: var(--green); font-weight: 700; }
.feat-vis-row .pct.warn { color: #b45309; font-weight: 700; }
.feat-vis .demo-text { font-size: 14px; line-height: 1.65; color: var(--ink); }
.feat-vis .demo-text .hl-ai {
  background: linear-gradient(180deg, transparent 55%, rgba(225,29,72,.22) 55%);
  border-bottom: 2px solid rgba(225,29,72,.45);
  padding: 0 2px;
}
.feat-vis .demo-text .hl-mixed {
  background: linear-gradient(180deg, transparent 55%, rgba(245,158,11,.24) 55%);
  border-bottom: 2px solid rgba(245,158,11,.45);
  padding: 0 2px;
}
.feat-vis .demo-text .hl-human { color: var(--green); font-weight: 600; }

/* =========================================================
   PASSES EVERY DETECTOR (big proof section)
   ========================================================= */
.pass-section {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(124,58,237,.10), transparent 70%),
    radial-gradient(700px 400px at 90% 100%, rgba(55,136,216,.10), transparent 70%),
    linear-gradient(180deg, #fff 0%, #f7f9fd 100%);
}
.pass-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px 40px;
  box-shadow: 0 30px 80px -40px rgba(15,23,42,.22);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.pass-left h3 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--ink);
}
.pass-left h3 .gradient {
  background: linear-gradient(135deg, var(--brand), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pass-left p {
  margin: 16px 0 0;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 48ch;
}
.pass-left ul {
  margin: 20px 0 0; padding: 0;
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.pass-left li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.pass-left li svg { color: var(--green); flex: 0 0 18px; margin-top: 1px; }

.pass-meters {
  display: flex; flex-direction: column;
  gap: 12px;
}
.pass-meter {
  display: grid;
  grid-template-columns: 130px 1fr 80px;
  gap: 12px;
  align-items: center;
}
.pass-meter .pm-name {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.pass-meter .pm-name .pm-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted-2);
}
.pass-meter .pm-bar {
  height: 10px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.pass-meter .pm-bar i {
  display: block; height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ef4444, #e11d48);
  border-radius: 999px;
  transition: width 1s ease, background .4s ease;
  position: relative;
}
.pass-meter.pass .pm-bar i {
  background: linear-gradient(90deg, #10b981, #059669);
}
.pass-meter .pm-pct {
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
  text-align: right;
  font-variant-numeric: tabular-nums;
  transition: color .4s ease;
}
.pass-meter.pass .pm-pct { color: var(--green); }

.pass-tabs {
  display: flex; gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 10px;
  margin-bottom: 18px;
  align-self: flex-start;
}
.pass-tab {
  padding: 8px 16px;
  border-radius: 7px;
  font-size: 13px; font-weight: 700;
  color: var(--muted);
  border: 0; background: transparent;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s ease;
}
.pass-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(15,23,42,.08);
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  padding: 28px 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  position: relative;
}
.step .num {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800;
  color: var(--brand); letter-spacing: .14em;
}
.step .num .n {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--brand-softer); color: var(--brand);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
}
.step h4 { margin: 14px 0 6px; font-size: 19px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.step .demo {
  margin-top: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--ink-2);
}
.step .demo .ico { color: var(--brand); }
.step .demo .row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.step .demo .row.dim { color: var(--muted); }
.step .demo .row.ok .ico { color: var(--green); }

/* =========================================================
   USE CASES
   ========================================================= */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.uc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}
.uc-card:hover {
  transform: translateY(-3px);
  border-color: #cfe1f5;
  box-shadow: 0 18px 40px -20px rgba(55,136,216,.18);
}
.uc-card .uc-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
}
.uc-card.students .uc-ico { background: var(--brand-softer); color: var(--brand); }
.uc-card.writers  .uc-ico { background: var(--violet-soft); color: var(--violet); }
.uc-card.seo      .uc-ico { background: #fff5e6; color: #b45309; }
.uc-card.educators .uc-ico { background: var(--green-soft); color: var(--green); }
.uc-card h4 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.uc-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; flex: 1; }
.uc-card .uc-list {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.uc-card .uc-list li {
  font-size: 12.5px; color: var(--ink-2); font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.uc-card .uc-list li svg { color: var(--green); flex: 0 0 14px; }
.uc-card .uc-more {
  font-size: 12.5px; font-weight: 700;
  color: var(--brand);
  margin-top: 4px;
  display: inline-flex; align-items: center; gap: 4px;
}

/* =========================================================
   COMPARISON
   ========================================================= */
.compare-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px -30px rgba(15,23,42,.20);
}
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare thead th {
  text-align: left;
  padding: 22px 18px;
  font-size: 13px; font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  vertical-align: bottom;
}
.compare thead th:first-child { background: #fff; }
.compare thead th.us {
  background: linear-gradient(180deg, #eef5fc, #fff);
  color: var(--brand-2);
  position: relative;
}
.compare thead th.us .brandcell {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 800; color: var(--ink);
  letter-spacing: -.015em;
}
.compare thead th.us .brandcell .mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, #5aa3e8, #2c6cb0);
  display: grid; place-items: center; color: #fff;
}
.compare thead th.us .best {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 5px;
  background: var(--brand); color: #fff;
  letter-spacing: .08em;
}
.compare thead th .vendor { font-size: 14px; font-weight: 700; color: var(--ink); display: block; }
.compare thead th .price { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.compare tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--ink-2);
  vertical-align: middle;
}
.compare tbody td:first-child { font-weight: 700; color: var(--ink); background: var(--surface-2); }
.compare tbody td.us { background: rgba(238,245,252,.5); color: var(--ink); font-weight: 700; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes, .compare .no, .compare .partial {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700;
}
.compare .yes { color: var(--green); }
.compare .no  { color: var(--muted-2); }
.compare .partial { color: #b45309; }
.compare .yes .ck, .compare .no .ck, .compare .partial .ck {
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-soft);
}
.compare .no .ck { background: var(--surface-2); }
.compare .partial .ck { background: var(--amber-soft); }
.compare-note { text-align: center; font-size: 12.5px; color: var(--muted-2); margin-top: 14px; }
.compare-note a { color: var(--muted); text-decoration: underline; }

/* =========================================================
   INTEGRATIONS / EXTENSION
   ========================================================= */
.integ-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}
.integ-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 32px 28px;
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.integ-card.dark {
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(124,58,237,.20), transparent 70%),
    radial-gradient(400px 240px at 0% 100%, rgba(55,136,216,.20), transparent 70%),
    #0c1322;
  color: #f1f5fb;
  border-color: transparent;
}
.integ-card .pill {
  font-size: 10.5px; font-weight: 800;
  letter-spacing: .12em;
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--brand-softer);
  color: var(--brand);
  align-self: flex-start;
}
.integ-card.dark .pill { background: rgba(255,255,255,.08); color: #c4b5fd; }
.integ-card h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.integ-card.dark h3 { color: #fff; }
.integ-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 38ch;
}
.integ-card.dark p { color: #9aa3b8; }

.integ-logos {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 8px;
}
.integ-logo {
  height: 42px; padding: 0 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  color: var(--ink-2);
}
.integ-card.dark .integ-logo {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  color: #c8d1e2;
}
.integ-logo .glyph {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  color: #fff;
}
.integ-logo .glyph.docs { background: #4285f4; }
.integ-logo .glyph.word { background: #1d6cc6; }
.integ-logo .glyph.wp   { background: #21759b; }
.integ-logo .glyph.notion { background: #111; }
.integ-logo .glyph.slack { background: linear-gradient(135deg, #ecb22e, #e01e5a); }
.integ-logo .glyph.canvas { background: #c8112c; }
.integ-logo .glyph.shop { background: #95bf47; }
.integ-logo .glyph.chrome { background: linear-gradient(135deg, #4285f4, #ea4335, #fbbc05, #34a853); }

.integ-cta {
  margin-top: auto;
  align-self: flex-start;
}

/* Extension preview */
.ext-preview {
  margin-top: 12px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.4);
}
.ext-preview .ext-head {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.ext-preview .ext-head .domain {
  color: var(--ink);
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 11.5px;
}
.ext-preview .ext-row {
  display: flex; justify-content: space-between; align-items: center;
}
.ext-preview .ext-row b { font-weight: 700; color: var(--ink); }
.ext-preview .ext-row .badge-bad {
  background: var(--red-soft); color: var(--red);
  font-size: 11px; font-weight: 800;
  padding: 2px 7px; border-radius: 5px;
}
.ext-preview .ext-row .badge-good {
  background: var(--green-soft); color: var(--green);
  font-size: 11px; font-weight: 800;
  padding: 2px 7px; border-radius: 5px;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.tg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 26px 22px;
  display: flex; flex-direction: column;
  gap: 14px;
  transition: transform .15s ease, box-shadow .2s ease;
}
.tcard:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -14px rgba(15,23,42,.15); }
.tcard .stars { color: #fbbf24; display: inline-flex; gap: 1px; }
.tcard blockquote {
  margin: 0;
  font-size: 16px; line-height: 1.55;
  color: var(--ink); font-weight: 500;
  letter-spacing: -.005em;
}
.tcard blockquote::before { content: "“"; color: var(--brand); margin-right: 2px; }
.tcard blockquote::after { content: "”"; color: var(--brand); }
.tcard .who { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 4px; }
.tcard .who .av {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #5aa3e8, #2c6cb0);
  color: #fff; font-weight: 700; font-size: 13px;
  display: grid; place-items: center; flex: 0 0 38px;
}
.tcard .who .av.violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.tcard .who .av.green  { background: linear-gradient(135deg, #10b981, #059669); }
.tcard .who .av.amber  { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.tcard .who .av.red    { background: linear-gradient(135deg, #f87171, #e11d48); }
.tcard .who .nm { font-weight: 700; font-size: 14px; color: var(--ink); }
.tcard .who .ti { font-size: 12.5px; color: var(--muted); }

/* =========================================================
   PRICING
   ========================================================= */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
  display: flex; flex-direction: column;
  gap: 18px;
  position: relative;
}
.price-card.featured {
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #5aa3e8, #7c3aed) border-box;
  box-shadow: 0 20px 60px -20px rgba(55,136,216,.30);
  transform: translateY(-4px);
}
.price-card .ribbon {
  position: absolute; top: -10px; left: 26px;
  font-size: 10.5px; font-weight: 800;
  padding: 4px 9px; border-radius: 6px;
  background: linear-gradient(135deg, #5aa3e8, #2c6cb0);
  color: #fff; letter-spacing: .08em;
}
.price-card .pname { font-size: 14px; font-weight: 800; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.price-card .pp { display: flex; align-items: baseline; gap: 6px; }
.price-card .pp .amt { font-size: 42px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.price-card .pp .per { font-size: 14px; color: var(--muted); font-weight: 600; }
.price-card .pdesc { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.price-card ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.price-card li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13.5px; color: var(--ink-2);
  line-height: 1.4;
}
.price-card li svg { color: var(--green); flex: 0 0 16px; margin-top: 2px; }
.price-card .pcta {
  margin-top: auto;
  display: inline-flex; justify-content: center; align-items: center;
  height: 44px;
  border-radius: 11px;
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--border);
  transition: background .15s ease, transform .15s ease;
}
.price-card .pcta:hover { background: var(--border); }
.price-card.featured .pcta {
  background: linear-gradient(180deg, #4a99e6, #2c6cb0);
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 18px rgba(55,136,216,.32);
}
.price-card.featured .pcta:hover { transform: translateY(-1px); }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 17px; font-weight: 700; color: var(--ink);
  letter-spacing: -.01em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 16px; height: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7591' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") center/contain no-repeat;
  transition: transform .2s ease;
}
.faq[open] summary::after { transform: rotate(180deg); }
.faq .a {
  padding: 0 0 22px;
  color: var(--muted); font-size: 15px; line-height: 1.6;
  max-width: 70ch;
}

/* =========================================================
   DARK CTA
   ========================================================= */
.cta-final {
  position: relative;
  text-align: center;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(124,58,237,.30), transparent 70%),
    radial-gradient(900px 400px at 50% 100%, rgba(55,136,216,.30), transparent 70%),
    #0c1322;
  color: #fff;
  padding: 100px 32px;
  overflow: hidden;
}
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(closest-side at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
}
.cta-final > * { position: relative; z-index: 1; }

/* tool-page dark CTA: .section.dark was flattening the glow — restore depth */
.cta-final.section.dark {
  background:
    radial-gradient(720px 360px at 50% -10%, rgba(124,58,237,.36), transparent 66%),
    radial-gradient(880px 440px at 50% 116%, rgba(55,136,216,.32), transparent 70%),
    radial-gradient(420px 420px at 50% 46%, rgba(90,163,232,.10), transparent 70%),
    linear-gradient(180deg, #0b1120 0%, #0c1322 52%, #0a0f1c 100%);
  padding: 96px 32px;
}
.cta-final.section.dark::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(125% 92% at 50% 4%, #000 0%, #000 34%, transparent 72%);
  -webkit-mask-image: radial-gradient(125% 92% at 50% 4%, #000 0%, #000 34%, transparent 72%);
  opacity: .8; pointer-events: none;
}
/* hairline top edge so it reads as a deliberate band against the page */
.cta-final.section.dark::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,.45), rgba(90,163,232,.45), transparent);
  pointer-events: none;
}
.cta-final h2 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -.035em;
  margin: 0 auto;
  max-width: 18ch;
  text-wrap: balance;
}
.cta-final h2 .italic {
  font-family: "Instrument Serif", serif;
  font-style: italic; font-weight: 400;
  background: linear-gradient(135deg, #5aa3e8, #c4b5fd);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.cta-final p { margin: 22px auto 0; font-size: 17px; color: #c8d1e2; max-width: 50ch; }
.cta-actions {
  margin-top: 36px;
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.cta-actions .btn.primary { height: 48px; padding: 0 22px; font-size: 15px; }
.cta-actions .btn-ghost-dark {
  height: 48px; padding: 0 22px; font-size: 15px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  border-radius: 11px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.cta-actions .btn-ghost-dark:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); }
.cta-final .lang-line {
  margin-top: 18px;
  font-size: 13px; color: #6b7591;
}
.cta-final .lang-line b { color: #c4b5fd; font-weight: 700; }

/* =========================================================
   LONG-FORM CONTENT (legal, methodology, blog post)
   ========================================================= */
.lf-hero {
  position: relative;
  padding: 80px 32px 40px;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(55,136,216,.10), transparent 70%),
    linear-gradient(180deg, #f7f9fd 0%, #fff 100%);
  text-align: center;
}
.lf-hero .crumbs {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  color: var(--muted); letter-spacing: .04em;
  margin-bottom: 8px;
}
.lf-hero .crumbs a { color: var(--brand); text-decoration: none; }
.lf-hero .crumbs a:hover { text-decoration: underline; }
.lf-hero h1 {
  margin: 14px auto 0;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
  max-width: 22ch;
  text-wrap: balance;
}
.lf-hero h1 .italic {
  font-family: "Instrument Serif", serif;
  font-style: italic; font-weight: 400;
  background: linear-gradient(135deg, var(--brand) 0%, var(--violet) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lf-hero .lead {
  margin: 20px auto 0;
  font-size: 17px; line-height: 1.55;
  color: var(--muted); max-width: 60ch;
}
.lf-hero .meta {
  margin-top: 16px;
  font-size: 12.5px; color: var(--muted-2);
  display: inline-flex; gap: 14px; align-items: center;
}
.lf-hero .meta b { color: var(--ink-2); font-weight: 700; }
.lf-hero .meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

.lf-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 32px 80px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.lf-body p { margin: 0 0 22px; }
.lf-body h2 {
  margin: 56px 0 14px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.2;
}
.lf-body h3 {
  margin: 36px 0 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
}
.lf-body h2 + p,
.lf-body h3 + p { margin-top: 0; }
.lf-body ul, .lf-body ol {
  margin: 0 0 22px;
  padding-left: 22px;
}
.lf-body li { margin-bottom: 8px; }
.lf-body strong { color: var(--ink); font-weight: 700; }
.lf-body a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(55,136,216,.3);
}
.lf-body a:hover { border-bottom-color: var(--brand); }
.lf-body code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 14px;
  color: var(--ink);
}
.lf-body pre {
  background: #0f1729;
  color: #e6e9f1;
  padding: 16px 18px;
  border-radius: 12px;
  overflow-x: auto;
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.lf-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.lf-body blockquote {
  margin: 0 0 22px;
  padding: 14px 0 14px 22px;
  border-left: 3px solid var(--brand);
  font-style: italic;
  color: var(--ink);
  font-size: 17px;
}
.lf-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 14px;
}
.lf-body table th,
.lf-body table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.lf-body table th {
  background: var(--surface-2);
  font-weight: 700;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.lf-body .callout {
  margin: 0 0 22px;
  padding: 16px 18px;
  background: var(--brand-softer);
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}
.lf-body .callout.warn { background: var(--amber-soft); border-left-color: var(--amber); }
.lf-body .callout.good { background: var(--green-soft); border-left-color: var(--green); }
.lf-body .callout strong { color: var(--ink); }

.lf-toc {
  position: sticky; top: 80px;
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 13px;
}
.lf-toc b {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.lf-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.lf-toc a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  display: block;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all .15s ease;
}
.lf-toc a:hover { background: #fff; color: var(--brand); }

.lf-with-toc {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 32px 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}
.lf-with-toc .lf-body { padding: 0; margin: 0; max-width: 780px; }

@media (max-width: 980px) {
  .lf-with-toc { grid-template-columns: 1fr; gap: 24px; }
  .lf-toc { position: static; }
}
@media (max-width: 720px) {
  .lf-hero { padding: 56px 16px 28px; }
  .lf-body { padding: 40px 16px 60px; font-size: 15.5px; }
  .lf-with-toc { padding: 40px 16px 60px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #0c1322;
  color: #c8d1e2;
  padding: 0 0 24px;
}

/* Newsletter strip */
.footer-news {
  background:
    radial-gradient(600px 200px at 20% 50%, rgba(55,136,216,.16), transparent 70%),
    radial-gradient(600px 200px at 90% 50%, rgba(124,58,237,.14), transparent 70%),
    #131b2d;
  padding: 40px 32px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-news-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.fn-copy h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}
.fn-copy p {
  margin: 8px 0 0;
  font-size: 14px;
  color: #9aa3b8;
  line-height: 1.5;
  max-width: 44ch;
}
.fn-form {
  display: flex; gap: 8px;
  align-items: stretch;
  max-width: 460px;
  justify-self: end;
  width: 100%;
}
.fn-form input {
  flex: 1;
  height: 46px;
  padding: 0 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: 0;
  transition: border-color .15s ease, background .15s ease;
}
.fn-form input::placeholder { color: #6b7591; }
.fn-form input:focus {
  background: rgba(255,255,255,.1);
  border-color: var(--brand);
}
.fn-form button {
  height: 46px; padding: 0 22px;
  background: linear-gradient(180deg, #4a99e6, #2c6cb0);
  color: #fff;
  border: 0;
  border-radius: 11px;
  font-weight: 700; font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(55,136,216,.32);
  transition: transform .15s ease, box-shadow .2s ease;
}
.fn-form button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(55,136,216,.42); }
.fn-form button:disabled { opacity: .6; cursor: default; }

/* Top: brand + product + company + legal */
.footer-top {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .blurb {
  margin-top: 16px;
  font-size: 14px;
  color: #8b96b3;
  line-height: 1.55;
  max-width: 34ch;
}
.footer-socials {
  margin-top: 18px;
  display: flex; gap: 8px;
}
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  display: grid; place-items: center;
  color: #c8d1e2;
  transition: all .15s ease;
}
.footer-socials a:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}

/* Tools grid: 6 columns */
.footer-tools {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 32px 32px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer .lp-logo { color: #fff; }
.footer h5 {
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.footer ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer a {
  color: #c8d1e2;
  text-decoration: none;
  font-size: 13.5px;
  transition: color .15s ease;
}
.footer a:hover { color: #fff; }
.footer-tools h5 { font-size: 11px; }
.footer-tools a { font-size: 13px; }
.footer-tools ul { gap: 8px; }

/* Trust strip */
.footer-trust {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 32px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.ftrust-lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  color: #6b7591;
  text-transform: uppercase;
}
.ftrust-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.ftrust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: #c8d1e2;
  font-size: 12px;
  font-weight: 600;
}

/* Bottom bar */
.footer-bot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 32px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #6b7591;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bot-links { display: flex; gap: 18px; }
.footer-bot-links a { font-size: 12.5px; color: #6b7591; }
.footer-bot-links a:hover { color: #c8d1e2; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1040px) {
  .det-grid { grid-template-columns: 1fr; }
  .det-result { border-left: 0; border-top: 1px solid var(--border); }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .feat-card.wide { grid-column: span 2; }
  .steps, .tg, .price-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .uc-grid { grid-template-columns: 1fr 1fr; }
  .compare-card { overflow-x: auto; }
  .compare { min-width: 760px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-cell { border-right: 0; border-bottom: 1px solid var(--border); }
  .stat-cell:nth-child(2n) { border-right: 0; }
  .stat-cell:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-cell:nth-last-child(-n+2) { border-bottom: 0; }
  .pass-card { grid-template-columns: 1fr; padding: 28px 24px; gap: 28px; }
  .integ-grid { grid-template-columns: 1fr; }
  .hum-split { grid-template-columns: 1fr; }
  .hum-arrow { width: auto; transform: rotate(90deg); justify-self: center; }
  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-tools { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
  .footer-news-inner { grid-template-columns: 1fr; gap: 18px; }
  .fn-form { justify-self: start; max-width: 100%; }
}
@media (max-width: 720px) {
  .lp-nav { padding: 12px 16px; }
  .lp-menu { display: none; }
  .lp-cta-signin { display: none; }
  .lp-cta .btn.primary { height: 38px; padding: 0 14px; font-size: 13px; }
  .nav-toggle { display: inline-flex; }
  .lp-logo { font-size: 16px; }
  .lp-logo .mark { width: 30px; height: 30px; flex: 0 0 30px; }
  .lp-logo .mark img { width: 30px; height: 30px; }
  .hero-lp { padding: 48px 16px 32px; }
  .hero-h1 { font-size: clamp(34px, 9vw, 44px) !important; max-width: 100%; }
  .hero-sub { font-size: 16px; margin-top: 18px; }
  .hero-meta { gap: 12px; font-size: 12.5px; margin-top: 18px; }
  .hero-meta .dot { display: none; }
  .eyebrow { font-size: 11.5px; flex-wrap: wrap; }
  .eyebrow .sep { display: none; }
  .section { padding: 56px 16px; }
  .sec-head { margin-bottom: 36px; }
  .sec-title { font-size: clamp(26px, 7vw, 34px) !important; }
  .sec-sub { font-size: 15.5px; }
  .stats-strip { padding: 28px 16px; }
  .press-bar { padding: 28px 16px 22px; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-card.wide { grid-column: auto; }
  .feat-card { padding: 22px 22px 24px; }
  .uc-grid { grid-template-columns: 1fr; }
  .press-bar .logos { gap: 24px; }
  .press-bar .logos span { font-size: 15px; }
  .press-bar .logos .serif { font-size: 20px; }
  .cta-final { padding: 64px 16px; }
  .cta-final h2 { font-size: clamp(28px, 8vw, 38px); }
  .cta-final p { font-size: 15px; }
  .cta-actions { flex-direction: column; width: 100%; gap: 10px; }
  .cta-actions .btn.primary,
  .cta-actions .btn-ghost-dark { width: 100%; justify-content: center; height: 46px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: 0 !important; border-bottom: 1px solid var(--border); padding: 20px 22px; }
  .stat-cell:last-child { border-bottom: 0; }
  .stat-cell .stat-num { font-size: 30px; }
  .tool-modes { padding: 0 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tool-mode { padding: 14px 14px 12px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
  .tool-mode .badge-new { display: none; }
  .det-input { padding: 18px 18px 0; }
  .det-result { padding: 20px 18px; }
  .det-editor { font-size: 14.5px; min-height: 200px; }
  .det-editor-foot { gap: 10px; }
  .det-counter { width: 100%; justify-content: space-between; font-size: 12px; }
  .det-quick { width: 100%; }
  .det-quick button { flex: 1; justify-content: center; }
  .det-cta { font-size: 14px; }
  .det-ring .ring { width: 140px; height: 140px; }
  .det-ring .num { font-size: 34px; }
  .hum-panel { padding: 18px 18px 22px; }
  .hum-tags { gap: 4px; }
  .hum-tag { padding: 5px 9px; font-size: 12px; }
  .hum-bottom { flex-direction: column; align-items: stretch; }
  .hum-bottom .det-cta.humanize { width: 100%; }
  .pass-meter { grid-template-columns: 100px 1fr 60px; gap: 8px; }
  .pass-meter .pm-name { font-size: 12px; }
  .pass-meter .pm-pct { font-size: 12px; }
  .pass-card { padding: 24px 20px; }
  /* Footer mobile */
  .footer-news { padding: 32px 16px; }
  .footer-top { padding: 40px 16px 20px; grid-template-columns: 1fr; gap: 28px; }
  .footer-tools { padding: 20px 16px 24px; grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-trust { padding: 18px 16px; }
  .footer-bot { padding: 18px 16px 0; }
  .fn-copy h4 { font-size: 19px; }
  .fn-form { flex-direction: column; }
  .fn-form button { width: 100%; }
  /* Long-form content */
  .lf-hero { padding: 48px 16px 24px; }
  .lf-hero h1 { font-size: clamp(28px, 8vw, 38px) !important; }
  .lf-hero .lead { font-size: 15.5px; }
  .lf-hero .meta { font-size: 11.5px; gap: 10px; flex-wrap: wrap; justify-content: center; }
  .lf-body { padding: 36px 16px 60px; font-size: 15.5px; line-height: 1.7; }
  .lf-body h2 { font-size: 22px; margin: 40px 0 12px; }
  .lf-body h3 { font-size: 18px; }
  .lf-body pre { padding: 14px; font-size: 12.5px; }
  .lf-body table { font-size: 13px; }
  .lf-body table th, .lf-body table td { padding: 10px 12px; }
  .lf-with-toc { padding: 32px 16px 60px; gap: 20px; }
}

/* Extra-small phones */
@media (max-width: 420px) {
  .lp-nav { padding: 10px 12px; }
  .lp-cta { gap: 4px; }
  .lp-cta .btn.primary { padding: 0 10px; font-size: 12.5px; height: 36px; }
  .lp-cta .btn.primary svg { display: none; }
  .nav-toggle { width: 38px; height: 38px; }
  .nav-drawer { top: 60px; padding: 18px 14px 28px; }
  .hero-h1 { font-size: 32px !important; }
  .sec-title { font-size: 26px !important; }
  .det-tabs { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .det-tab { flex-shrink: 0; font-size: 12px; padding: 6px 11px; }
  .footer-tools { grid-template-columns: 1fr; }
  .footer-bot { font-size: 11.5px; }
  .footer-bot-links { gap: 14px; }
}

/* =========================================================
   DETECTOR VERIFY STRIP
   ========================================================= */
.detector-strip {
  padding: 44px 32px 40px;
  background: var(--surface-3, #fafbfd);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.detector-strip-wrap { max-width: 1140px; margin: 0 auto; text-align: center; }
.ds-head { margin-bottom: 22px; }
.ds-eyebrow {
  font-size: 11.5px; font-weight: 700;
  color: var(--muted-2);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ds-chips {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 12px;
}
.ds-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  color: var(--muted);
  transition: background .35s ease, border-color .35s ease, color .35s ease, transform .35s ease, box-shadow .35s ease;
  /* baseline state — muted; .verified flips to green */
}
.ds-chip .ds-name i {
  font-family: "Instrument Serif", serif;
  font-style: italic; font-weight: 400; font-size: 15px;
  color: inherit;
}
.ds-tick {
  width: 18px; height: 18px; border-radius: 50%;
  background: #e3e7ef; color: #fff;
  display: inline-grid; place-items: center;
  transition: background .35s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
}
.ds-tick svg { opacity: 0; transition: opacity .25s ease; }
.ds-chip.verified {
  background: var(--green-soft);
  border-color: #b5e4c8;
  color: var(--green);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -6px rgba(17,157,91,.35);
  animation: ds-pop .35s ease both;
  animation-delay: var(--d, 0s);
}
.ds-chip.verified .ds-tick {
  background: var(--green);
  transform: scale(1.05);
  animation-delay: var(--d, 0s);
}
.ds-chip.verified .ds-tick svg { opacity: 1; transition-delay: var(--d, 0s); }
@keyframes ds-pop {
  0% { transform: translateY(0) scale(.96); }
  60% { transform: translateY(-3px) scale(1.02); }
  100% { transform: translateY(-1px) scale(1); }
}

/* =========================================================
   TRUST + PRESS + GUARANTEE STRIP
   ========================================================= */
.trust-strip {
  padding: 36px 32px 44px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.trust-strip-wrap {
  max-width: 1140px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 14px;
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex; flex-direction: column;
  justify-content: center;
  min-height: 116px;
  box-shadow: 0 1px 0 rgba(15,23,42,.02), 0 8px 22px -16px rgba(15,23,42,.12);
}

/* Trustpilot card */
.trustpilot-card { gap: 8px; }
.trustpilot-card .tp-stars {
  display: inline-flex; gap: 3px;
  font-size: 22px; line-height: 1;
  color: #00b67a; /* Trustpilot green */
  letter-spacing: -1px;
}
.trustpilot-card .tp-stars span {
  background: #00b67a; color: #fff;
  width: 24px; height: 24px;
  display: inline-grid; place-items: center;
  border-radius: 3px;
  font-size: 16px;
}
.trustpilot-card .tp-meta {
  font-size: 14px; color: var(--ink-2);
}
.trustpilot-card .tp-meta b { color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.trustpilot-card .tp-brand {
  font-size: 11px; color: var(--muted);
  letter-spacing: .04em;
}
.trustpilot-card .tp-brand b { color: #00b67a; font-weight: 800; }

/* Press card */
.press-card { align-items: stretch; gap: 12px; }
.press-card .press-lbl {
  font-size: 10.5px; font-weight: 700;
  color: var(--muted-2);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.press-card .press-logos {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 18px 26px;
  color: var(--muted);
}
.press-card .press-logos span {
  opacity: .65; font-weight: 700;
  transition: opacity .15s ease, color .15s ease;
}
.press-card .press-logos span:hover { opacity: 1; color: var(--ink-2); }
.press-card .press-logos .serif {
  font-family: "Instrument Serif", serif;
  font-size: 22px; font-style: italic; font-weight: 400;
}
.press-card .press-logos .uppercase {
  text-transform: uppercase;
  letter-spacing: .1em; font-size: 13px;
}

/* Guarantee card */
.guarantee-card { flex-direction: row; align-items: center; gap: 14px; }
.guarantee-card .gc-icon {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  display: grid; place-items: center;
}
.guarantee-card .gc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.guarantee-card .gc-body b { font-size: 14.5px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.guarantee-card .gc-body span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

@media (max-width: 920px) {
  .trust-strip-wrap { grid-template-columns: 1fr; }
}

/* =========================================================
   BEFORE / AFTER SLIDER SECTION
   ========================================================= */
.ba-section { padding-top: 88px; padding-bottom: 88px; }
.ba-card {
  max-width: 1080px; margin: 38px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15,23,42,.02), 0 30px 60px -36px rgba(15,23,42,.22);
}

.ba-frame {
  position: relative;
  user-select: none;
  cursor: ew-resize;
  outline: 0;
}
.ba-frame:focus-visible { box-shadow: inset 0 0 0 3px var(--brand-softer); }
.ba-frame.dragging { cursor: grabbing; }

.ba-pane {
  padding: 32px 36px 28px;
  display: flex; flex-direction: column;
  gap: 18px;
}
.ba-before {
  background: #fdf6f7;
  background:
    radial-gradient(700px 200px at 0% 0%, rgba(225,29,72,.06), transparent 60%),
    #fdf6f7;
}
.ba-after {
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 220px at 100% 0%, rgba(17,157,91,.06), transparent 60%),
    #f3fbf6;
  clip-path: inset(0 0 0 50%);
  will-change: clip-path;
  transition: clip-path .05s linear;
}

.ba-pane-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.ba-pane-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink-2);
}
.ba-pane-tag b { font-weight: 800; color: var(--ink); }
.ba-pane-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted-2);
  position: relative;
}
.ba-pane-tag.bad .ba-pane-dot { background: var(--red); }
.ba-pane-tag.bad .ba-pane-dot::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%; border: 2px solid var(--red);
  opacity: .35;
  animation: ba-pulse 1.6s ease-out infinite;
}
.ba-pane-tag.good .ba-pane-dot { background: var(--green); }
.ba-pane-tag.good .ba-pane-dot::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%; border: 2px solid var(--green);
  opacity: .35;
  animation: ba-pulse 1.6s ease-out infinite;
}
@keyframes ba-pulse {
  0% { transform: scale(.6); opacity: .5; }
  100% { transform: scale(2.2); opacity: 0; }
}
.ba-score {
  font-family: "Instrument Serif", serif;
  font-style: italic; font-weight: 400;
  font-size: 32px;
  letter-spacing: -.02em;
  line-height: 1;
}
.ba-score.bad { color: var(--red); }
.ba-score.good { color: var(--green); }

.ba-text {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-2);
  letter-spacing: -.005em;
}
.ba-text mark {
  background: linear-gradient(180deg, transparent 55%, rgba(225,29,72,.22) 55%);
  color: var(--ink);
  padding: 0 2px;
  border-radius: 2px;
  border-bottom: 2px solid rgba(225,29,72,.55);
}

.ba-detectors {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}
.ba-det {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .02em;
  border: 1px solid;
}
.ba-det b {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-weight: 700;
}
.ba-det.bad { background: var(--red-soft); color: var(--red); border-color: rgba(225,29,72,.25); }
.ba-det.good { background: var(--green-soft); color: var(--green); border-color: rgba(17,157,91,.30); }

.ba-handle {
  position: absolute; top: 0; bottom: 0;
  left: 50%; width: 0;
  pointer-events: none;
  z-index: 4;
}
.ba-handle-bar {
  position: absolute; top: 0; bottom: 0; left: -1px;
  width: 2px;
  background: linear-gradient(180deg, rgba(15,23,42,.16), rgba(15,23,42,.32), rgba(15,23,42,.16));
}
.ba-handle-knob {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px -6px rgba(15,23,42,.45), 0 0 0 6px rgba(15,23,42,.06);
  pointer-events: auto;
  cursor: grab;
  transition: transform .15s ease;
}
.ba-frame.dragging .ba-handle-knob { cursor: grabbing; transform: translate(-50%, -50%) scale(1.05); }

.ba-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 16px 28px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.ba-foot-hint {
  font-size: 13px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.ba-foot-hint svg { color: var(--muted-2); }
.ba-foot .btn.primary {
  height: 40px; padding: 0 16px;
  font-size: 13.5px;
}

@media (max-width: 820px) {
  .ba-section { padding-top: 56px; padding-bottom: 56px; }
  .ba-pane { padding: 22px 22px 20px; gap: 14px; }
  .ba-text { font-size: 15px; line-height: 1.65; }
  .ba-score { font-size: 26px; }
  .ba-handle-knob { width: 38px; height: 38px; }
  .ba-foot { padding: 14px 18px; flex-direction: column; align-items: stretch; gap: 10px; }
  .ba-foot .btn.primary { width: 100%; justify-content: center; }
  .ba-foot-hint { justify-content: center; }
}

/* =========================================================
   STICKY HERO CTA (revealed after hero scrolls out)
   ========================================================= */
.sticky-cta {
  position: fixed;
  bottom: 22px; left: 50%;
  transform: translate(-50%, 140%);
  z-index: 80;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  box-shadow: 0 12px 32px -10px rgba(15,23,42,.45), 0 0 0 4px rgba(15,23,42,.06);
  opacity: 0;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
  pointer-events: none;
}
.sticky-cta.visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.sticky-cta:hover {
  background: #1a2540;
}
.sticky-cta-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.7);
  animation: sticky-pulse 1.8s ease-out infinite;
}
@keyframes sticky-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,.7); }
  70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
@media (max-width: 560px) {
  .sticky-cta { bottom: 14px; font-size: 13.5px; padding: 11px 16px 11px 14px; }
}

/* =========================================================
   MOBILE OVERFLOW SAFETY (≤ 640px)
   Flex & grid items default to min-width: auto which prevents
   them from shrinking below content's min-content size. Force
   min-width: 0 on common landing-page containers, and convert
   tables to scrollable / stacked cards.
   ========================================================= */
@media (max-width: 640px) {
  /* Stop sections from extending past viewport */
  body, .hero-lp, .section, .stats-strip,
  .detector-strip, .trust-strip, .cta-final {
    overflow-x: hidden;
  }
  .sec-wrap, .hero-wrap { width: 100%; max-width: 100%; }

  /* Min-width: 0 on every common container so grid/flex children can shrink */
  .sec-wrap, .sec-wrap > *,
  .hero-wrap, .hero-wrap > *,
  .hero-meta, .hero-meta > *,
  .lp-tool, .lp-tool > *,
  .price-grid, .price-grid > *,
  .price-card, .price-card > *,
  .feat-grid, .feat-grid > *, .feat-card, .feat-card > *,
  .stats-grid, .stats-grid > *, .stat-cell,
  .steps, .steps > *, .step-card, .step-card > *,
  .uc-grid, .uc-grid > *, .uc-card, .uc-card > *,
  .ts-grid, .ts-grid > *, .ts-card, .ts-card > *,
  .tg, .tg > *,
  .trust-strip-wrap, .trust-strip-wrap > *,
  .trust-card, .trust-card > *, .press-logos,
  .ds-chips, .ds-chip,
  .pass-card, .pass-card > *, .pass-meters, .pass-meter,
  .ba-card, .ba-pane, .ba-pane > *, .ba-pane-head, .ba-detectors,
  .compare-card, .compare-card > *,
  .cta-actions, .cta-actions > *,
  .footer-tools, .footer-tools > *,
  .stats-grid .stat-cell .val {
    min-width: 0;
  }

  /* ===== Compare table — full responsive scroll ===== */
  .compare-card {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .compare { min-width: 640px !important; font-size: 13px; }
  .compare thead th { padding: 14px 10px; }
  .compare tbody td { padding: 10px; }

  /* ===== Pricing — single column on mobile ===== */
  .price-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .price-card { padding: 22px 20px; }
  .price-card.featured { transform: none; }

  /* ===== Feature grid — single column ===== */
  .feat-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .feat-card.wide { grid-column: span 1; }

  /* ===== Stats — 2x2 ===== */
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .stat-cell { border-right: 0 !important; border-bottom: 1px solid var(--border); padding: 18px 14px; }
  .stats-grid .stat-cell:nth-last-child(-n+2) { border-bottom: 0; }

  /* ===== Use cases / testimonials grid ===== */
  .uc-grid, .ts-grid, .tg { grid-template-columns: 1fr !important; }

  /* ===== Steps / how-it-works ===== */
  .steps { grid-template-columns: 1fr !important; gap: 14px; }

  /* ===== Hero meta wraps tighter ===== */
  .hero-meta { font-size: 12.5px; gap: 12px; }
  .hero-meta .dot { display: none; }

  /* ===== CTA wraps ===== */
  .cta-actions { flex-direction: column; gap: 10px; }
  .cta-actions .btn,
  .cta-actions .btn-ghost-dark { width: 100%; justify-content: center; }
  .cta-final { padding-left: 22px; padding-right: 22px; }
  .cta-final h2 { font-size: 28px !important; line-height: 1.15; }

  /* ===== Section title smaller ===== */
  .sec-head { padding: 0 4px; }
  .sec-sub { font-size: 14.5px; }

  /* ===== Pass meters tighter ===== */
  .pass-meters { gap: 10px; }
  .pass-meter { padding: 12px 14px; }
  .pm-name { font-size: 13px; }
  .pm-pct { font-size: 12px; font-weight: 700; }

  /* ===== Footer ===== */
  .footer-tools { grid-template-columns: 1fr !important; gap: 8px; }
}
.rise-prep {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1);
}
.rise-prep.rise-in {
  opacity: 1; transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .rise-prep { opacity: 1; transform: none; transition: none; }
  .ds-chip { transition: none; }
  .ba-after { transition: none; }
  .sticky-cta { transition: opacity .2s ease; }
  .ba-pane-tag .ba-pane-dot::after { animation: none; }
}


/* =========================================================
   TextSight — shared 3-tier monetization layer (TSTiers)
   Reusable across all /tools/* pages. Depends on landing.css tokens.
   Provides: ad slots (anonymous only), signup wall, upgrade modal,
   usage pill helper, and a demo tier-preview switcher.
   ========================================================= */

/* ---------- ANONYMOUS AD SLOT ---------- */
.ts-ad {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.ts-ad-inner {
  position: relative;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, #fafbff, #fafbff 12px, #f4f6fb 12px, #f4f6fb 24px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--muted-2);
  min-height: 96px; padding: 18px;
}
.ts-ad[data-ts-ad="leaderboard"] .ts-ad-inner { min-height: 110px; }
.ts-ad-inner .ts-ad-lbl {
  position: absolute; top: 8px; left: 10px;
  font-size: 9px; font-weight: 800; letter-spacing: .12em;
  color: var(--muted-2); text-transform: uppercase;
}
.ts-ad-inner .ts-ad-body { font-size: 13px; font-weight: 600; }
.ts-ad-inner .ts-ad-body b { color: var(--ink-2); }
.ts-ad-inner .ts-ad-up {
  display: block; margin-top: 5px; font-size: 11.5px; color: var(--brand); font-weight: 700; text-decoration: none;
}
.ts-ad-inner .ts-ad-up:hover { text-decoration: underline; }

/* ---------- MODALS (signup wall + upgrade share a shell) ---------- */
.ts-scrim {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(12,19,34,.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.ts-scrim.open { opacity: 1; pointer-events: auto; }
.ts-modal {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 540px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateY(14px) scale(.98); transition: transform .28s cubic-bezier(.2,.8,.25,1);
  max-height: 92vh; overflow-y: auto;
}
.ts-scrim.open .ts-modal { transform: none; }
.ts-modal-top { position: relative; padding: 22px 28px 20px; color: #fff; text-align: center; }
.ts-modal.signup .ts-modal-top { background: linear-gradient(135deg, #2c6cb0, #3788d8); }
.ts-modal.upgrade .ts-modal-top { background: linear-gradient(135deg, #2c6cb0, #7c3aed); }
.ts-modal-top .ts-close {
  position: absolute; right: 14px; top: 14px; width: 30px; height: 30px; border-radius: 8px;
  border: 0; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center;
}
.ts-modal-top .ts-close:hover { background: rgba(255,255,255,.28); }
.ts-modal-top .ts-m-ic { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 15px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.ts-modal-top h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.ts-modal-top p { margin: 8px auto 0; font-size: 14px; opacity: .92; max-width: 40ch; line-height: 1.5; }

.ts-modal-body { padding: 20px 28px 24px; }
.ts-feat { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 16px; }
.ts-feat li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.ts-feat li svg { flex: 0 0 17px; margin-top: 1px; }
.ts-modal.signup .ts-feat li svg { color: var(--brand); }
.ts-modal.upgrade .ts-feat li svg { color: var(--violet); }

/* signup form */
.ts-auth { display: flex; flex-direction: column; gap: 10px; }
.ts-btn-google {
  height: 46px; border-radius: 11px; border: 1px solid var(--border-strong); background: #fff;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer;
}
.ts-btn-google:hover { background: var(--surface-2); }
.ts-or { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }
.ts-or::before, .ts-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.ts-email-row { display: flex; gap: 8px; }
.ts-email-row input {
  flex: 1; height: 46px; border-radius: 11px; border: 1px solid var(--border-strong);
  padding: 0 14px; font-size: 14px; font-family: inherit; color: var(--ink); min-width: 0;
}
.ts-email-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-softer); }
.ts-email-row button {
  height: 46px; padding: 0 18px; border-radius: 11px; border: 0; white-space: nowrap;
  background: linear-gradient(180deg, #4a99e6, #2c6cb0); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
}

/* upgrade CTA */
.ts-cta { display: flex; gap: 10px; }
.ts-cta a, .ts-cta button {
  flex: 1; min-height: 50px; text-align: center; border-radius: 12px;
  font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
  transition: transform .12s ease, box-shadow .2s ease, background .15s ease;
}
.ts-cta .fill { background: linear-gradient(180deg, #8b5cf6, #7c3aed); color: #fff; box-shadow: 0 10px 24px -8px rgba(124,58,237,.6); }
.ts-cta .fill:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -10px rgba(124,58,237,.7); }
.ts-cta .fill small { font-size: 11px; font-weight: 600; opacity: .82; margin-top: 2px; }
.ts-cta .ghost { border: 1px solid var(--border); color: var(--ink-2); background: #fff; flex: 0 0 auto; padding: 0 20px; }

/* PRO pill in header */
.ts-pro-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  background: rgba(255,255,255,.2); color: #fff;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}

/* contextual hero benefit */
.ts-perk {
  display: flex; align-items: flex-start; gap: 13px;
  background: linear-gradient(135deg, var(--violet-soft), #faf5ff);
  border: 1px solid #ead8fb;
  border-radius: 13px; padding: 14px 16px; margin-bottom: 16px;
}
.ts-perk-ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; background: #fff; color: var(--violet); display: grid; place-items: center; box-shadow: 0 4px 10px -4px rgba(124,58,237,.35); }
.ts-perk { margin-bottom: 13px; }
.ts-perk-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ts-perk-body b { font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.ts-perk-body span { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }

/* price framing */
.ts-price-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 13px;
  background: var(--surface-3); margin-bottom: 15px;
}
.ts-price-amt { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.ts-price-amt span { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.ts-price-meta { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ts-price-day { font-size: 13.5px; color: var(--ink-2); }
.ts-price-day b { color: var(--green); font-weight: 800; }
.ts-price-note { font-size: 11.5px; color: var(--muted); }
.ts-save-pill {
  background: var(--green); color: #fff; font-weight: 800; font-size: 11px;
  letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 4px 10px -4px rgba(17,157,91,.5);
}
.ts-price-was { font-size: 11.5px; color: var(--muted); }
.ts-price-was s { color: var(--muted-2); }

.ts-feat-head { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--muted-2); text-transform: uppercase; margin-bottom: 11px; }

/* social proof + guarantee */
.ts-proof { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.ts-proof b { color: var(--ink); font-weight: 800; }
.ts-stars { display: inline-flex; gap: 1px; }
.ts-guarantee {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 10px; padding: 9px; border-radius: 10px;
  background: var(--green-soft); color: var(--green);
  font-size: 12px; font-weight: 700;
}

.ts-modal-foot { text-align: center; margin-top: 14px; font-size: 12px; color: var(--muted); }
.ts-modal-foot b { color: var(--ink-2); }
.ts-modal-foot a { color: var(--brand); font-weight: 700; text-decoration: none; }
.ts-modal-foot a:hover { text-decoration: underline; }
.ts-alt { text-align: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.ts-alt a { color: var(--violet); font-weight: 700; text-decoration: none; }
.ts-alt a:hover { text-decoration: underline; }

/* ---------- DEMO TIER-PREVIEW SWITCHER ---------- */
.ts-switch {
  position: fixed; left: 16px; bottom: 16px; z-index: 250;
  background: var(--ink); color: #fff; border-radius: 13px;
  box-shadow: 0 18px 40px -16px rgba(15,23,42,.5);
  padding: 9px 11px; font-size: 12px;
  display: flex; flex-direction: column; gap: 7px; max-width: 230px;
}
.ts-switch .ts-sw-lbl { font-size: 9px; font-weight: 800; letter-spacing: .12em; color: #9aa3b8; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.ts-switch .ts-sw-lbl svg { opacity: .8; }
.ts-switch .ts-seg { display: flex; background: rgba(255,255,255,.08); border-radius: 9px; padding: 3px; gap: 2px; }
.ts-switch .ts-seg button {
  flex: 1; border: 0; background: transparent; color: #c4cbd9; font-weight: 700; font-size: 11.5px;
  padding: 6px 9px; border-radius: 7px; cursor: pointer; font-family: inherit; transition: background .15s, color .15s;
}
.ts-switch .ts-seg button:hover { color: #fff; }
.ts-switch .ts-seg button.on { background: #fff; color: var(--ink); }
.ts-switch .ts-sw-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #9aa3b8; }
.ts-switch .ts-sw-foot b { color: #fff; }
.ts-switch .ts-reset { background: none; border: 0; color: #9ec5ee; font-weight: 700; font-size: 11px; cursor: pointer; padding: 0; font-family: inherit; }
.ts-switch .ts-reset:hover { color: #fff; }
.ts-switch.collapsed { padding: 8px; cursor: pointer; }
.ts-switch.collapsed > *:not(.ts-sw-lbl) { display: none; }
.ts-switch.collapsed .ts-sw-lbl { margin: 0; }

@media (max-width: 640px) {
  .ts-feat { grid-template-columns: 1fr; }
  .ts-switch { left: 8px; bottom: 8px; right: 8px; max-width: none; }
  .ts-ad { padding: 0 14px; }
}

/* =========================================================
   AI Image Detector — page styles
   Depends on landing.css tokens (--brand, --ink, --red, etc.)
   ========================================================= */

/* ---------- HERO (matches tools.html) ---------- */
.page-hero {
  position: relative;
  padding: 76px 32px 44px;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(55,136,216,.10), transparent 70%),
    linear-gradient(180deg, #f7f9fd 0%, #fff 100%);
  text-align: center;
  overflow: hidden;
}
.page-hero h1 {
  margin: 16px auto 0;
  font-size: clamp(36px, 5.2vw, 56px);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.04;
  max-width: 16ch; text-wrap: balance;
}
.page-hero h1 .italic {
  font-family: "Instrument Serif", serif;
  font-style: italic; font-weight: 400;
  background: linear-gradient(135deg, var(--brand) 0%, var(--violet) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero .lead {
  margin: 20px auto 0; font-size: 18px; line-height: 1.55;
  color: var(--muted); max-width: 54ch;
}
.page-hero .qb {
  margin-top: 24px; display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.page-hero .qb span {
  padding: 7px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}
.page-hero .qb span b { color: var(--brand); }

/* ---------- STUDIO SHELL ---------- */
.studio-wrap { max-width: 1180px; margin: -16px auto 0; padding: 0 32px 10px; position: relative; z-index: 2; }
.studio {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  /* no overflow:hidden so the left preview can use position:sticky */
}
.studio-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fbfcfe, #fff);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.studio-head .sh-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.studio-head .sh-ic {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px;
  background: var(--brand-softer); color: var(--brand);
  display: grid; place-items: center;
}
.studio-head .sh-title { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.studio-head .sh-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* usage meter */
.usage { display: flex; align-items: center; gap: 10px; }
.usage .u-text { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.usage .u-text b { color: var(--ink); }
.usage .u-bar { width: 92px; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.usage .u-bar > i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--brand), #5aa3e8); border-radius: 999px; transition: width .4s ease; }
.usage.low .u-bar > i { background: linear-gradient(90deg, var(--amber), #f59e0b); }
.usage.out .u-bar > i { background: linear-gradient(90deg, var(--red), #f43f5e); }

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: stretch;
}

/* ---------- LEFT: INPUT ---------- */
.studio-left { padding: 20px; border-right: 1px solid var(--border); min-width: 0; border-bottom-left-radius: var(--radius-lg); }
/* keep the image + controls in view while the result column scrolls */
.left-sticky { position: sticky; top: 80px; }

.dropzone {
  position: relative;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-3);
  min-height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 12px; padding: 28px;
  transition: border-color .2s ease, background .2s ease;
  cursor: pointer;
}
.dropzone:hover { border-color: var(--brand); background: var(--brand-softer); }
.dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone .dz-ic {
  width: 56px; height: 56px; border-radius: 16px;
  background: #fff; border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.dropzone h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.dropzone p { margin: 0; font-size: 13px; color: var(--muted); max-width: 36ch; line-height: 1.5; }
.dropzone .dz-btn {
  margin-top: 2px; height: 38px; padding: 0 16px; border-radius: 10px;
  background: linear-gradient(180deg, #4a99e6, #2c6cb0); color: #fff;
  border: 0; font-weight: 700; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow: 0 4px 10px rgba(55,136,216,.22);
}
.dz-formats { font-size: 11.5px; color: var(--muted-2); }
.dz-samples { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.dz-samples button {
  font-size: 12px; font-weight: 700; color: var(--ink-2);
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 12px; display: inline-flex; align-items: center; gap: 6px;
}
.dz-samples button:hover { border-color: var(--brand); color: var(--brand); }
.dz-samples button .sw { width: 16px; height: 16px; border-radius: 4px; object-fit: cover; }

/* preview stage */
.stage { position: relative; border-radius: var(--radius); overflow: hidden; background: #0c1322; border: 1px solid var(--border); }
.stage img.preview { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.stage .heat {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transition: opacity .35s ease;
  mix-blend-mode: screen;
}
.stage.show-heat .heat { opacity: .82; }
.stage .scanline {
  position: absolute; left: 0; right: 0; height: 130px; top: -140px;
  background: linear-gradient(180deg, transparent, rgba(74,153,230,.55), transparent);
  opacity: 0;
}
.stage.scanning .scanline { opacity: 1; animation: scanmove 1.5s ease-in-out infinite; }
@keyframes scanmove { 0% { top: -140px; } 100% { top: 100%; } }
.stage .stage-tag {
  position: absolute; left: 10px; top: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 7px;
  background: rgba(12,19,34,.72); color: #fff; backdrop-filter: blur(6px);
}

.stage-tools { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.stage-tools .st-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 12px; position: relative;
}
.stage-tools .st-toggle.pro { padding-right: 34px; }
.stage-tools .st-toggle .pro-tag {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 9px; font-weight: 800; letter-spacing: .04em;
  background: var(--violet-soft); color: var(--violet); padding: 2px 5px; border-radius: 4px;
}
.stage-tools .st-toggle.on { border-color: var(--brand); color: var(--brand); background: var(--brand-softer); }

/* thumbnail queue */
.queue { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.queue .q-thumb {
  position: relative; width: 54px; height: 54px; border-radius: 9px; overflow: hidden;
  border: 2px solid var(--border); cursor: pointer; flex: 0 0 auto; background: #0c1322;
}
.queue .q-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.queue .q-thumb.active { border-color: var(--brand); }
.queue .q-thumb .q-dot {
  position: absolute; right: 3px; bottom: 3px; width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.1);
}
.queue .q-thumb .q-x {
  position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 5px;
  background: rgba(12,19,34,.72); color: #fff; border: 0; display: grid; place-items: center;
  font-size: 11px; line-height: 1; opacity: 0; transition: opacity .15s;
}
.queue .q-thumb:hover .q-x { opacity: 1; }
.queue .q-add {
  width: 54px; height: 54px; border-radius: 9px; border: 2px dashed var(--border-strong);
  background: var(--surface-3); color: var(--muted); display: grid; place-items: center; flex: 0 0 auto;
}
.queue .q-add:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- RIGHT: RESULT ---------- */
.studio-right { padding: 20px; min-width: 0; background: var(--surface-3); border-bottom-right-radius: var(--radius-lg); }
.rp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rp-title { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--muted-2); }
.rp-badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
  padding: 4px 9px; border-radius: 6px; background: var(--surface-2); color: var(--muted);
}
.rp-badge.scanning { background: var(--brand-softer); color: var(--brand); }
.rp-badge.done { background: var(--green-soft); color: var(--green); }

/* empty / idle */
.rp-idle { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 360px; gap: 12px; color: var(--muted); }
.rp-idle .ri-ic { width: 60px; height: 60px; border-radius: 16px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted-2); }
.rp-idle h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink-2); }
.rp-idle p { margin: 0; font-size: 13px; max-width: 32ch; line-height: 1.5; }

/* scanning pipeline */
.scan-pipe { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.scan-step { display: flex; align-items: center; gap: 12px; padding: 9px 2px; }
.scan-step .ic {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%;
  display: grid; place-items: center; border: 2px solid var(--border-strong);
  color: var(--muted-2); background: #fff;
  transition: background .3s, border-color .3s, color .3s;
}
.scan-step.active .ic { border-color: var(--brand); color: var(--brand); }
.scan-step.done .ic { background: var(--green); border-color: var(--green); color: #fff; }
.scan-step .lbl { font-size: 13.5px; font-weight: 600; color: var(--muted-2); transition: color .3s; }
.scan-step.active .lbl { color: var(--ink); }
.scan-step.done .lbl { color: var(--ink-2); }
.scan-spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-pbar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 14px; }
.scan-pbar > i { display: block; height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #5aa3e8); transition: width .45s ease; }

/* verdict block */
.verdict { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.verdict.ai { background: var(--red-soft); border-color: #f6c9d3; }
.verdict.human { background: var(--green-soft); border-color: #b5e4c8; }
.verdict.maybe { background: var(--amber-soft); border-color: #f4d58a; }
.ring { position: relative; width: 96px; height: 96px; flex: 0 0 96px; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring .ring-bg { stroke: rgba(15,23,42,.08); }
.ring .ring-fg { stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2,.75,.25,1); }
.ring .ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .ring-num b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.ring .ring-num small { font-size: 9.5px; color: var(--muted); letter-spacing: .06em; margin-top: 3px; }
.verdict .v-copy { min-width: 0; }
.verdict .v-label { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.verdict.ai .v-label { color: var(--red); }
.verdict.human .v-label { color: var(--green); }
.verdict.maybe .v-label { color: #b45309; }
.verdict .v-desc { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }

/* result blocks */
.rblock { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-top: 12px; position: relative; }
.rblock > h4 { margin: 0 0 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.rblock > h4 .h-ic { color: var(--brand); display: inline-grid; place-items: center; }

/* generator breakdown bars */
.gen-row { display: grid; grid-template-columns: 116px 1fr 42px; align-items: center; gap: 10px; padding: 5px 0; }
.gen-row .g-name { font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.gen-row .g-name .g-dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 9px; }
.gen-row .g-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.gen-row .g-track > i { display: block; height: 100%; width: 0%; border-radius: 999px; transition: width .9s cubic-bezier(.2,.75,.25,1); }
.gen-row .g-val { font-size: 12px; font-weight: 800; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

/* forensic signals */
.sig { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.sig:last-child { border-bottom: 0; }
.sig .s-ic { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px; display: grid; place-items: center; margin-top: 1px; }
.sig .s-ic.flag { background: var(--red-soft); color: var(--red); }
.sig .s-ic.ok { background: var(--green-soft); color: var(--green); }
.sig .s-ic.warn { background: var(--amber-soft); color: #b45309; }
.sig .s-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sig .s-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.sig .s-desc { font-size: 12px; color: var(--muted); line-height: 1.45; }
.sig .s-score { font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sig .s-score.flag { color: var(--red); }
.sig .s-score.ok { color: var(--green); }
.sig .s-score.warn { color: #b45309; }

/* metadata table */
.meta-tbl { width: 100%; border-collapse: collapse; }
.meta-tbl tr { border-bottom: 1px solid var(--border); }
.meta-tbl tr:last-child { border-bottom: 0; }
.meta-tbl td { padding: 8px 0; font-size: 12.5px; vertical-align: top; }
.meta-tbl td.k { color: var(--muted); width: 44%; }
.meta-tbl td.v { color: var(--ink); font-weight: 600; text-align: right; }
.meta-tbl td.v.miss { color: var(--muted-2); font-style: italic; font-weight: 500; }
.meta-tbl td.v .pill-c2pa { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; }
.pill-c2pa.found { background: var(--amber-soft); color: #b45309; }
.pill-c2pa.none { background: var(--surface-2); color: var(--muted); }

/* Pro lock overlay */
.rblock.locked .lock-body { filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; }
.lock-over {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,.78));
}
.lock-over .lo-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; }
.lock-over h5 { margin: 0; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.lock-over p { margin: 0; font-size: 12px; color: var(--muted); max-width: 30ch; line-height: 1.45; }
.lock-over .lo-btn {
  margin-top: 4px; height: 34px; padding: 0 14px; border-radius: 9px; border: 0;
  background: linear-gradient(180deg, #8b5cf6, #7c3aed); color: #fff; font-weight: 700; font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 4px 12px rgba(124,58,237,.28);
}

/* result actions */
.rp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.rp-actions .btn { height: 38px; }
.rp-actions .btn.pro-out { border-color: #e4d5fb; color: var(--violet); position: relative; }
.rp-actions .btn.pro-out .pro-tag { font-size: 9px; font-weight: 800; background: var(--violet-soft); color: var(--violet); padding: 1px 5px; border-radius: 4px; margin-left: 2px; }

/* disclaimer */
.rp-note { margin-top: 12px; font-size: 11.5px; color: var(--muted-2); line-height: 1.5; display: flex; gap: 7px; }
.rp-note svg { flex: 0 0 14px; margin-top: 1px; }

/* ---------- WHAT WE ANALYZE GRID ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1180px; margin: 0 auto; }
.feat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.feat-card .fc-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-softer); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.feat-card h4 { margin: 0 0 7px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.feat-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.feat-card .fc-pro { display: inline-block; margin-top: 12px; font-size: 10px; font-weight: 800; letter-spacing: .04em; background: var(--violet-soft); color: var(--violet); padding: 3px 7px; border-radius: 5px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1000px; margin: 0 auto; }
.step { text-align: center; padding: 8px; }
.step .s-num { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; box-shadow: 0 8px 20px -8px rgba(55,136,216,.5); }
.step h4 { margin: 0 0 7px; font-size: 17px; font-weight: 800; }
.step p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* generators strip */
.gen-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.gen-strip .gchip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--ink-2);
}
.gen-strip .gchip .gc-dot { width: 9px; height: 9px; border-radius: 3px; }

/* ---------- PRICING TEASER ---------- */
.price-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 880px; margin: 0 auto; }
.price-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1080px; margin: 0 auto; align-items: stretch; }
.price-toggle { display: inline-flex; gap: 4px; margin: 0 auto 24px; background: var(--surface-2); border-radius: 11px; padding: 4px; }
.price-toggle button { border: 0; background: transparent; padding: 8px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-family: inherit; transition: background .15s, color .15s; }
.price-toggle button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.price-toggle .sv { font-size: 10px; font-weight: 800; letter-spacing: .03em; background: var(--green-soft); color: var(--green); padding: 2px 6px; border-radius: 5px; }
.price-toggle button.on .sv { background: var(--green); color: #fff; }
.price-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; position: relative; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease; }
.price-card:not(.pro):hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.price-card .pc-sub { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.4; }
.price-card.pro { border-color: var(--violet); box-shadow: 0 20px 50px -24px rgba(124,58,237,.4); }
.price-card .pc-tag { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.price-card.pro .pc-tag { color: var(--violet); }
.price-card .pc-price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; }
.price-card .pc-price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-card .pc-annual { font-size: 12px; font-weight: 600; color: var(--green); margin: 2px 0 0; }
.price-card .pc-annual b { font-weight: 800; }
.price-card ul { list-style: none; margin: 18px 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.price-card li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.price-card li svg { flex: 0 0 16px; margin-top: 2px; color: var(--green); }
.price-card li.off { color: var(--muted-2); }
.price-card li.off svg { color: var(--muted-2); }
.price-card .pc-cta { display: block; text-align: center; height: 44px; line-height: 44px; border-radius: 11px; font-weight: 700; font-size: 14px; text-decoration: none; margin-top: auto; }
.price-card .pc-cta.ghost { border: 1px solid var(--border); color: var(--ink-2); }
.price-card .pc-cta.fill { background: linear-gradient(180deg, #4a99e6, #2c6cb0); color: #fff; box-shadow: 0 8px 20px -8px rgba(55,136,216,.55); }
.price-card .pc-ribbon { position: absolute; top: -11px; right: 24px; background: var(--violet); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }

/* ---------- UPGRADE MODAL ---------- */
.modal-scrim {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12,19,34,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 540px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateY(14px) scale(.98); transition: transform .28s cubic-bezier(.2,.8,.25,1);
  max-height: 92vh; overflow-y: auto;
}
.modal-scrim.open .modal { transform: none; }
.modal-top { position: relative; padding: 26px 28px 22px; background: linear-gradient(135deg, #2c6cb0, #7c3aed); color: #fff; text-align: center; }
.modal-top .m-close { position: absolute; right: 14px; top: 14px; width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; }
.modal-top .m-close:hover { background: rgba(255,255,255,.28); }
.modal-top .m-ic { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 15px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.modal-top h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.modal-top p { margin: 8px auto 0; font-size: 14px; opacity: .92; max-width: 38ch; line-height: 1.5; }
.modal-body { padding: 22px 28px 26px; }
.modal-body .feat-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 16px; }
.modal-body .feat-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.modal-body .feat-list li svg { flex: 0 0 17px; margin-top: 1px; color: var(--violet); }
.modal-cta { display: flex; gap: 10px; }
.modal-cta a { flex: 1; height: 46px; line-height: 46px; text-align: center; border-radius: 11px; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.modal-cta a.fill { background: linear-gradient(180deg, #8b5cf6, #7c3aed); color: #fff; box-shadow: 0 8px 20px -8px rgba(124,58,237,.5); }
.modal-cta a.ghost { border: 1px solid var(--border); color: var(--ink-2); flex: 0 0 auto; padding: 0 20px; }
.modal-foot { text-align: center; margin-top: 14px; font-size: 12px; color: var(--muted); }
.modal-foot b { color: var(--ink-2); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); z-index: 210;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 11px 18px; border-radius: 10px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px) {
  .studio-grid { grid-template-columns: 1fr; }
  .left-sticky { position: static; top: auto; }
  .studio-left { border-right: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 640px) {
  .studio-wrap { padding: 0 14px 10px; }
  .studio-left, .studio-right { padding: 14px; }
  .feat-grid { grid-template-columns: 1fr; }
  .price-2 { grid-template-columns: 1fr; }
  .price-3 { grid-template-columns: 1fr; }
  .modal-body .feat-list { grid-template-columns: 1fr; }
  .studio-head { flex-wrap: wrap; }
  .gen-row { grid-template-columns: 96px 1fr 38px; }
  .verdict { flex-direction: column; text-align: center; }
}


/* ===== production additions (image-detector engine) ===== */
.rp-msg { padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); text-align: center; }
.rp-msg.warn { background: var(--amber-soft); border-color: #fde68a; }
.rp-msg h4 { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: var(--ink); }
.rp-msg p { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.sample-note { margin-top: 14px; padding: 10px 14px; background: var(--amber-soft); border: 1px solid #fde68a; border-radius: 10px; font-size: 12px; color: #92600a; text-align: center; }
.rblock .lock-desc { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
