/* Shared styles for the search landing pages (/reddit, /freedom, ...).
   Same look as the setup guide. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --text: #e0e0e0;
  --text-muted: #888;
  --text-dim: #666;
  /* Violet, as on the homepage: pale for text, saturated for the main buttons */
  --accent: #a99bff;
  --accent-fill: #5b3fe6;
  --accent-fill-hover: #6d54ee;
  --border: #2a2a2a;
  --max-width: 720px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

header {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--border);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.brand img {
  width: 28px;
  height: 28px;
}

.nav-account {
  font-size: 0.875rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 6px 14px;
}

.nav-account:hover {
  background: rgba(169, 155, 255, 0.12);
  text-decoration: none;
}

main {
  padding: 56px 0 88px;
}

h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 56px;
  margin-bottom: 16px;
  color: #fff;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
  color: #fff;
}

p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

ul {
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-left: 24px;
}

li {
  margin-bottom: 10px;
}

strong {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s;
}

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

.btn-primary {
  background: var(--accent-fill);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-fill-hover);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 8px;
}

.note {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

table.compare th,
table.compare td {
  text-align: left;
  vertical-align: top;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
}

table.compare th {
  color: #fff;
  font-weight: 600;
}

table.compare td {
  color: var(--text-muted);
}

table.compare td:first-child {
  color: var(--text);
  width: 28%;
}

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.875rem;
}

footer a {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 16px;
}

.footer-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 10px;
}

.footer-group-label {
  color: var(--text-dim);
}

.footer-group + .footer-links {
  margin-top: 22px;
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.75rem;
  }

  .button-row {
    flex-direction: column;
  }

  table.compare {
    font-size: 0.875rem;
  }

  table.compare th,
  table.compare td {
    padding: 10px 6px;
  }
}
