/* tabsmarter.com — shared styles
   Style: dark hero + warm content + mono accents (per local LLM)
   Accent: #FF6B6B coral · system fonts · zero JS deps */

:root {
  --accent: #FF6B6B;
  --accent-deep: #d94c4c;
  --accent-soft: #ffd5d5;

  --ink: #14141a;
  --ink-mute: #4f4f57;
  --ink-faint: #8a8a92;

  --paper: #FAF8F5;
  --paper-elev: #f3efe8;
  --paper-deep: #ebe6dc;

  --night: #0e0e12;
  --night-elev: #161620;
  --night-glow: rgba(255,107,107,.18);

  --border: #e5e2d8;
  --border-night: #2a2a36;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, "Cascadia Code", monospace;

  --max: 1100px;

  --shadow-soft: 0 1px 2px rgba(20,20,26,.04), 0 6px 18px rgba(20,20,26,.06);
  --shadow-deep: 0 20px 60px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-deep); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); text-decoration: underline; }

img { max-width: 100%; }

code, kbd, .mono { font-family: var(--mono); }
kbd, .kbd {
  font-family: var(--mono);
  font-size: .82em;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  background: #fff;
  color: var(--ink-mute);
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Top nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  background: rgba(14,14,18,.85);
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: #fff;
}
.nav .row { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand {
  font-weight: 700; letter-spacing: -.01em; font-size: 18px;
  display: inline-flex; align-items: center; gap: 8px;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent);
  display: inline-grid; place-items: center;
  box-shadow: 0 4px 12px rgba(255,107,107,.4);
}
.brand-mark::after {
  content: ""; display: block; width: 50%; height: 28%;
  background: #fff; border-radius: 2px;
}
.brand .accent { color: var(--accent); }
.brand a, .brand a:hover { color: inherit; text-decoration: none; }

.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  color: rgba(255,255,255,.78); font-size: 14px; font-weight: 500;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a.cta {
  background: var(--accent); color: #fff;
  padding: 7px 14px; border-radius: var(--radius-pill);
  font-weight: 600; transition: background .15s, transform .08s;
}
.nav-links a.cta:hover { background: var(--accent-deep); transform: translateY(-1px); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
}
.btn.primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 24px rgba(255,107,107,.35);
}
.btn.primary:hover { background: var(--accent-deep); transform: translateY(-1px); text-decoration: none; }
.btn.ghost { background: transparent; color: inherit; border-color: rgba(255,255,255,.18); }
.btn.ghost:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.btn.ink {
  background: var(--ink); color: #fff;
}
.btn.ink:hover { background: #000; text-decoration: none; }
.btn.lg { padding: 14px 26px; font-size: 16px; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(900px 500px at 50% -150px, var(--night-glow), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, #14141a 100%);
  color: #fff;
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.78);
  margin-bottom: 28px; font-family: var(--mono);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.h1 {
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 700; line-height: 1.04; letter-spacing: -.03em;
  margin: 0 0 20px;
}
.h1 .accent { color: var(--accent); font-style: italic; }
.subhead {
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 680px; margin: 0 auto 36px;
  color: rgba(255,255,255,.78); line-height: 1.55;
}

.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tiny { display: block; font-size: 12px; color: rgba(255,255,255,.5); margin-top: 18px; font-family: var(--mono); }

/* ========== Demo lab section (between hero and features) ========== */
.demo-section {
  background: #0e0e12;
  color: #fff;
  padding: 80px 0 96px;
  position: relative;
}
.demo-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}
.demo-section .container { position: relative; z-index: 1; }
.demo-section .section-title { color: #fff; }
.demo-section .section-lede { color: rgba(255,255,255,.65); margin: 0 auto 36px; }

.demo-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  justify-content: center;
}
.ds-btn {
  all: unset;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.7);
  transition: background .15s ease, color .15s ease;
}
.ds-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
.ds-btn.on {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,107,107,.35);
}
.ds-btn .ds-ic { font-size: 12px; opacity: .8; font-family: var(--mono); }

.demo-stage {
  position: relative;
  text-align: left;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 16px;
}
.demo-mock { display: none; position: relative; }
.demo-stage[data-view="popup"]      .demo-popup     { display: block; }
.demo-stage[data-view="manager"]    .demo-manager   { display: block; }
.demo-stage[data-view="sidepanel"]  .demo-sidepanel { display: block; }
.demo-stage[data-view="all"]        .demo-mock      { display: block; }
.demo-stage[data-view="all"] {
  align-items: flex-start;
  justify-content: center;
}

/* Reuse pg-window etc for the manager mock */

/* ===== Popup mock ===== */
.popup-window {
  width: 380px;
  background: #1a1a1d;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
}
.popup-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand-mini { font-weight: 700; font-size: 14px; color: #fff; }
.brand-mini .accent { color: var(--accent); }
.popup-search { padding: 10px 14px 6px; }
.popup-search .field {
  background: #232328;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 8px 12px;
  color: rgba(255,255,255,.4);
  font-size: 12px;
}
.popup-search .field::before { content: "🔍 "; opacity: .6; }
.popup-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px 12px 8px;
}
.paction {
  all: unset;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 56px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  font-size: 10.5px;
  font-family: var(--sans);
  text-align: center;
  position: relative;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.paction:hover { background: rgba(255,255,255,.08); border-color: rgba(255,107,107,.3); color: #fff; }
.paction .ic { font-size: 17px; line-height: 1; }
.paction .dot {
  position: absolute; top: 5px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); display: none;
}
.paction.on { background: rgba(255,107,107,.10); border-color: var(--accent); color: #fff; }
.paction.on .dot { display: block; }

.popup-quick {
  padding: 4px 12px 8px;
  max-height: 220px;
  overflow-y: auto;
}
.popup-section {
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  margin: 8px 4px 4px;
}
.popup-recent, .popup-results {
  display: flex; flex-direction: column; gap: 1px;
}
.popup-foot {
  display: flex; gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: #14141a;
}
.popup-foot button {
  all: unset; cursor: pointer;
  flex: 1;
  text-align: center;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  font-size: 12px; color: rgba(255,255,255,.8);
  transition: background .12s ease;
}
.popup-foot button:hover { background: rgba(255,255,255,.08); }
.popup-foot button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.popup-foot button.primary:hover { background: var(--accent-deep); }
.popup-foot button:not(.primary):not(:nth-child(2)) { flex: 0 0 36px; }

/* Compact tab row inside popup/sidepanel — narrower than manager rows */
.popup-recent .pg-row,
.popup-results .pg-row,
.sp-list .pg-row {
  padding: 6px 8px;
  grid-template-columns: 18px 1fr auto;
  font-size: 12px;
}
.popup-recent .pg-row .domain,
.popup-results .pg-row .domain { display: none; }

/* ===== Manager mock ===== */
.manager-window {
  width: min(900px, calc(100vw - 48px));
}
.manager-body {
  display: grid;
  grid-template-columns: 180px 1fr 200px;
  min-height: 380px;
}
.manager-nav {
  background: #14141a;
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 10px 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.mn-btn {
  all: unset;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  color: rgba(255,255,255,.65);
  font-family: var(--sans);
}
.mn-btn:hover { background: rgba(255,255,255,.05); color: #fff; }
.mn-btn.on { background: rgba(255,255,255,.08); color: #fff; }
.manager-main { display: flex; flex-direction: column; min-width: 0; }
.manager-rail {
  background: #14141a;
  border-left: 1px solid rgba(255,255,255,.06);
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 18px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
}
.rail-section { display: flex; flex-direction: column; gap: 6px; }
.rail-h {
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.4);
}
.rail-section #dm-stats { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.rail-section #dm-stats .stat-row { display: flex; justify-content: space-between; }
.rail-section #dm-stats .stat-row .label { color: rgba(255,255,255,.5); }
.rail-actions { display: flex; flex-direction: column; gap: 4px; }
.rail-actions button {
  all: unset;
  cursor: pointer;
  text-align: left;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  font-size: 12px;
  color: rgba(255,255,255,.8);
}
.rail-actions button:hover { background: rgba(255,255,255,.08); border-color: rgba(255,107,107,.3); color: #fff; }
.rail-tip { font-size: 11px; color: rgba(255,255,255,.5); line-height: 1.5; }
.rail-tip .kbd { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.7); }

@media (max-width: 880px) {
  .manager-body { grid-template-columns: 1fr; }
  .manager-nav, .manager-rail { display: none; }
}

/* ===== Side panel mock ===== */
.sidepanel-window {
  width: 280px;
  background: #1a1a1d;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
}
.sp-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sp-search { padding: 8px 12px 6px; }
.sp-search .field {
  background: #232328;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 7px 10px;
  color: rgba(255,255,255,.4);
  font-size: 12px;
}
.sp-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px 10px 8px;
}
.paction.sp {
  height: 36px;
  font-size: 0;
}
.paction.sp .ic { font-size: 16px; }
.sp-list {
  padding: 4px 6px 8px;
  display: flex; flex-direction: column; gap: 1px;
  max-height: 320px;
  overflow-y: auto;
}

.pill-mini.accent { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ========== Hero playground (mock TabSmarter Manager window) ==========
   Designed to look unmistakably like an APP WINDOW (window chrome, search,
   list of rows), NOT like Chrome's native tab strip. */
.playground {
  margin: 56px auto 0;
  user-select: none;
  max-width: 720px;
  position: relative;
}
.pg-window {
  background: #1a1a1d;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 1px 0 rgba(255,255,255,.04) inset;
  text-align: left;
}
/* Window chrome bar — traffic lights + title */
.pg-chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #232328 0%, #1d1d22 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pg-dots { display: flex; gap: 7px; }
.pg-dots .d { width: 12px; height: 12px; border-radius: 50%; }
.pg-dots .d.r { background: #ff5f57; }
.pg-dots .d.y { background: #febc2e; }
.pg-dots .d.g { background: #28c840; }
.pg-title {
  flex: 1;
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(255,255,255,.55);
  letter-spacing: -.005em;
}
.pg-title .accent { color: var(--accent); font-weight: 600; }
.pg-title .meta { color: rgba(255,255,255,.35); margin-left: 6px; font-family: var(--mono); font-size: 11px; }

/* Toolbar inside the manager mock — search + sort + layout chips */
.pg-toolbar {
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: #1a1a1d;
}
.pg-search {
  padding: 12px 14px 8px;
  display: flex; align-items: center; gap: 8px;
}
.pg-search .field {
  flex: 1;
  background: #232328;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 7px 12px;
  color: rgba(255,255,255,.4);
  font-size: 13px;
  display: flex; align-items: center; gap: 8px;
}
.pg-search .field::before {
  content: "🔍"; font-size: 11px; opacity: .7;
}
.pg-search .pill-mini {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
}

/* Filter / layout chips (mirrors the real manager's toolbar) */
.pg-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px 12px;
  flex-wrap: wrap;
}
.pg-chip-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  padding-right: 4px;
}
.pg-chip {
  all: unset;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-family: var(--sans);
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.pg-chip:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
.pg-chip.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255,107,107,.15);
}
.pg-chip-spacer { flex: 1 1 auto; }

/* Row list */
.pg-list {
  padding: 6px;
  min-height: 220px;
  display: flex; flex-direction: column; gap: 2px;
  position: relative;
}
.pg-row {
  display: grid;
  grid-template-columns: 18px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: grab;
  color: rgba(255,255,255,.78);
  transition: background .15s ease, transform .25s cubic-bezier(.5,1.7,.4,1), opacity .25s ease;
}
.pg-row:hover { background: rgba(255,255,255,.05); }
.pg-row.active { background: rgba(255,107,107,.10); box-shadow: inset 3px 0 0 var(--accent); color: #fff; }
.pg-row.dragging { opacity: .3; cursor: grabbing; }
.pg-row.drop-before { box-shadow: inset 0 3px 0 var(--accent); }
.pg-row.drop-after  { box-shadow: inset 0 -3px 0 var(--accent); }
.pg-row.closing { animation: pg-row-out .35s forwards; pointer-events: none; }
.pg-row.shake   { animation: pg-shake .35s linear; }
@keyframes pg-row-out {
  0%   { transform: translateX(0)   scale(1); opacity: 1; max-height: 36px; }
  60%  { transform: translateX(40px) scale(.96); opacity: .4; }
  100% { transform: translateX(120px) scale(.9); opacity: 0; max-height: 0; padding: 0; margin: 0; }
}
@keyframes pg-shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.pg-row .fav {
  width: 18px; height: 18px; border-radius: 4px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}
.pg-row.active .fav { background: var(--accent); }
.pg-row .title {
  font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--sans);
}
.pg-row .domain {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,.4);
}
.pg-row .badges { display: inline-flex; gap: 4px; align-items: center; }
.pg-row .badges .b {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  border-radius: 4px;
  background: rgba(255,255,255,.06);
  font-size: 11px;
}
.pg-row .badges .b.audible  { background: rgba(249,171,0,.18);  color: #ffd87a; }
.pg-row .badges .b.muted    { background: rgba(217,76,76,.22);  color: #ffb1b1; }
.pg-row .badges .b.pinned   { background: rgba(52,103,224,.22); color: #b6c8ff; }
.pg-row .badges .b.locked   { background: rgba(255,107,107,.22); color: #ffd2d2; }
.pg-row .badges .b.suspended{ background: rgba(255,255,255,.05); color: rgba(255,255,255,.4); }
.pg-row.suspended { opacity: .5; }
.pg-row.suspended .title::before {
  content: "[zZ] ";
  font-family: var(--mono);
  color: rgba(255,255,255,.4);
}

/* Hint + controls under the window */
.pg-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,.55);
  text-align: center;
  margin: 16px 0 0;
  letter-spacing: .04em;
}
.pg-hint .kbd {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
}
.pg-controls {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  margin-top: 12px;
  font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,.55);
}
.pg-controls button {
  all: unset;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  font-family: inherit; font-size: 11px;
  transition: background .15s ease, border-color .15s ease;
}
.pg-controls button:hover { background: rgba(255,255,255,.1); border-color: var(--accent); color: #fff; }
.pg-controls .counter { color: rgba(255,255,255,.4); }

/* Float label "TabSmarter Manager — interactive demo" so there's zero chance someone reads this as Chrome's tab strip */
.pg-label {
  position: absolute;
  top: -16px; left: 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(255,107,107,.4);
}

.pg-toast {
  position: absolute;
  left: 50%;
  bottom: -48px;
  transform: translate(-50%, -8px);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--mono);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
  z-index: 4;
}
.pg-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* mini context menu */
.pg-menu {
  position: fixed;
  background: #1f1f24;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  min-width: 180px;
  z-index: 60;
  font-family: var(--sans);
}
.pg-menu button {
  all: unset;
  display: flex; align-items: center; gap: 10px;
  width: 100%; box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: rgba(255,255,255,.85);
  font-size: 13px;
}
.pg-menu button:hover { background: rgba(255,107,107,.18); color: #fff; }
.pg-menu .divider { height: 1px; background: rgba(255,255,255,.08); margin: 4px 2px; }
.pg-menu .ic { font-size: 14px; width: 18px; text-align: center; }
.pg-menu .danger:hover { background: rgba(255,77,77,.22); color: #ffcdcd; }

@media (max-width: 720px) {
  .pg-row { grid-template-columns: 18px 1fr auto; padding: 7px 10px; }
  .pg-row .domain { display: none; }
  .pg-search { padding: 10px 10px 8px; }
  .pg-title .meta { display: none; }
}

/* Power features grid (smaller variant) */
.power-features { margin-top: 56px; }
.power-features h3.section-title {
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.power-features p.section-lede { margin-bottom: 28px; }
.power-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  text-align: left;
}
@media (max-width: 1000px) { .power-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .power-grid { grid-template-columns: 1fr; } }
.power-card {
  background: var(--paper-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 16px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.power-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: var(--accent-soft);
}
.power-card .ic-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.power-card .ic {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
}
.power-card .pill-new {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-family: var(--mono);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.power-card h4 { margin: 0 0 4px; font-size: 14px; letter-spacing: -.01em; }
.power-card p { margin: 0; color: var(--ink-mute); font-size: 13px; line-height: 1.5; }
.power-card .caveat {
  display: block;
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: 11px;
  font-family: var(--mono);
  font-style: italic;
}

/* ---------- Section base ---------- */

section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section h2.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700; letter-spacing: -.02em;
  margin: 0 0 12px;
}
section .section-lede {
  color: var(--ink-mute);
  font-size: 17px; max-width: 640px;
  margin: 0 0 56px;
}
.center { text-align: center; }
.center .section-lede { margin-left: auto; margin-right: auto; }

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--accent-soft);
}
.feature-card .ic {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 14px;
}
.feature-card h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.feature-card p { margin: 0; color: var(--ink-mute); font-size: 14px; line-height: 1.55; }

/* ---------- How it works ---------- */

.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: stp;
}
@media (max-width: 880px) { .how { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}
.step::before {
  counter-increment: stp;
  content: counter(stp, decimal-leading-zero);
  position: absolute; top: -14px; left: 24px;
  background: var(--ink); color: #fff;
  font-family: var(--mono);
  font-size: 12px; padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.step h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--ink-mute); font-size: 14px; }

/* ---------- "What's NOT" callout ---------- */

.not-this {
  background: var(--ink); color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
@media (max-width: 760px) { .not-this { grid-template-columns: 1fr; padding: 32px; } }
.not-this h2 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.not-this h2 .strike { text-decoration: line-through; color: rgba(255,255,255,.4); }
.not-this ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--mono); font-size: 14px;
}
.not-this li { color: rgba(255,255,255,.78); }
.not-this li::before {
  content: "✗  "; color: var(--accent);
}

/* ---------- Newsletter ---------- */

.newsletter {
  background: linear-gradient(135deg, #fff, var(--paper-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.newsletter h2 { margin: 0 0 8px; }
.newsletter p { margin: 0 0 24px; color: var(--ink-mute); }
.newsletter form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.newsletter input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: #fff;
  font: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.newsletter input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,107,.18);
}
.newsletter .ok { color: #20833f; font-size: 14px; margin-top: 12px; min-height: 1.4em; }

/* ---------- Footer ---------- */

footer {
  background: var(--night); color: #fff;
  padding: 56px 0 32px;
  margin-top: 80px;
}
footer .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) { footer .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { footer .grid { grid-template-columns: 1fr; } }
footer h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  margin: 0 0 12px;
}
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
footer ul a { color: rgba(255,255,255,.8); font-size: 14px; }
footer ul a:hover { color: #fff; text-decoration: none; }
footer .desc { color: rgba(255,255,255,.6); font-size: 14px; max-width: 320px; }
.fine {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap;
  color: rgba(255,255,255,.5); font-size: 13px; font-family: var(--mono);
}

/* ---------- Article (FAQ / TOS / Privacy) ---------- */

.article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 780px;
  margin: 0 auto;
}
.article h1 {
  font-size: 36px; letter-spacing: -.02em; margin: 0 0 8px;
}
.article .updated {
  font-family: var(--mono); font-size: 13px; color: var(--ink-faint);
  margin-bottom: 32px;
}
.article h2 {
  font-size: 22px; letter-spacing: -.01em;
  margin: 36px 0 12px; padding-top: 12px;
}
.article h2:first-of-type { margin-top: 0; }
.article h3 { font-size: 17px; margin: 24px 0 8px; }
.article p, .article li { color: var(--ink); }
.article p { margin: 0 0 14px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 16px; }
.article li { margin-bottom: 6px; }
.article hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }

.article-hero {
  background: var(--night); color: #fff;
  padding: 72px 0 48px;
  text-align: center;
}
.article-hero h1 { margin: 0 0 8px; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.02em; }
.article-hero p { margin: 0; color: rgba(255,255,255,.7); font-family: var(--mono); font-size: 13px; }

.article-wrap { padding: 56px 0 80px; }

/* FAQ specific */
details.faq {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 22px;
  margin-bottom: 10px;
  transition: border-color .15s ease;
}
details.faq[open] { border-color: var(--accent); box-shadow: var(--shadow-soft); }
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex; align-items: center; gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before {
  content: "+"; font-family: var(--mono);
  width: 20px; height: 20px; display: grid; place-items: center;
  border-radius: 6px; background: var(--paper-elev);
  color: var(--ink-mute); flex-shrink: 0;
  transition: transform .15s ease, background .15s ease;
}
details.faq[open] summary::before { content: "−"; background: var(--accent); color: #fff; }
details.faq .body {
  padding-top: 12px;
  color: var(--ink-mute);
}
details.faq .body p:last-child { margin-bottom: 0; }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 12px;
  background: #fff; color: var(--ink); padding: 8px 12px;
  border-radius: 6px;
}
.skip:focus { left: 12px; z-index: 100; }
