:root {
  color-scheme: dark;
  --night: #121811;
  --night-2: #182016;
  --panel: #1c251a;
  --ink: #eef3ea;
  --muted: #a7b5a1;
  --line: #2b3828;
  --leaf: #8fc27c;
  --g1: #6aa457;
  --g2: #4b7c3d;
  --on-leaf: #13200f;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* the hero glow bleeds past the edges on purpose */
  padding-top: env(safe-area-inset-top, 0px);
}
img { max-width: 100%; }
a { color: var(--leaf); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
section { padding-inline: var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 16px/1 var(--body); text-decoration: none; border-radius: 999px;
  padding: 15px 24px; transition: background .15s, transform .12s, border-color .15s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--leaf); color: var(--on-leaf); }
.btn.primary:hover { background: #a3d290; }
.btn.ghost { color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.small { padding: 9px 16px; font-size: 14px; background: var(--leaf); color: var(--on-leaf); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--night) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 19px var(--display); letter-spacing: -.01em; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px);
  align-items: center; max-width: 1240px; margin: 0 auto;
  padding-block: clamp(40px, 8vw, 96px) clamp(72px, 10vw, 128px);
}
.hero::before {
  content: ""; position: absolute; inset: -80px -40vw 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 60% at 70% 30%, rgba(106, 164, 87, .22), transparent 70%),
    conic-gradient(rgba(255,255,255,.035) 25%, transparent 0 50%, rgba(255,255,255,.035) 0 75%, transparent 0) 0 0 / 72px 72px;
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.hero-copy { display: grid; gap: 22px; }
.eyebrow { font: 700 13px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--leaf); }
.hero h1 { font-size: clamp(44px, 6.6vw, 82px); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.hero h1 em, .closer em { font-style: normal; color: var(--leaf); }
.lede { font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); max-width: 34ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.fine { font-size: 14px; color: var(--muted); }
@media (max-width: 920px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- demo: board + interactive widget ---------- */
.demo { position: relative; width: min(560px, 100%); justify-self: center; padding-bottom: 72px; }
.board {
  container-type: inline-size;
  display: grid; grid-template-columns: repeat(8, 1fr); width: 100%;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.3);
}
.board > div { aspect-ratio: 1; display: grid; place-items: center; line-height: 1; font-size: 9.6cqw;
               font-family: "Noto Sans Symbols 2", "Apple Symbols", "Segoe UI Symbol", serif; user-select: none; }
.board .l { background: #e9ecd8; }
.board .d { background: #7f9f68; }
.board .hi { box-shadow: inset 0 0 0 999px rgba(255, 214, 92, .42); }
.board .w { color: #fbfbf6; -webkit-text-stroke: .5cqw #2a2a26; paint-order: stroke fill; }
.board .b { color: #24231f; }
.demo-widget { position: absolute; right: -28px; bottom: 0; }
@media (max-width: 920px) { .demo-widget { right: 50%; transform: translateX(50%); } }
.hint {
  position: absolute; right: calc(100% + 12px); top: 64px; white-space: nowrap;
  font: 700 13px var(--body); color: var(--on-leaf); background: var(--leaf);
  padding: 6px 12px; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.35);
  transition: opacity .25s;
}
.hint::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.hint.gone { opacity: 0; pointer-events: none; }
@media (max-width: 920px) { .hint { right: auto; left: 50%; top: -40px; transform: translateX(-50%); } .hint::after { right: auto; left: 50%; top: auto; bottom: -5px; margin-left: -5px; } }

/* The widget (mirrors the extension's content.js styles). */
.w-card {
  --bg: #22211f; --fg: #ecebe7; --wm: #9a968e; --wl: #3a3835; --raise: #2e2c29; --accent: #7fbf6a; --warn: #e0b04a; --bad: #e06a5a;
  width: 256px; background: var(--bg); color: var(--fg); border: 1px solid var(--wl); border-radius: 12px;
  box-shadow: 0 24px 50px rgba(0,0,0,.5); font: 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow: hidden; text-align: left; transition: width .18s ease-out, border-radius .18s ease-out;
}
.w-card button { font: inherit; color: inherit; }
.w-card.collapsed { width: auto; min-width: 150px; border-radius: 999px; }
.w-card.collapsed .w-body { display: none; }
.w-head { display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px; min-height: 40px; }
.w-title { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--wm); transition: box-shadow .12s; }
.w-dot.on { background: var(--accent); }
.w-dot.wait { background: var(--warn); }
.w-card.speaking .w-dot.on { box-shadow: 0 0 0 4px rgba(127,191,106,.35); }
.w-chev { width: 20px; height: 24px; border: 0; background: none; color: var(--wm); font-size: 10px; cursor: pointer; transition: transform .15s ease-out; }
.w-card.collapsed .w-chev { transform: rotate(-90deg); }
.w-ib { width: 28px; height: 28px; padding: 5px; border-radius: 50%; display: grid; place-items: center; background: var(--raise); border: 1px solid var(--wl); cursor: pointer; }
.w-ib svg, .w-btn svg { width: 16px; height: 16px; }
.w-body { padding: 2px 12px 12px; }
.w-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.w-stack.loose { gap: 10px; }
.w-peer { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--raise); border-radius: 10px; }
.w-peer-text { min-width: 0; flex: 1; }
.w-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #3b4a36; color: #cfe8c4; font-weight: 700; font-size: 14px; text-transform: uppercase; box-shadow: 0 0 0 2px var(--raise); transition: box-shadow .12s; }
.w-card.speaking .w-av { box-shadow: 0 0 0 2px var(--raise), 0 0 0 4px var(--accent); }
.w-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-status { color: var(--wm); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-meter-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--wm); }
.w-meter { display: flex; gap: 3px; flex: 1; }
.w-meter i { flex: 1; height: 6px; border-radius: 2px; background: var(--wl); transition: background .08s; }
.w-meter i.lit { background: var(--accent); }
.w-meter-label { width: 52px; text-align: right; }
.w-meter-row.muted .w-meter-label { color: var(--bad); font-weight: 600; }
.w-row { display: flex; gap: 6px; }
.w-row > * { flex: 1; min-width: 0; }
.w-btn, .w-input { background: var(--raise); border: 1px solid var(--wl); border-radius: 8px; padding: 7px 10px; font-weight: 600; }
.w-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; transition: background .12s, transform .1s; }
.w-btn:hover { background: #383633; }
.w-btn:active { transform: scale(.96); }
.w-btn.primary { background: var(--accent); border-color: var(--accent); color: #142010; }
.w-btn.primary:hover { background: #8fcc7b; }
.w-btn.danger { color: var(--bad); }
.w-btn[aria-pressed="true"], .w-ib[aria-pressed="true"] { background: #4a2a26; border-color: #6b3a33; color: #ffb3a8; }
.w-fixed { flex: none !important; cursor: default; }
.w-input { font-weight: 400; color: var(--wm); }
.w-vol { display: flex; align-items: center; gap: 8px; color: var(--wm); font-size: 12px; }
.w-track { flex: 1; height: 4px; border-radius: 2px; background: var(--accent); position: relative; }
.w-track::after { content: ""; position: absolute; right: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .w-card, .w-card * { transition: none !important; } }

/* ---------- how ---------- */
.how, .features, .faq { max-width: 1240px; margin: 0 auto; padding-block: clamp(56px, 8vw, 104px); display: grid; gap: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: 16px; background: var(--night-2); border: 1px solid var(--line); }
.step-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 800 17px var(--display); background: var(--g2); color: var(--ink); margin-bottom: 6px; }
.steps p, .feature p { color: var(--muted); font-size: 16px; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- features ---------- */
.features { border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.feature { display: grid; gap: 8px; align-content: start; }
.feature svg { width: 28px; height: 28px; fill: none; stroke: var(--leaf); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.feature svg .ring { stroke-dasharray: 3 3.2; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- privacy ---------- */
.privacy {
  max-width: 1240px; margin: 0 auto; padding-block: clamp(56px, 8vw, 104px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  border-top: 1px solid var(--line);
}
.privacy-copy { display: grid; gap: 20px; }
.privacy-copy p { color: var(--muted); max-width: 46ch; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.checks li::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--g2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%23eef3ea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.p2p { width: 100%; height: auto; }
.p2p-box { fill: var(--night-2); stroke: var(--line); stroke-width: 2; }
.p2p-av { fill: #3b4a36; }
.p2p-letter { font: 700 26px var(--body); fill: #cfe8c4; }
.p2p-name { font: 600 18px var(--body); fill: var(--ink); }
.p2p-line { stroke: var(--leaf); stroke-width: 8; stroke-linecap: round; }
.p2p-arrow { fill: none; stroke: var(--leaf); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.p2p-lock-bg { fill: #2a3a25; }
.p2p-shackle { fill: none; stroke: var(--leaf); stroke-width: 2.5; }
.p2p-lock { fill: var(--leaf); }
.p2p-cap { font: 500 17px var(--body); fill: var(--muted); }
@media (max-width: 860px) { .privacy { grid-template-columns: minmax(0, 1fr); } }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
.faq-list { display: grid; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; font: 600 18px var(--display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--leaf); font: 400 24px/1 var(--body); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }
@media (max-width: 820px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* ---------- closer + footer ---------- */
.closer { display: grid; justify-items: center; gap: 22px; text-align: center; padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line);
          background: radial-gradient(40% 70% at 50% 100%, rgba(106,164,87,.18), transparent 70%); }
.foot { padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: grid; gap: 16px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot .brand { font-size: 16px; }

/* ---------- document pages (privacy) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter); display: grid; gap: 22px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: -.03em; }
.doc h2 { font-size: 26px; margin-top: 18px; }
.doc p, .doc li { color: #cfd9ca; }
.doc ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.doc .updated { color: var(--muted); font-size: 15px; }
.doc code { font-size: .9em; background: var(--panel); padding: .1em .4em; border-radius: 4px; }
.doc .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.doc table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--night-2); }
