:root {
  color-scheme: dark;
  --bg: #09090b;
  --fg: #fafafa;
  --muted: #71717a;
  --line: #27272a;
  --surface: #18181b;
  --accent: #a1a1aa;
  --accent-hover: #fafafa;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
}

.page {
  max-width: 420px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}

.hero {
  margin-bottom: 2.5rem;
}

.label {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.subtitle {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.install {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.bookmarklet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: grab;
  user-select: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.bookmarklet:hover {
  border-color: #3f3f46;
  background: #1f1f23;
}

.bookmarklet:active {
  cursor: grabbing;
}

.install-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 1.25rem;
}

.text-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.15s ease;
}

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

.toast {
  color: #86efac;
  font-size: 0.85rem;
}
