/* =========================================================
   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.
   IMPORTANT: z-index MUST be higher than .lp-nav (60) — earlier value of 55
   trapped the drawer inside the nav's stacking context, so page section
   headings underneath bled through. Background is now fully opaque white +
   soft inner shadow so it reads as a layer even on long-form pages. */
.nav-drawer {
  position: fixed;
  top: 56px;
  left: 0; right: 0;
  bottom: 0;
  background: #ffffff;
  padding: 18px 20px 32px;
  display: flex; flex-direction: column;
  gap: 4px;
  z-index: 120;
  overflow-y: auto;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .2s ease, transform .25s ease, visibility 0s linear .25s;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 -1px 0 var(--border) inset;
}
.lp-nav.open .nav-drawer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition: opacity .2s ease, transform .25s ease, visibility 0s linear 0s;
}
/* Backdrop dims the page behind the drawer so it reads as a layer on
   mobile (the white-on-white-ish hero was making the drawer feel
   transparent). Only visible when the nav is open. */
.lp-nav::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.35);
  opacity: 0;
  pointer-events: none;
  z-index: 110;
  transition: opacity .2s ease;
}
.lp-nav.open::before {
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 721px) {
  /* No drawer / backdrop on desktop — hamburger is hidden there. */
  .lp-nav::before { display: none; }
}
.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-quick .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.det-quick .dot-ai     { background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.15); }
.det-quick .dot-mixed  { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,.15); }
.det-quick .dot-human  { background: #10b981; box-shadow: 0 0 0 2px rgba(16,185,129,.15); }

/* Sticky mobile CTA — appears after the first viewport of scroll so the
   primary signup action is always one tap away on phones. Hidden by
   default and only shown at <=640 with body[data-scrolled="1"]. */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px;
  z-index: 90;
  display: none;
  align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 12px 16px;
  background: linear-gradient(180deg, #4a99e6, #2c6cb0);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 38px -10px rgba(15,23,42,.4);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  opacity: 0; transform: translateY(20px);
  transition: opacity .25s ease, transform .25s ease;
}
.sticky-cta .sc-txt { display: flex; flex-direction: column; line-height: 1.15; }
.sticky-cta .sc-sub { font-size: 11px; font-weight: 600; opacity: .85; margin-top: 2px; }
.sticky-cta .sc-arrow {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18); border-radius: 10px;
}
@media (max-width: 640px) {
  .sticky-cta { display: flex; }
  body[data-scrolled="1"] .sticky-cta { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
}

.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; }
/* Section header clarifying that the bars below are SENTENCE-share, not
   another reading of the headline ML probability above. Without this
   visitors compared the AI PROBABILITY ring (single ML score) to the
   AI-generated bar (% of sentences in the AI band) and called it a
   bug — QA 2026-06-02. */
.det-bk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 2px; border-bottom: 1px dashed rgba(15,23,42,.08); }
.det-bk-title { font-size: 11.5px; font-weight: 700; color: var(--ink); letter-spacing: .04em; text-transform: uppercase; }
.det-bk-sub { font-size: 10.5px; font-weight: 500; color: var(--muted-2, var(--muted)); letter-spacing: .01em; }
@media (max-width: 480px) {
  .det-bk-sub { display: none; }
}
.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 .8s ease; }
.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); }

/* Signals panel — mirrors the portal's SIGNALS section so the
   landing demo and the authenticated app feel like the same product.
   Perplexity / Burstiness / Sentence variance / Vocab range / Readability. */
.det-sig {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(15,23,42,.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.det-sig-head {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .12em;
  margin-bottom: 2px;
}
.det-sig-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  line-height: 1.3;
}
.det-sig-row .lbl { color: var(--muted-2); font-weight: 600; }
.det-sig-row .val {
  color: var(--ink); font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.det-sig-row .val.low  { color: var(--red); }
.det-sig-row .val.med  { color: #b45309; }
.det-sig-row .val.high { color: var(--green); }
.det-sig-row .val.dim  { color: var(--muted-2); font-weight: 600; }
@media (max-width: 640px) {
  .det-sig { gap: 6px; padding-top: 12px; }
  .det-sig-row { font-size: 12px; }
}

.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; }
.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;
}

/* Restore breathing room above footer columns. There's a .container
   wrapper between .footer and .footer-grid on most pages, so this
   uses a descendant selector instead of a direct-child one. */
.footer .footer-grid {
  padding-top: 56px;
}
@media (max-width: 768px) {
  .footer .footer-grid { padding-top: 40px; }
}

/* 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) {
  /* Drop backdrop-filter on mobile — per CSS spec, any element with a
     backdrop-filter creates a containing block for position:fixed descendants,
     which clamps .nav-drawer (top:56px; bottom:0) to the navbar's tiny height
     instead of the viewport. Only one drawer item ended up visible. */
  .lp-nav {
    padding: 12px 16px;
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .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; position: relative; z-index: 130; }

  /* === FULL-SCREEN MOBILE DRAWER (matches mockup) ===========================
     The drawer covers the navbar entirely (top:0). It has its own header
     (MENU eyebrow + ✕ close) + list + bottom-pinned foot (Sign in / CTA /
     tagline). Hairline divider between every menu item. */
  .nav-drawer {
    top: 0;
    padding: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    z-index: 130;
  }
  .lp-nav::before { display: none; }  /* full-screen drawer obviates the dim backdrop */

  .drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 18px 16px;
    border-bottom: 1px solid var(--border);
  }
  .drawer-eyebrow {
    font-size: 11px; font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted-2);
  }
  .drawer-close {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease;
  }
  .drawer-close:hover,
  .drawer-close:active { background: var(--surface-2); border-color: var(--border-strong); }

  .drawer-list {
    display: flex; flex-direction: column;
    padding: 4px 0;
  }
  .drawer-list a {
    position: relative;
    padding: 17px 22px;
    color: var(--ink);
    font-size: 17px; font-weight: 700;
    text-decoration: none;
    letter-spacing: -.01em;
    border-bottom: 1px solid var(--border);
    line-height: 1.2;
    transition: background .12s ease, color .12s ease;
  }
  .drawer-list a:hover,
  .drawer-list a:active { background: var(--surface-2); }
  .drawer-list a::after {
    content: '';
    position: absolute;
    right: 22px; top: 50%;
    width: 9px; height: 9px;
    border-right: 2px solid var(--muted-2);
    border-top: 2px solid var(--muted-2);
    transform: translateY(-50%) rotate(45deg);
    transition: border-color .15s ease, transform .15s ease;
  }
  .drawer-list a:hover::after,
  .drawer-list a:active::after {
    border-right-color: var(--brand);
    border-top-color: var(--brand);
    transform: translateY(-50%) rotate(45deg) translate(2px, -2px);
  }
  .drawer-list a.is-active {
    color: var(--brand);
    background: var(--brand-softer);
  }
  .drawer-list a.is-active::after {
    border-right-color: var(--brand);
    border-top-color: var(--brand);
  }

  /* Bottom-pinned CTA cluster + tagline */
  .drawer-foot {
    margin-top: auto;
    padding: 16px 22px 32px;
    display: flex; flex-direction: column;
    gap: 12px;
  }
  .drawer-foot .drawer-signin {
    display: block;
    text-align: center;
    padding: 14px 18px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    color: var(--ink);
    font-weight: 700; font-size: 15px;
    text-decoration: none;
    background: #fff;
  }
  .drawer-foot .drawer-signin:hover,
  .drawer-foot .drawer-signin:active { background: var(--surface-2); }
  .drawer-foot .drawer-cta {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #4a99e6, #2c6cb0);
    color: #fff !important;
    border-radius: 12px;
    font-weight: 700; font-size: 15px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(55,136,216,.30);
    transition: background .12s ease;
  }
  .drawer-foot .drawer-cta:hover,
  .drawer-foot .drawer-cta:active { background: linear-gradient(180deg, #5aa3e8, #3076c4); }
  .drawer-tagline {
    margin: 4px 0 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 500;
  }

  /* While the drawer is open, hide widgets that would punch through the
     top z-layer (Crisp + cookie banner sit at very high z-index values). */
  body.drawer-open .cookie-consent,
  body.drawer-open .crisp-client,
  body.drawer-open #crisp-chatbox { display: none !important; }
  .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: 52px; padding: 14px 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; }
}

/* ─── Mobile UX polish on comparison tables (added 2026-06-09) ─────────── */
/* Captions: always render above the table, consistent typography. */
.cmp-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 10px;
  font-size: 13px;
  color: #637085;
  font-weight: 600;
}

/* Scroll-shadow on the wrapper indicates scrollable content. The two
   background-attachment:local layers fade in/out as the user scrolls,
   so the user always sees a soft cue at whichever edge has overflow. */
.cmp-wrap {
  position: relative;
  background:
    linear-gradient(to right, white 30%, rgba(255,255,255,0)),
    linear-gradient(to right, rgba(15,23,42,0.06), white 70%) 0 100%,
    radial-gradient(farthest-side at 0 50%, rgba(15,23,42,0.08), rgba(0,0,0,0)),
    radial-gradient(farthest-side at 100% 50%, rgba(15,23,42,0.08), rgba(0,0,0,0)) 100% 0;
  background-repeat: no-repeat;
  background-color: white;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}

/* Swipe pill: only on small viewports below 640px, only when wrapper is
   scrollable, fades out once user starts scrolling (via .scrolled class
   that can be added by JS later, optional). */
@media (max-width: 640px) {
  .cmp-wrap {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cmp-wrap::after {
    content: "swipe to compare";
    position: sticky;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(15,23,42,0.78);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    pointer-events: none;
    white-space: nowrap;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
  }
  .cmp-wrap.scrolled::after {
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .cmp-table {
    min-width: 540px;
  }
  .cmp-table th,
  .cmp-table td {
    padding: 12px 14px;
    font-size: 13px;
  }
}

/* Very small viewports: tighten further but keep readability. */
@media (max-width: 480px) {
  .cmp-table caption {
    font-size: 12px;
  }
  .cmp-wrap::after {
    font-size: 10.5px;
  }
}

