:root {
  --bg: #060708;
  --text: #f3f3f4;
  --muted: #8e9096;
  --line: rgba(255, 255, 255, 0.08);
  --peri: #7e9cf4;
  --rose: #f4b0cf;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 16px/1.6 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(700px 480px at 12% -6%, rgba(126, 156, 244, 0.16), transparent 70%),
    radial-gradient(600px 460px at 100% 105%, rgba(244, 176, 207, 0.1), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

/* A faint 3-column tile wall behind everything, like the extension's popup. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, var(--bg) 0 8px, transparent 8px),
    linear-gradient(180deg, var(--bg) 0 8px, transparent 8px),
    linear-gradient(160deg, #15171a, #0c0d0f);
  background-size: 168px 212px, 168px 212px, 100% 100%;
  opacity: 0.55;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 85%);
}

a {
  color: var(--peri);
  text-underline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(760px, 100% - 32px);
  margin: 0 auto;
  padding: 56px 0 72px;
}

/* ---------- Glass ---------- */
.glass {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.22),
    inset -1px -1px 0 rgba(255, 255, 255, 0.05),
    0 18px 50px rgba(0, 0, 0, 0.5);
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from 210deg,
    rgba(255, 255, 255, 0.4),
    rgba(170, 200, 255, 0.14) 18%,
    rgba(255, 255, 255, 0.03) 32%,
    rgba(255, 200, 220, 0.14) 52%,
    rgba(255, 255, 255, 0.3) 64%,
    rgba(255, 255, 255, 0.03) 80%,
    rgba(255, 255, 255, 0.4)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Header ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand img {
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.7));
}

.brand h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
}

h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.lead {
  margin: 28px 0 0;
  font-size: 18px;
  color: #c9cbd1;
}

/* ---------- Buttons ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn.primary {
  color: #0a0a0b;
  background: radial-gradient(120% 140% at 50% 0%, #fff, #cfd2d8);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.btn.coffee {
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(255, 200, 120, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
}

.btn.coffee svg {
  color: #ffd27a;
  filter: drop-shadow(0 0 6px rgba(255, 200, 110, 0.45));
}

.btn.coffee:hover {
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(255, 200, 120, 0.3), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

/* ---------- Sections ---------- */
section {
  margin-top: 22px;
  padding: 26px 28px;
}

section > p {
  margin: 6px 0 0;
  color: #c9cbd1;
}

details {
  border-top: 1px solid var(--line);
}

details:first-of-type {
  margin-top: 12px;
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1.7px solid var(--muted);
  border-bottom: 1.7px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

details p,
details ol,
details ul {
  margin: -4px 0 16px;
  color: #b9bcc3;
}

details li + li {
  margin-top: 4px;
}

kbd {
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  font: 500 13px 'Geist', system-ui, sans-serif;
}

.privacy p + p {
  margin-top: 10px;
}

.updated {
  color: var(--muted);
  font-size: 13px;
}

footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ---------- Uninstall page ---------- */
.form-frame {
  display: block;
  width: 100%;
  height: 760px;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
  background: #fff;
}

@media (max-width: 560px) {
  .brand h1 {
    font-size: 32px;
  }
  section {
    padding: 22px 18px;
  }
}

/* A button row whose links aren't configured yet collapses instead of leaving a gap. */
.actions:not(:has(> :not([hidden]))) {
  display: none;
}
