/* Auto-Guard: one stylesheet for the popup, the stop page and the web app (the same file ships in web/ and extension/). */
:root {
  --bg: #f6f5f1;
  --bg-2: #ecebe5;
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --hair: rgba(17, 24, 39, 0.08);
  --hair-strong: rgba(17, 24, 39, 0.14);
  --ink: #0f1419;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --emerald: #10b981;
  --emerald-deep: #047857;
  --emerald-glow: rgba(16, 185, 129, 0.28);
  --slate-glow: rgba(120, 113, 108, 0.16);
  --amber: #b45309;
  --amber-soft: rgba(217, 119, 6, 0.12);
  --track-off: #d6d3cd;
  --knob: #ffffff;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 24px 60px -28px rgba(15, 20, 25, 0.28), 0 2px 6px -2px rgba(15, 20, 25, 0.06);
  --radius: 28px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07090b;
    --bg-2: #0d1114;
    --glass: rgba(22, 26, 30, 0.62);
    --glass-strong: rgba(28, 33, 38, 0.86);
    --hair: rgba(255, 255, 255, 0.07);
    --hair-strong: rgba(255, 255, 255, 0.13);
    --ink: #f3f4f1;
    --ink-2: #b4bab5;
    --ink-3: #8a918c;
    --emerald: #34d399;
    --emerald-deep: #10b981;
    --emerald-glow: rgba(52, 211, 153, 0.22);
    --slate-glow: rgba(148, 163, 184, 0.10);
    --amber: #fbbf24;
    --amber-soft: rgba(251, 191, 36, 0.12);
    --track-off: #2a2f34;
    --knob: #f3f4f1;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 70px -30px rgba(0, 0, 0, 0.8), 0 2px 8px -2px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { overflow-x: clip; }
body {
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 700px at 50% -10%, var(--bg-2), var(--bg) 60%) fixed, var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 10px; }

/* ambient glow behind everything: emerald when protected, warm slate when paused */
.ambient {
  position: fixed; inset: -20% -10% auto; height: 80vh; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, var(--slate-glow), transparent 70%);
  transition: background 900ms var(--ease), opacity 900ms var(--ease);
}
[data-state="on"] .ambient { background: radial-gradient(closest-side, var(--emerald-glow), transparent 72%); }
[data-state="stop"] .ambient { background: radial-gradient(closest-side, var(--amber-soft), transparent 72%); }

.shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 56px 20px 32px; }
.brandline { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; font-size: 15px; margin-bottom: 40px; }
.mark { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: linear-gradient(145deg, var(--emerald), var(--emerald-deep)); box-shadow: 0 4px 14px -4px var(--emerald-glow); }
.mark svg { width: 13px; height: 13px; }

.card {
  width: 100%; max-width: 440px; padding: 40px 32px 28px; text-align: center;
  background: var(--glass); border: 1px solid var(--hair); border-radius: var(--radius); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%);
}
.stack { width: 100%; max-width: 440px; display: grid; gap: 16px; }
.panel { padding: 22px 22px 18px; text-align: left; background: var(--glass); border: 1px solid var(--hair); border-radius: 22px; -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); }
.panel h2 { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-3); text-transform: uppercase; }
.panel p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* the one switch */
.switch {
  --w: 136px; --h: 78px; --pad: 7px; --k: calc(var(--h) - var(--pad) * 2);
  position: relative; width: var(--w); height: var(--h); margin: 4px auto 30px; padding: 0; border: 1px solid var(--hair-strong);
  border-radius: 999px; background: var(--track-off); cursor: pointer; display: block;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: background 520ms var(--ease), box-shadow 520ms var(--ease), transform 200ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.switch:active { transform: scale(0.97); }
.switch::after {
  content: ""; position: absolute; top: var(--pad); left: var(--pad); width: var(--k); height: var(--k); border-radius: 50%;
  background: var(--knob); box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: transform 620ms var(--spring), width 240ms var(--ease);
}
.switch:active::after { width: calc(var(--k) + 10px); }
.switch[aria-checked="true"] {
  background: linear-gradient(160deg, var(--emerald), var(--emerald-deep));
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35), 0 10px 34px -8px var(--emerald-glow), 0 0 0 6px color-mix(in srgb, var(--emerald) 10%, transparent);
}
.switch[aria-checked="true"]::after { transform: translateX(calc(var(--w) - var(--k) - var(--pad) * 2 - 2px)); }
.switch[aria-checked="true"]:active::after { transform: translateX(calc(var(--w) - var(--k) - var(--pad) * 2 - 12px)); }

.headline { text-wrap: balance; margin: 0; font-size: 30px; line-height: 1.15; font-weight: 650; letter-spacing: -0.025em; }
.sub { text-wrap: balance; margin: 10px auto 0; max-width: 36ch; color: var(--ink-2); font-size: 15px; }
.counter {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 8px 14px 8px 12px; border-radius: 999px;
  border: 1px solid var(--hair); background: var(--glass-strong); font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}
.dots { display: inline-flex; gap: 4px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hair-strong); transition: background 400ms var(--ease), transform 500ms var(--spring); }
.dot.full { background: var(--emerald); transform: scale(1.05); }

.list { list-style: none; margin: 12px 0 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.list li:first-child { border-top: 0; }
.list .what { flex: 1; min-width: 0; }
.list .what b { display: block; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .what span { color: var(--ink-3); font-size: 13px; }
.list .when { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.pip { width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); }
.pip.ok { background: color-mix(in srgb, var(--emerald) 14%, transparent); color: var(--emerald-deep); }
.pip svg { width: 14px; height: 14px; }
.empty { margin-top: 10px; color: var(--ink-3); font-size: 14px; }

.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.pack { display: grid; gap: 8px; padding: 14px 10px 10px; text-align: center; border: 1px solid var(--hair); border-radius: 16px; background: var(--glass-strong); transition: transform 300ms var(--spring), border-color 300ms var(--ease); }
.pack:hover { transform: translateY(-2px); border-color: var(--hair-strong); }
.pack .price { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.pack .tag { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.pack.pop { border-color: color-mix(in srgb, var(--emerald) 45%, transparent); }
.rails { display: grid; gap: 6px; }
.rail { display: block; padding: 7px 0; border-radius: 10px; font-size: 12.5px; font-weight: 550; text-decoration: none; border: 1px solid var(--hair); background: transparent; transition: background 200ms var(--ease); }
.rail:hover { background: var(--hair); }
.rail.primary { background: var(--ink); color: var(--bg); border-color: transparent; }
.rail.primary:hover { opacity: 0.9; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 14px;
  border: 1px solid transparent; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
  transition: transform 300ms var(--spring), opacity 200ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--hair-strong); }
.btn.green { background: linear-gradient(160deg, var(--emerald), var(--emerald-deep)); color: #fff; box-shadow: 0 10px 28px -10px var(--emerald-glow); }
.btn[disabled] { opacity: 0.45; cursor: default; transform: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.link { background: none; border: 0; padding: 4px; color: var(--ink-3); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.note { margin-top: 14px; color: var(--ink-3); font-size: 12.5px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 13.5px; transition: all 420ms var(--spring); pointer-events: none; z-index: 5; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.foot { margin-top: auto; padding-top: 40px; font-size: 12px; color: var(--ink-3); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink-2); }

/* stop page */
.stop-icon { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 20px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); }
.stop-icon svg { width: 30px; height: 30px; }
.host { display: inline-block; margin-top: 16px; padding: 6px 12px; border-radius: 10px; background: var(--glass-strong); border: 1px solid var(--hair); font-size: 13.5px; font-weight: 550; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.why { text-wrap: balance; margin: 18px auto 0; max-width: 34ch; font-size: 16px; color: var(--ink); }
.spinner { width: 34px; height: 34px; margin: 0 auto 22px; border-radius: 50%; border: 3px solid var(--hair-strong); border-top-color: var(--emerald); animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 12.5px; color: var(--ink-3); }
.seal svg { width: 14px; height: 14px; color: var(--emerald-deep); }

/* popup sizing */
body.popup { width: 360px; min-height: 0; }
body.popup .shell { min-height: 0; padding: 26px 18px 16px; }
body.popup .brandline { margin-bottom: 22px; }
body.popup .card { padding: 30px 22px 22px; box-shadow: none; }
body.popup .headline { font-size: 25px; }
body.popup .switch { --w: 116px; --h: 66px; margin-bottom: 24px; }
body.popup .foot { padding-top: 18px; }

.fade-in { animation: rise 700ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
  .shell { padding-top: 36px; }
  .brandline { margin-bottom: 28px; }
  .card { padding: 34px 22px 24px; }
  .headline { font-size: 27px; }
  .packs { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* web app: below the switch, three quiet panels side by side on wide screens */
.below { width: 100%; max-width: 1080px; display: grid; gap: 16px; margin-top: 18px; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.below > .panel { width: 100%; max-width: 440px; }
@media (min-width: 1024px) {
  .below { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; margin-top: 28px; }
  .below > .panel { max-width: none; height: 100%; }
}
.privacy { max-width: 440px; margin: 22px auto 0; text-align: center; color: var(--ink-3); font-size: 13px; }
.install { margin-top: 26px; display: grid; gap: 10px; justify-items: center; }
.panel .btn { margin-top: 14px; width: 100%; }

/* landing hero: the promise above the switch */
.hero { width: 100%; max-width: 820px; text-align: center; margin: -8px 0 24px; }
.hero h1 { margin: 0; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.06; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.hero p { margin: 14px auto 0; max-width: 64ch; font-size: clamp(16px, 1.4vw, 17.5px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.status-title { font-size: 26px; }
.trial-note { margin: 14px auto 0; max-width: 32ch; color: var(--ink-3); font-size: 13px; text-wrap: balance; }

/* how it works: three calm glass pills right below the switch */
.steps { width: 100%; max-width: 1080px; list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.steps li { width: 100%; max-width: 440px; display: grid; gap: 4px; padding: 16px 20px; text-align: left; background: var(--glass); border: 1px solid var(--hair); border-radius: 20px; -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); }
.steps b { font-weight: 600; letter-spacing: -0.01em; }
.steps span { color: var(--ink-2); font-size: 14px; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
  .steps li { max-width: none; height: 100%; align-content: start; }
}
.example { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--hair); border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: 1px; }

/* install drawer: a sheet that rises from the bottom */
.drawer { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto auto 12px; padding: 28px 24px 22px; border: 1px solid var(--hair); border-radius: 28px; background: var(--glass-strong); color: var(--ink); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(30px) saturate(150%); backdrop-filter: blur(30px) saturate(150%); }
.drawer[open] { animation: sheet 520ms var(--spring) both; }
.drawer::backdrop { background: rgba(15, 20, 25, 0.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes sheet { from { opacity: 0; transform: translateY(40px) scale(0.98); } to { opacity: 1; transform: none; } }
.drawer h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.drawer > p { margin: 6px 0 18px; color: var(--ink-2); font-size: 14.5px; }
.drawer ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.drawer li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--hair); border-radius: 18px; background: var(--glass); }
.drawer .num { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 650; color: #fff; background: linear-gradient(150deg, var(--emerald), var(--emerald-deep)); }
.drawer li b { display: block; font-weight: 600; }
.drawer li span { display: block; color: var(--ink-2); font-size: 14px; }
.drawer .row { margin-top: 18px; }
.drawer .mini { display: inline-flex; margin-top: 10px; min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
@media (max-width: 480px) { .drawer { padding: 24px 16px 18px; } }
@media (min-width: 1024px) {
  .hero + .card { padding-top: 28px; padding-bottom: 24px; }
  .hero + .card .switch { margin-bottom: 14px; }
  .hero + .card .install { margin-top: 18px; }
}
@media (min-width: 1024px) {
  body:has(.hero) .shell { padding-top: 36px; }
  body:has(.hero) .brandline { margin-bottom: 28px; }
}
.install .btn { text-wrap: balance; text-align: center; line-height: 1.3; padding-block: 10px; }
.install .note { text-wrap: balance; text-align: center; hyphens: none; }
