/* Welcome page — same color scheme as the extension's side window (extension/src/panel/panel.css). */
:root {
  color-scheme: dark;
  --bg: #121213;
  --border: #202021;
  --text: #95959e;
  --text-strong: #ececf1;
  --accent: #3a84f1;
  --accent-hover: #5596f4;
  --surface: #17171a;
  --ring: rgba(58, 132, 241, 0.45);
  --radius: 12px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

b { color: var(--text-strong); font-weight: 600; }

.page {
  max-width: 57rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 3rem;
  color: var(--text-strong);
  font-weight: 600;
}
.brand img { width: 2rem; height: 2rem; }

/* Only the section that matches body[data-mode] is visible. */
.mode { display: none; }
body[data-mode="pin"] .mode-pin,
body[data-mode="usage"] .mode-usage { display: block; animation: fade-in 0.25s ease-out; }

@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h1 {
  margin: 0 0 1.25rem;
  text-align: center;
  color: var(--text-strong);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: clamp(1.0625rem, 2.2vw, 1.375rem);
  line-height: 1.45;
}

/* Numbered markers that match the (1) (2) (3) callouts in the screenshots. */
.marker {
  display: inline-grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
  vertical-align: 0.1em;
}

.shot { margin: 0 0 3.5rem; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.shot figcaption {
  margin-top: 1rem;
  text-align: center;
  font-size: 1.0625rem;
}

/* Until the real screenshots are added (see README.md), app.js swaps a missing image for its label. */
[data-placeholder].is-missing img { display: none; }
[data-placeholder].is-missing::before {
  content: attr(data-placeholder);
  display: grid;
  place-items: center;
  min-height: 12rem;
  padding: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  font-size: 0.9375rem;
}
.shot-toolbar.is-missing::before { min-height: 6rem; }

/* Usage guide steps: text on the left, a screenshot of the library on the right. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: 2rem;
  align-items: center;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  color: var(--text-strong);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}
.step p { margin: 0 0 0.75rem; font-size: 1.0625rem; }
.step p:last-child { margin-bottom: 0; }

.num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.125rem;
  font-weight: 700;
}

.popup { margin: 0; }
.popup img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Inline Lucide-style icons next to the control names. */
.ico-inline { white-space: nowrap; }
.ico-inline svg {
  width: 1.05em;
  height: 1.05em;
  margin: 0 0.25em 0 0.05em;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The floating button on ChatGPT and Gemini, in miniature. */
.fab {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin: 0 0.3em 0 0.1em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(58, 132, 241, 0.25);
  vertical-align: -0.05em;
}

/* The «USE THIS PROMPT» button, in miniature. */
.pill {
  display: inline-block;
  padding: 0.1em 0.6em;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tip {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-strong);
}

.switch {
  margin: 2.5rem 0 0;
  text-align: center;
  font-size: 1.0625rem;
}
.switch a {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.6rem 0.25rem;
  color: var(--accent);
  font-weight: 500;
  text-underline-offset: 0.2em;
}
.switch a:hover { color: var(--accent-hover); }
a:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

@media (max-width: 720px) {
  .brand { margin-bottom: 2rem; }
  .lead { margin-bottom: 1.75rem; }
  .shot { margin-bottom: 2.5rem; }
  .step { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem; }
  .step h2 { font-size: 1.3rem; }
  .popup { max-width: 17rem; margin: 0 auto; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-mode] .mode { animation: none; }
}

/* Text pages (privacy.html). */
.doc { max-width: 46rem; }
.doc h1 { margin-bottom: 0.5rem; }
.doc .updated { margin: 0 0 2.5rem; text-align: center; }
.doc h2 { margin: 2.25rem 0 0.75rem; color: var(--text-strong); font-size: 1.375rem; }
.doc p, .doc li { font-size: 1.0625rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: 0.5rem; }
.doc a { color: var(--accent); }
