/* Tokens mirror extension/content/theme.css so the site looks like the extension. */
:root {
  --bg: #0e0f11;
  --surface: #16181b;
  --surface-2: #1b1d21;
  --surface-3: #23262b;
  --surface-4: #2c3036;
  --border: #25282d;
  --border-2: #34383e;
  --text: #e6e8eb;
  --text-2: #b7bcc3;
  --muted: #878d95;
  --faint: #60666e;
  --link: #7eaaff;
  --accent: #ff6b3d;
  --on-accent: #111214;
  --radius: 10px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-3);
  font: 0.88em var(--mono);
}

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 24px;
  font-size: 26px;
}

h3 {
  font-size: 16px;
}

section {
  padding: 56px 24px;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
}

.brand:hover {
  text-decoration: none;
}

.top nav {
  display: flex;
  gap: 24px;
}

.top nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.top nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 56px;
  padding-top: 64px;
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.accent {
  color: var(--accent);
}

.lede {
  max-width: 34em;
  margin: 20px 0 28px;
  color: var(--text-2);
  font-size: 18px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  border-color: var(--faint);
  background: var(--surface-3);
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.button.primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, white);
}

.fine {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 13px;
}

/* Front-page illustration */
.mock {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.55);
  font-size: 13px;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.mock-logo {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--accent);
}

.mock-search {
  flex: 1;
  height: 24px;
  border-radius: 6px;
  background: var(--surface-3);
}

.mock-pill {
  width: 56px;
  height: 22px;
  border-radius: 11px;
  background: var(--surface-4);
}

.mock-list {
  margin: 0;
  padding: 6px 0;
  list-style: none;
}

.mock-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
}

.mock-list li.sel {
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  box-shadow: inset 2px 0 var(--accent);
}

.vote {
  flex: none;
  width: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.vote.up {
  color: var(--accent);
}

.thumb {
  flex: none;
  width: 52px;
  height: 40px;
  border-radius: 6px;
}

.t1 { background: linear-gradient(135deg, #6b4a32, #a87b52); }
.t2 { background: linear-gradient(135deg, #2c4f6b, #5b93ff); }
.t3 { background: var(--surface-3); }
.t4 { background: linear-gradient(135deg, #ff9a5a, #7a3f5e); }
.t5 { background: linear-gradient(135deg, #25332c, #37c98a); }

.post {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.post b {
  overflow: hidden;
  color: #eceef1;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.post i {
  color: var(--faint);
  font-size: 11.5px;
  font-style: normal;
}

/* Features */
.features,
.install,
.privacy {
  border-top: 1px solid var(--border);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid article,
.steps article {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.grid p,
.privacy p {
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 15px;
}

/* Install */
.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.steps article:target {
  border-color: var(--accent);
}

.steps h3 {
  font-size: 18px;
}

.steps small {
  margin-left: 6px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 500;
}

.steps ol {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--text-2);
}

.steps li + li {
  margin-top: 6px;
}

.steps b {
  color: var(--text);
}

.note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.privacy p {
  max-width: 44em;
  margin: 0;
}

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 13px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 32px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }

  section {
    padding: 40px 16px;
  }

  .grid,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .top nav {
    gap: 16px;
  }

  .thumb {
    display: none;
  }
}

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

  * {
    transition: none !important;
  }
}
