/* tweetgone.com. The extension's tokens, trimmed. Light by default, X's retired Dim palette in dark mode. */
:root {
  color-scheme: light dark;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif;
  /* Text colours are set to clear WCAG AA (4.5:1) on every background they are used on. */
  --label: #000000;
  --label-2: rgba(60,60,67,.78);
  --label-3: rgba(60,60,67,.74);
  --bg: #F2F2F7;
  --bg-2: #FFFFFF;
  --bg-3: #E5E5EA;
  /* The logo blue. Trent's call: brand over contrast. White on it is 3.0:1 and it is 2.7:1 as
     link text on the page background, so both sit below AA in light mode. Dark mode is 5.5:1. */
  --blue: #1D9BF0;
  --blue-fill: #1D9BF0;
  --on-accent: #FFFFFF;
  --green: #34C759;
  --red: #C9251C;
  --shadow: 0 24px 64px rgba(0,0,0,.14);
  --ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue);
  --r-card: 20px;
  --r-control: 12px;
  --content: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --label: #F7F9F9;
    --label-2: #8B98A5;
    --label-3: #8B98A5;
    --bg: #15202B;
    --bg-2: #1E2732;
    --bg-3: #263340;
    --blue: #1D9BF0;
    --blue-fill: #1D9BF0;
    --green: #00BA7C;
    --red: #FF453A;
    --shadow: 0 24px 64px rgba(0,0,0,.5);
  }
}
@media (prefers-reduced-motion: reduce) {
  /* !important because the html rule that turns smooth scrolling on comes later in this file. */
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  color: var(--label);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-control); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.wrap { width: min(var(--content), 100% - 40px); margin-inline: auto; }

/* Nav. Fixed and opaque, the way a page title behaves in the extension: the bar itself never
   moves, and whatever scrolls beneath it dissolves into the gradient rather than colliding. */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: var(--bg); padding: 20px 0 0; }
.nav::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 28px; pointer-events: none; background: linear-gradient(to bottom, var(--bg), transparent); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; }
body { padding-top: 76px; }
/* An anchor must not land underneath the fixed bar. */
[id] { scroll-margin-top: 104px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; color: var(--label); font-weight: 600; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav-links a { color: var(--label-2); font-weight: 500; }
.nav-links a:hover { color: var(--label); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; white-space: nowrap;
  background: var(--blue-fill); color: var(--on-accent); font-weight: 600; font-size: 17px;
  transition: transform 160ms cubic-bezier(.25,.1,.25,1), filter 160ms;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn-soft { background: var(--bg-3); color: var(--label); }
.btn-soon { background: var(--bg-3); color: var(--label-2); cursor: default; }

/* Hero */
.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -.025em; font-weight: 700; }
.hero .sub { max-width: 640px; margin: 20px auto 0; font-size: clamp(18px, 2.2vw, 21px); color: var(--label-2); }
.hero .cta { display: flex; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero .fine { margin-top: 14px; font-size: 14px; color: var(--label-3); }

/* Counter */
.counter { display: none; margin: 40px auto 0; padding: 28px 32px; max-width: 560px; border-radius: var(--r-card); background: var(--bg-2); }
.counter.show { display: block; }
.counter .n { font-family: var(--font-display); font-size: clamp(44px, 7vw, 72px); line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.counter .what { margin-top: 8px; font-size: 17px; color: var(--label-2); }
.counter .how { margin-top: 12px; font-size: 13px; color: var(--label-3); }
.counter .dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--green); vertical-align: 1px; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Screenshot */
.shot { margin: 56px auto 0; border-radius: var(--r-card); overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; }

/* Sections */
section { padding: 72px 0 0; }
.section-title { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; text-align: center; }
.section-sub { max-width: 600px; margin: 12px auto 0; text-align: center; color: var(--label-2); }
.grid { display: grid; gap: 16px; margin-top: 36px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 28px; border-radius: var(--r-card); background: var(--bg-2); }
.card h3 { font-size: 20px; line-height: 1.25; }
.card p { margin-top: 10px; color: var(--label-2); font-size: 16px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .num { flex: 0 0 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-fill); color: var(--on-accent); font-weight: 700; }
.step h3 { font-size: 18px; }
.step p { margin-top: 6px; }

/* Privacy strip */
.strip { margin-top: 72px; padding: 40px 32px; border-radius: var(--r-card); background: var(--bg-2); text-align: center; }
.strip h2 { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.2; letter-spacing: -.015em; }
.strip p { max-width: 640px; margin: 12px auto 0; color: var(--label-2); }
.strip a.btn { margin-top: 20px; }

/* Prose pages */
.prose { max-width: 720px; margin: 0 auto; padding: 40px 0 0; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; letter-spacing: -.02em; }
.prose .updated { margin-top: 8px; color: var(--label-3); font-size: 14px; }
.prose h2 { margin-top: 40px; font-size: 24px; line-height: 1.25; }
.prose h3 { margin-top: 28px; font-size: 18px; }
.prose p, .prose li { margin-top: 12px; color: var(--label-2); }
.prose ul { padding-left: 22px; margin: 0; }
.prose b { color: var(--label); font-weight: 600; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; padding: 1px 6px; border-radius: 6px; background: var(--bg-3); color: var(--label); }
.prose .lead { font-size: 20px; color: var(--label); margin-top: 20px; }

/* Legal documents: sections and clauses numbered by CSS, so the markup stays clean and
   renumbering is automatic when a clause is added or removed. */
.legal { counter-reset: section; }
.legal h2 { counter-increment: section; counter-reset: clause; }
.legal h2::before { content: counter(section) ". "; color: var(--label-3); font-variant-numeric: tabular-nums; }
.legal ol.clauses { list-style: none; padding: 0; margin: 0; }
.legal ol.clauses > li { counter-increment: clause; position: relative; padding-left: 46px; margin-top: 12px; color: var(--label-2); }
.legal ol.clauses > li::before { content: counter(section) "." counter(clause); position: absolute; left: 0; top: 0; color: var(--label-3); font-variant-numeric: tabular-nums; }
.legal ol.clauses ul { margin-top: 8px; padding-left: 20px; }
.legal .preamble { color: var(--label-2); margin-top: 20px; }

/* Footer */
footer { margin-top: 96px; padding: 40px 0 56px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--label-3); font-size: 14px; }
.foot .mark { display: flex; align-items: center; gap: 14px; }
.foot .mark img { width: 40px; height: 40px; opacity: .55; }
.foot .mark img { filter: none; }
@media (prefers-color-scheme: dark) { .foot .mark img { filter: invert(1); } }
.foot p { line-height: 1.5; }
.foot nav { display: flex; gap: 20px; }
.foot nav a { color: var(--label-2); }

@media (max-width: 760px) {
  .nav { position: static; padding: 20px 0 0; }
  .nav::after { display: none; }
  body { padding-top: 0; }
  [id] { scroll-margin-top: 16px; }
  .grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 40px; }
  section { padding-top: 56px; }
  /* The wordmark is dropped so the header fits a phone, but stays in the accessibility tree
     so the home link keeps its name. */
  .brand .wordmark {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
}

/* Nav button */
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 15px; }
.nav-links a.btn { color: var(--on-accent); }
.nav-links a.btn:hover { color: var(--on-accent); }

/* Category names, side by side */
.kinds { display: flex; gap: 12px; margin-top: 36px; }
.kind { flex: 1 1 0; min-width: 0; padding: 22px 12px; border-radius: var(--r-card); background: var(--bg-2); text-align: center; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
@media (max-width: 640px) { .kind { flex: 1 1 calc(50% - 6px); } .kinds { flex-wrap: wrap; } }

/* Four-up grid and stacked grids */
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid + .grid { margin-top: 16px; }

/* Questions */
.faq { max-width: 760px; margin: 36px auto 0; display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: var(--r-card); background: var(--bg-2); padding: 0 24px; }
.faq summary { list-style: none; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--label-3); font-size: 22px; line-height: 1; font-weight: 400; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; color: var(--label-2); }

/* Donation strip */
.strip.donate { margin-top: 16px; background: var(--blue-fill); color: var(--on-accent); }
.strip.donate p { color: rgba(255,255,255,.92); }
.strip.donate .btn { background: var(--on-accent); color: var(--blue-fill); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.form[hidden] { display: none; }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.form legend, .form label.top { display: block; font-weight: 600; color: var(--label); padding: 0; margin: 0 0 8px; }
.form .choice { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-control); background: var(--bg-2); color: var(--label); cursor: pointer; margin: 0; }
.form .choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.form textarea, .form input[type="email"] { display: block; width: 100%; font: inherit; color: var(--label); background: var(--bg-2); border: 0; border-radius: var(--r-control); padding: 12px 14px; }
.form textarea { min-height: 120px; resize: vertical; }
.form .hint { margin-top: 8px; font-size: 14px; color: var(--label-3); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .err { color: var(--red); margin: 0; }
.form .err[hidden] { display: none; }
.form .actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form .actions .hint { margin: 0; }
.form button.btn { border: 0; cursor: pointer; font-family: inherit; }
.form button.btn:disabled { opacity: .5; cursor: default; }
.done { margin-top: 28px; padding: 28px; border-radius: var(--r-card); background: var(--bg-2); }
.done[hidden] { display: none; }
.done h2 { margin: 0; font-size: 24px; }
.done p { margin-top: 10px; }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid-4 { grid-template-columns: 1fr; }
}
