/* Task List welcome page. Same tokens as the extension and site/style.css (shadcn-like). */
:root {
  --background: oklch(0.985 0 0);
  --foreground: oklch(0.21 0 0);
  --muted-foreground: oklch(0.5 0 0);
  --border: oklch(0.92 0 0);
  --card: oklch(1 0 0);
  --accent: oklch(0.55 0.19 262);
  --accent-foreground: oklch(0.99 0 0);
  --mark: #dc2626;
  --radius: 0.75rem;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.16 0 0);
    --foreground: oklch(0.96 0 0);
    --muted-foreground: oklch(0.7 0 0);
    --border: oklch(0.3 0 0);
    --card: oklch(0.2 0 0);
    --accent: oklch(0.68 0.16 262);
    --accent-foreground: oklch(0.16 0 0);
    --mark: #f87171;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.brand { display: flex; align-items: center; gap: 0.5rem; max-width: 56rem; margin: 0 auto; padding: 1rem; font-weight: 600; }
.brand img { width: 2rem; height: 2rem; }
.page { max-width: 56rem; margin: 0 auto; padding: 1rem 1rem 4rem; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.5rem); line-height: 1.2; margin: 1rem 0 0.5rem; text-align: center; letter-spacing: -0.01em; }
h2 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.25rem; margin: 0 0 0.5rem; }
.lead, .step-text, .switch, .note { text-align: center; }
.lead { color: var(--muted-foreground); font-size: 1.125rem; margin: 0 0 2rem; }
.step-text { font-size: 1.125rem; max-width: 40rem; margin: 2rem auto 1rem; }
p { overflow-wrap: anywhere; }

/* Only the section that matches body[data-mode] is shown. */
.mode { display: none; }
body[data-mode="pin"] .mode-pin,
body[data-mode="usage"] .mode-usage { display: block; }

/* Step numbers: red outlined circle, the same look as the markers on the screenshots. */
.num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 1.75rem; height: 1.75rem; border-radius: 999px;
  border: 2px solid var(--mark); background: var(--card); color: var(--mark);
  font-size: 0.9375rem; font-weight: 700; line-height: 1; vertical-align: 0.1em;
}

.shot { position: relative; margin: 0 auto; max-width: 36rem; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.shot img { display: block; width: 100%; height: auto; }
.shot-strip { max-width: 30rem; }
/* Markers on a screenshot: number badge → arrow → ring around the target.
   The SVG uses the image's pixel coordinates (viewBox) and scales with it.
   Always red on the light screenshots, in both page themes. */
.marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.marks .halo { fill: none; stroke: rgb(220 38 38 / 0.22); stroke-width: 14; }
.marks .ring { fill: none; stroke: #dc2626; stroke-width: 5; }
.marks .badge { fill: #fff; stroke: #dc2626; stroke-width: 5; }
.marks .arrow { fill: none; stroke: #dc2626; stroke-width: 5; stroke-linecap: round; }
.marks .head { fill: #dc2626; }
.marks text { fill: #dc2626; font: 700 40px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-anchor: middle; dominant-baseline: central; }

.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.card {
  display: grid; grid-template-columns: 1fr minmax(0, 20rem); gap: 1.5rem; align-items: center;
  padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
}
.card p { margin: 0 0 0.5rem; }
.card > img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: calc(var(--radius) - 0.25rem); }
@media (max-width: 40rem) {
  .card { grid-template-columns: 1fr; }
  .card > img { max-width: 18rem; justify-self: center; }
}

kbd, code {
  font: 0.875em ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 0.1rem 0.4rem; border: 1px solid var(--border); border-radius: 0.375rem; background: var(--background); white-space: nowrap;
}
.note { color: var(--muted-foreground); font-size: 0.875rem; margin-top: 1.5rem; }

.switch { margin-top: 2.5rem; color: var(--muted-foreground); }
.switch a {
  display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; padding: 0 0.75rem;
  color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; border-radius: 0.5rem;
}
.switch a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
