/*
 * Full light palette on bare :root, dark only overriding it, body always painting
 * its own background. Getting that wrong is what made the extension's options page
 * render dark text on white.
 */
:root {
  color-scheme: light dark;
  --bg: #fbfaf9;
  --panel: #ffffff;
  --ink: #14131a;
  --muted: #6a6875;
  --line: rgba(20, 19, 26, 0.10);
  --accent: #6b4dff;
  --accent-ink: #ffffff;
  --ok: #0f7b4f;
  --danger: #c22b2b;
  --shadow: 0 1px 2px rgba(20, 19, 26, .04), 0 18px 40px rgba(20, 19, 26, .07);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0b10;
    --panel: #16151c;
    --ink: #f3f2f7;
    --muted: #9a97a8;
    --line: rgba(255, 255, 255, 0.11);
    --accent: #8b73ff;
    --accent-ink: #14101f;
    --ok: #45d69a;
    --danger: #ff7d7d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 24px 60px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
p { margin: 0; }
code {
  font: 500 0.88em/1 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--line);
  padding: 3px 6px;
  border-radius: 5px;
  /* A long error string must wrap rather than push the page sideways. */
  overflow-wrap: anywhere;
}

section { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 24px;
  max-width: 1000px; margin: 0 auto;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; color: inherit; text-decoration: none; letter-spacing: -0.02em; }
.mark {
  width: 25px; height: 25px; border-radius: 7px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
}
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav nav a:hover { color: var(--ink); }
.nav nav a.cta, .nav nav a.cta:hover { color: var(--accent-ink); }

/* ------------------------------------------------------------------ hero */
.hero { padding-top: 76px; padding-bottom: 42px; text-align: center; }
.eyebrow {
  color: var(--muted); font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px;
}
h1 { font-size: clamp(38px, 6.4vw, 66px); font-weight: 700; }
h1 em { font-style: normal; color: var(--accent); }
.lede { max-width: 620px; margin: 22px auto 0; color: var(--muted); font-size: 18.5px; }

.hero-cta { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 11px; }
.cta {
  display: inline-block;
  background: var(--accent); color: var(--accent-ink);
  padding: 14px 26px; border-radius: 11px;
  font-weight: 620; font-size: 16px; text-decoration: none;
  transition: transform 130ms cubic-bezier(.2,.8,.2,1), filter 130ms ease;
}
.cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cta.small { padding: 8px 15px; font-size: 14px; }
.cta.big { padding: 17px 34px; font-size: 17.5px; }
.cta.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.cta-note { color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ demo */
.demo { padding-top: 34px; padding-bottom: 20px; }
.window {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel); box-shadow: var(--shadow); overflow: hidden;
}
.chrome {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 15px; border-bottom: 1px solid var(--line);
}
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.chrome span { margin-left: 12px; color: var(--muted); font-size: 12.5px; font-family: "JetBrains Mono", monospace; }

.split { display: grid; grid-template-columns: 292px 1fr; min-height: 340px; }
.side { border-right: 1px solid var(--line); padding: 12px 10px; }
.side-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 4px 10px; font-size: 12px; }
.side-tools .muted { color: var(--muted); }

.chip {
  display: inline-block; padding: 5px 10px; border-radius: 8px;
  border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; white-space: nowrap;
}
.chip.solid { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.chip.danger { color: var(--danger); }
.chip.tiny { padding: 3px 8px; font-size: 11.5px; }

.chats { list-style: none; margin: 0; padding: 0; }
.chats li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; font-size: 14.5px;
}
.chats li:has(input:checked) { background: color-mix(in srgb, var(--accent) 11%, transparent); box-shadow: inset 2px 0 0 var(--accent); }
.chats input, .tp-row input { width: 15px; height: 15px; accent-color: var(--accent); margin: 0; flex: 0 0 auto; }
.chats span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.stage { display: grid; place-items: end center; padding: 20px; }
.bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 11px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow);
}
.bar .count { font-size: 13px; font-weight: 600; padding-right: 3px; font-variant-numeric: tabular-nums; }
.sep { width: 1px; height: 19px; background: var(--line); }

/* ----------------------------------------------------------------- claims */
.claim { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 74px; padding-bottom: 20px; }
.claim h3 { font-size: 19px; margin-bottom: 9px; }
.claim p { color: var(--muted); font-size: 15.5px; }
.proof {
  margin-top: 11px !important; padding-top: 11px; border-top: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace; font-size: 12.5px !important; color: var(--ok) !important;
}

/* -------------------------------------------------------------------- how */
.how { padding-top: 84px; }
.how h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 30px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.steps .n {
  flex: 0 0 auto; width: 27px; height: 27px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 13.5px; font-weight: 650;
}
.steps strong { display: block; margin-bottom: 3px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------------ trash */
.trash { display: grid; grid-template-columns: 1fr 400px; gap: 44px; align-items: center; padding-top: 96px; }
.trash h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.trash-copy p { color: var(--muted); font-size: 16.5px; margin-bottom: 14px; }
.fineprint {
  font-size: 14.5px !important;
  border-left: 2px solid var(--accent); padding-left: 14px; margin-top: 20px !important;
}
.fineprint strong { color: var(--ink); }

.trash-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
.tp-head { display: flex; flex-direction: column; gap: 3px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.tp-head span { color: var(--muted); font-size: 12px; }
.tp-row { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; padding: 11px 17px; }
.tp-row div { min-width: 0; }
.tp-row span { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-row em { display: block; font-style: normal; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.tp-foot { display: flex; gap: 7px; padding: 13px 17px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------- also */
.also { padding-top: 96px; }
.also h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 28px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid > div { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.grid h4 { font-size: 16px; margin-bottom: 6px; }
.grid p { color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- pricing */
.pricing { padding-top: 100px; text-align: center; }
.pricing h2 { font-size: clamp(28px, 4vw, 40px); }
.sub { color: var(--muted); margin: 14px auto 34px; max-width: 560px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
.plan { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.badge {
  position: absolute; top: -11px; left: 28px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.plan h3 { font-size: 17px; color: var(--muted); font-weight: 600; }
.price { font-size: 46px; font-weight: 700; letter-spacing: -0.03em; margin: 6px 0 20px; }
.price span { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.plan li { padding-left: 24px; position: relative; color: var(--muted); font-size: 15px; }
.plan li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 13px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.plan li strong { color: var(--ink); }
.plan .cta { display: block; text-align: center; }
.breakeven { color: var(--muted); font-size: 14.5px; margin-top: 24px; }

/* ----------------------------------------------------------------- honest */
.honest { padding-top: 96px; }
.honest h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 20px; }
.honest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.honest li {
  color: var(--muted); font-size: 15.5px;
  padding: 15px 18px; border: 1px dashed var(--line); border-radius: var(--radius);
}
.honest strong { color: var(--ink); }

/* ------------------------------------------------------------------ final */
.final { padding-top: 110px; padding-bottom: 30px; text-align: center; }
.final h2 { font-size: clamp(32px, 5vw, 52px); }
.final p { color: var(--muted); max-width: 520px; margin: 16px auto 30px; }
.final .cta-note { display: block; margin-top: 15px; }

footer { max-width: 1000px; margin: 80px auto 0; padding: 26px 24px 50px; border-top: 1px solid var(--line); }
footer p { color: var(--muted); font-size: 13.5px; max-width: 640px; }

@media (max-width: 860px) {
  .claim { grid-template-columns: 1fr; gap: 34px; }
  .trash { grid-template-columns: 1fr; gap: 30px; }
  .grid, .plans { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); }
  .stage { place-items: center; }
  .nav nav a:not(.cta) { display: none; }
}
