/*
 * Plop site styles. One stylesheet, no dependencies, no webfonts.
 *
 * Colours and radii are the same values the extension uses
 * (src/styles/tokens.css); only the ones this site needs are repeated here so
 * the page stays self-contained.
 */

:root {
  --surface: #1e1e1e;
  --surface-raised: #242424;
  --page: #141414;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  /* The extension uses 0.44 here, but that lands at 4.4:1 on this page's
     darker background. Lifted to clear WCAG AA for body text. */
  --text-faint: rgba(255, 255, 255, 0.56);
  --divider: rgba(255, 255, 255, 0.08);
  --accent: #118ff6;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-pill: 200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 24px;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
}

/* A soft blue wash behind the top of the page, the same accent the widget
   uses. Fixed so it does not travel with a long policy page. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 420px;
  background: radial-gradient(
    80% 100% at 50% 0%,
    rgba(17, 143, 246, 0.16) 0%,
    rgba(17, 143, 246, 0) 100%
  );
  pointer-events: none;
}

.wrap {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 96px 0 72px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- Landing ----------------------------------------------------------- */

.hero {
  text-align: center;
}

.logo {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto 24px;
}

h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.lede {
  margin: 16px auto 0;
  max-width: 480px;
  font-size: 19px;
  color: var(--text-muted);
  letter-spacing: -0.02em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  border: 1px solid var(--divider);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: background var(--ease) 220ms, transform var(--ease) 220ms;
}

.button:hover {
  background: #2c2c2c;
  text-decoration: none;
}

.button:active {
  transform: scale(0.98);
}

/* The brand blue (#118ff6) holds only 3.3:1 under white 15px text, so the
   filled button uses a deeper shade of it. Links keep the brand blue, which
   clears AA against the dark page. */
.button.primary {
  background: #0b6fd1;
  border-color: transparent;
  color: #ffffff;
}

.button.primary:hover {
  background: #095fb3;
}

.features {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.features li {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--divider);
}

.features strong {
  display: block;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.features span {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---- Policy ------------------------------------------------------------ */

.policy {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--divider);
  margin-top: 40px;
}

.policy h2 {
  margin: 40px 0 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.policy h2:first-child {
  margin-top: 0;
}

.policy p,
.policy li {
  color: var(--text-muted);
  font-size: 16px;
}

.policy strong {
  color: var(--text);
  font-weight: 500;
}

.policy ul {
  padding-left: 20px;
  margin: 12px 0;
}

.policy li {
  margin-bottom: 8px;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.updated {
  color: var(--text-faint);
  font-size: 14px;
  margin: 8px 0 0;
}

.back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 15px;
  color: var(--text-muted);
}

.back:hover {
  color: var(--text);
}

footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  color: var(--text-faint);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 560px) {
  .wrap {
    padding: 56px 0 48px;
  }

  h1 {
    font-size: 34px;
  }

  .lede {
    font-size: 17px;
  }

  .policy {
    padding: 24px;
    border-radius: var(--radius-md);
  }
}

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