/**
 * Landing page and privacy policy styling.
 *
 * Dark-first, single committed look. Same discipline as the extension UI:
 * elevation from layered shadow, concentric radii on nested surfaces, named
 * transition properties, press scale of exactly 0.96.
 */

:root {
  --bg: #0f1013;
  --surface: #17191e;
  --surface-2: #1e2128;
  --text: #f4f6f9;
  --text-dim: #98a1b0;
  --accent: #5b90ff;
  --accent-ink: #ffffff;
  --hairline: rgba(255, 255, 255, 0.10);
  --img-outline: oklch(1 0 0 / 0.1);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 24px;
}

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

.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(91, 144, 255, 0.16), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--hairline);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  /* Outer 999 on a pill; the mark inside carries its own small radius. */
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--hairline), var(--shadow-1);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.badge img {
  border-radius: 5px;
  display: block;
  outline: 1px solid var(--img-outline);
  outline-offset: -1px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 6vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

.lede {
  margin: 0 0 30px;
  font-size: clamp(16.5px, 2.2vw, 19px);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 56ch;
  text-wrap: pretty;
}

.cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.cta-note { font-size: 13.5px; color: var(--text-dim); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 11px;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition-property: scale, background-color, box-shadow, opacity;
  transition-duration: 130ms;
  transition-timing-function: var(--ease);
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-1);
}
.btn.primary:hover { box-shadow: var(--shadow-2); }
.btn:active { scale: 0.96; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn.small { padding: 8px 14px; font-size: 13.5px; border-radius: 9px; }

/* Pre-launch state: reads as deliberately inactive, not as a broken link.
   No press scale and no pointer, because nothing happens on click. */
.btn.is-pending {
  background: var(--surface-2);
  color: var(--text-dim);
  box-shadow: 0 0 0 0.5px var(--hairline);
  cursor: default;
}
.btn.is-pending:hover { box-shadow: 0 0 0 0.5px var(--hairline); }
.btn.is-pending:active { scale: 1; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chips li {
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--hairline);
  font-size: 13px;
  color: var(--text-dim);
}

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

.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--hairline); }

h2 {
  margin: 0 0 14px;
  font-size: clamp(23px, 3.4vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.022em;
  font-weight: 700;
  text-wrap: balance;
}

.body {
  margin: 0 0 22px;
  color: var(--text-dim);
  max-width: 62ch;
  text-wrap: pretty;
}
.body.small { font-size: 14px; }
.body a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* Cards: outer radius 14 = inner content offset by 18px padding. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.card {
  padding: 18px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--hairline), var(--shadow-1);
}
.card.muted { background: var(--surface-2); }

.card h3 {
  margin: 0 0 7px;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.012em;
}
.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
}
.card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: var(--bg);
  padding: 2px 5px;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

.ticks {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 9px;
  max-width: 62ch;
}
.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--text-dim);
  font-size: 15px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 9px;
  height: 5px;
  border-left: 1.75px solid var(--accent);
  border-bottom: 1.75px solid var(--accent);
  rotate: -45deg;
}

/* ----------------------------------------------------------- follow card */

.followCard {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: min(320px, calc(100vw - 40px));
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--hairline), var(--shadow-2);

  opacity: 0;
  translate: 0 12px;
  pointer-events: none;
  transition-property: opacity, translate;
  transition-duration: 320ms;
  transition-timing-function: var(--ease);
}
.followCard[data-visible="1"] {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}
/* Exit is softer than the enter: a smaller move, no bounce. */
.followCard[data-dismissed="1"] {
  opacity: 0;
  translate: 0 4px;
  pointer-events: none;
}

.followIco {
  flex: none;
  width: 34px;
  height: 34px;
  /* 16 outer - 16 padding would collapse; 10 keeps the corner concentric
     against the card's inner edge. */
  border-radius: 10px;
  background: var(--text);
  color: var(--surface);
  display: grid;
  place-items: center;
}
.followIco svg { width: 16px; height: 16px; display: block; }

.followBody { flex: 1; min-width: 0; }
.followBody strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.012em;
  margin-bottom: 3px;
}
.followBody p {
  margin: 0 0 11px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-dim);
}
.followBody .btn {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: 0 0 0 0.5px var(--hairline);
}
.followBody .btn:hover { background: #262a32; }

.followClose {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  padding: 5px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  transition-property: background-color, color, scale;
  transition-duration: 130ms;
  transition-timing-function: var(--ease);
}
.followClose:hover { background: var(--surface-2); color: var(--text); }
.followClose:active { scale: 0.96; }
.followClose:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.followClose svg { width: 100%; height: 100%; display: block; }

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

.foot {
  padding: 40px 24px 56px;
  border-top: 1px solid var(--hairline);
  color: var(--text-dim);
  font-size: 13.5px;
}
.foot p { margin: 0 0 12px; max-width: 62ch; }
.foot a { color: var(--accent); }
.footLinks { display: flex; gap: 10px; align-items: center; }

/* ------------------------------------------------------- document pages */

.doc { padding: 56px 0; }
.prose {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  padding-inline: 24px;
}
.prose h1 { font-size: clamp(28px, 5vw, 38px); margin-bottom: 6px; }
.prose h2 {
  font-size: 19px;
  margin: 34px 0 10px;
  letter-spacing: -0.015em;
}
.prose p, .prose li, .prose dd {
  color: var(--text-dim);
  max-width: 62ch;
  text-wrap: pretty;
}
.prose .lede { color: var(--text); font-size: 17px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 7px; }
.prose dt {
  margin-top: 14px;
  font-weight: 650;
  color: var(--text);
  font-size: 14.5px;
}
.prose dd { margin: 4px 0 0; padding-left: 0; font-size: 14.5px; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: var(--surface);
  padding: 2px 5px;
  border-radius: 5px;
}
.prose a { color: var(--accent); }
.updated { font-size: 13.5px; margin-top: 0; }
.back { margin-bottom: 26px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .followCard { transition-duration: 1ms; }
  .btn:active, .followClose:active { scale: 1; }
}
