/* Peekless — marketing and policy site.
   A committed dark palette: it matches the product's own surfaces and the
   logo, and the site is small enough that a second theme would be upkeep
   without benefit. Contrast is checked against WCAG AA at every pairing. */

:root {
  --bg: #080d18;
  --bg-raised: #0f172a;
  --bg-sunken: #060a12;
  --border: #1e293b;
  --border-strong: #334155;
  --text: #e8eef7;
  --text-dim: #94a3b8;
  --accent: #2dd4bf;
  --accent-deep: #14b8a6;
  --ink: #04121a;
  --max: 1080px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: #5eead4;
}

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

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 13, 24, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand img {
  width: 32px;
  height: 32px;
  display: block;
}
.nav {
  display: flex;
  gap: 26px;
  font-size: 15px;
}
.nav a {
  color: var(--text-dim);
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
}

/* -------------------------------------------------------------------- hero */

.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 420px at 78% -12%, rgba(45, 212, 191, 0.13), transparent 62%),
    radial-gradient(680px 380px at 8% 0%, rgba(56, 189, 248, 0.07), transparent 60%);
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 16ch;
}
.hero .lede {
  margin: 0 0 32px;
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--text-dim);
  max-width: 60ch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-raised);
  font-size: 13px;
  color: var(--text-dim);
}
.eyebrow b {
  color: var(--accent);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.btn-primary:hover {
  background: #5eead4;
  border-color: #5eead4;
  color: var(--ink);
}
.cta-note {
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ---------------------------------------------------------------- sections */

section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}
section:last-of-type {
  border-bottom: 0;
}
h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.2vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h3 {
  margin: 32px 0 10px;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.section-lede {
  margin: 0 0 36px;
  color: var(--text-dim);
  max-width: 62ch;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-raised);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 17.5px;
}
.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}
.card .tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.28);
}

.promise {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 8px;
}
.promise div {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-sunken);
}
.promise b {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}
.promise span {
  color: var(--text-dim);
  font-size: 14.5px;
}

/* -------------------------------------------------------------------- prose */

.prose {
  max-width: 74ch;
}
.prose p,
.prose li {
  color: #cbd5e1;
}
.prose h2 {
  margin-top: 44px;
  padding-top: 8px;
  font-size: 24px;
}
.prose h2:first-of-type {
  margin-top: 0;
}
.prose h3 {
  margin-top: 28px;
  font-size: 17.5px;
  color: var(--text);
}
.prose ul {
  padding-left: 22px;
}
.prose li {
  margin: 7px 0;
}
.prose strong {
  color: var(--text);
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--accent);
}
.updated {
  display: inline-block;
  margin-bottom: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  font-size: 13.5px;
  color: var(--text-dim);
}

.callout {
  margin: 26px 0;
  padding: 18px 22px;
  border-radius: 12px;
  border: 1px solid rgba(45, 212, 191, 0.3);
  background: rgba(45, 212, 191, 0.06);
}
.callout p {
  margin: 0;
}
.callout strong {
  color: var(--accent);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}
th,
td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
td {
  color: var(--text-dim);
}

details {
  margin: 10px 0;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
}
summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}
details[open] summary {
  margin-bottom: 10px;
}
details p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
  background: var(--bg-sunken);
  color: var(--text-dim);
  font-size: 14.5px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 620px) {
  .nav {
    gap: 16px;
    font-size: 14px;
  }
  section {
    padding: 52px 0;
  }
  .hero {
    padding: 60px 0 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* ------------------------------------------------------- hero demo (no JS) */

/* Utility classes replacing inline style attributes.
   The site's CSP sets `style-src 'self'`, which blocks style="..." outright —
   so an inline style is not merely untidy here, it silently does nothing. */
.mt-18 { margin-top: 18px; }
.mt-16 { margin-top: 16px; }
.mt-30 { margin-top: 30px; }
.mb-28 { margin-bottom: 28px; }
.page-title {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.5vw, 42px);
  letter-spacing: -0.03em;
}
.page-main {
  padding-top: 56px;
  padding-bottom: 72px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

/**
 * A looping demonstration of the product, drawn entirely in CSS.
 *
 * Not a GIF and not a video: this page ships no JavaScript and a strict CSP, so
 * a few kilobytes of keyframes stay crisp at any density, cost no extra
 * request, and cannot be blocked. Every layer shares one 11s timeline, which is
 * what keeps the blur, the pill and the intruder in step.
 */
.demo {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #101a2e, #0a1220);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  /* The extra bottom padding is the strip the guard pill sits in, so it never
     covers a message the way a floating badge would. */
  padding: 14px 14px 58px;
  overflow: hidden;
}
.demo::before {
  /* Title bar dots, so the frame reads as a window without a real chrome. */
  content: '';
  position: absolute;
  top: 15px;
  left: 18px;
  width: 40px;
  height: 8px;
  border-radius: 99px;
  background:
    radial-gradient(circle 4px at 4px 4px, #f87171 96%, transparent),
    radial-gradient(circle 4px at 20px 4px, #fbbf24 96%, transparent),
    radial-gradient(circle 4px at 36px 4px, #34d399 96%, transparent);
}

.demo-window {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 12px;
  margin-top: 22px;
  height: 268px;
}

/* Only the content blurs — the frame and the pill must stay legible, exactly
   as the real extension leaves its own UI untouched. */
.demo-blurable {
  display: contents;
}
.demo-side,
.demo-main {
  border-radius: 12px;
  background: #0c1424;
  border: 1px solid #1b2740;
  padding: 12px 11px;
  animation: demo-blur 11s ease-in-out infinite;
}
.demo-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Pushes the thread to the bottom of the panel, under the chat header. */
.demo-bubble:first-of-type {
  margin-top: auto;
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 11px;
  border-bottom: 1px solid #1b2740;
}

.demo-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
}
.demo-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(135deg, #2dd4bf, #1e6f77);
  opacity: 0.75;
}
.demo-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.demo-line {
  height: 6px;
  border-radius: 99px;
  background: #24334f;
}
.demo-line.short { width: 52%; }
.demo-line.mid { width: 74%; }
.demo-line.long { width: 92%; }

/* Explicit widths, not max-width: these are shrink-to-fit flex columns, so a
   percentage-width line inside an auto-width bubble would collapse both. */
.demo-bubble {
  width: 76%;
  align-self: flex-start;
  padding: 9px 11px;
  border-radius: 12px;
  background: #17253d;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.demo-bubble.out {
  width: 60%;
  align-self: flex-end;
  background: #12463f;
}
.demo-bubble .demo-line { background: #33456a; }
.demo-bubble.out .demo-line { background: #1d6c60; }

/* The guard pill, mirroring the one the extension puts in the page. Two are
   stacked and cross-faded, because CSS cannot animate text content. */
.demo-pill {
  position: absolute;
  right: 18px;
  bottom: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 550;
  white-space: nowrap;
  color: #e2e8f0;
  background: rgba(8, 13, 24, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.3);
  animation: 11s ease-in-out infinite;
}
.demo-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.demo-pill-clear {
  animation-name: demo-pill-clear;
}
.demo-pill-clear::before {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
.demo-pill-alert {
  animation-name: demo-pill-alert;
  opacity: 0;
}
.demo-pill-alert::before {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
}

/* The second face arriving — the thing being reacted to. */
.demo-peeker {
  position: absolute;
  top: 26px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.45);
  opacity: 0;
  animation: demo-peeker 11s ease-in-out infinite;
}
.demo-peeker svg {
  width: 24px;
  height: 24px;
  stroke: #fca5a5;
  fill: none;
  stroke-width: 1.9;
}

@keyframes demo-blur {
  0%, 30% { filter: blur(0); }
  36%, 68% { filter: blur(7px); }
  76%, 100% { filter: blur(0); }
}
@keyframes demo-pill-clear {
  0%, 30% { opacity: 1; }
  36%, 68% { opacity: 0; }
  76%, 100% { opacity: 1; }
}
@keyframes demo-pill-alert {
  0%, 30% { opacity: 0; }
  36%, 68% { opacity: 1; }
  76%, 100% { opacity: 0; }
}
@keyframes demo-peeker {
  0%, 28% { opacity: 0; transform: translateY(-6px) scale(0.94); }
  36%, 68% { opacity: 1; transform: none; }
  78%, 100% { opacity: 0; transform: translateY(-6px) scale(0.94); }
}

/* Reduced motion: hold the protected state rather than looping. It still shows
   what the product does; it just stops moving. */
@media (prefers-reduced-motion: reduce) {
  .demo-side,
  .demo-main,
  .demo-pill,
  .demo-peeker {
    animation: none;
  }
  .demo-side,
  .demo-main { filter: blur(7px); }
  .demo-pill-clear { opacity: 0; }
  .demo-pill-alert { opacity: 1; }
  .demo-peeker { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .demo-window { height: 232px; }
}
