:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --border: #334155;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

header {
  padding: 2rem 1.5rem 1rem;
  text-align: center;
}

header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
}

header p {
  color: var(--muted);
  margin: 0;
}

.ai-banner {
  max-width: 640px;
  margin: 1rem auto 0;
  padding: 0.6rem 1rem;
  background: #0c2f3e;
  border: 1px solid #155e75;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #7dd3fc;
  text-align: center;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  display: grid;
  gap: 1.25rem;
}

.tool {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.tool h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.tool textarea, .tool input[type="text"] {
  width: 100%;
  background: #0f172a;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  resize: vertical;
}

.tool textarea { min-height: 110px; }

.row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-top: 0.6rem; }

button {
  background: var(--accent);
  color: #0f172a;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover { opacity: 0.9; }

.stat { color: var(--muted); font-size: 0.85rem; }

.output {
  margin-top: 0.6rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.err { color: #f87171; }

.diff-half { flex: 1; min-width: 220px; }
.diff-removed { color: #f87171; }
.diff-added { color: #4ade80; }
.lorem-count-input { width: 60px; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

footer a { color: var(--accent); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.buy-button {
  display: inline-block;
  background: var(--accent);
  color: #0f172a;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.buy-button:hover { opacity: 0.9; }

.disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 1rem;
}

.checklist-promo {
  max-width: 640px;
  margin: 0.5rem auto 0;
  padding: 0.75rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
}

.checklist-promo a { color: var(--accent); font-weight: 600; }
