/* Shelf Pulse product page: same colours as the app (src/web_ui.py), light and dark. No build step. */
:root {
  --bg: #f5f6f8; --card: #ffffff; --ink: #1d2433; --muted: #6b7385; --line: #e6e8ee;
  --accent: #4f46e5; --accent-soft: #eef0ff; --teal: #22c1c3;
  --good: #0f9f6e; --bad: #d4483b; --warn: #c27c0e;
  --radius: 14px; --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f131a; --card: #171c25; --ink: #e8ebf2; --muted: #98a1b3; --line: #262d3a;
          --accent: #8b85ff; --accent-soft: #23264a; --shadow: none;
          --good: #3ccf9a; --bad: #f07a6e; --warn: #e6a640; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.bar { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
header.top { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line);
             background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px); }
.brand { font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand i { width: 22px; height: 22px; border-radius: 7px; display: inline-block;
           background: linear-gradient(135deg, var(--accent), var(--teal)); }
nav { display: flex; gap: 4px; }
nav a { color: var(--muted); padding: 6px 10px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; }
nav a:hover { color: var(--ink); background: var(--card); text-decoration: none; }
.signin { margin-left: auto; font-weight: 600; font-size: 14px; white-space: nowrap; }

main { max-width: 1120px; margin: 0 auto; padding: 0 20px 48px; }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; letter-spacing: -.02em; margin: 8px 0 16px; }
h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -.01em; margin: 0 0 14px; }
h3 { font-size: 17px; margin: 10px 0 6px; }
p { margin: 0 0 12px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; margin: 0; }
.lead { font-size: 18px; color: var(--muted); max-width: 34em; }
.small { font-size: 14px; color: var(--muted); }
.hint { color: var(--muted); font-weight: 400; font-size: 13px; }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 64px 0 40px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 12px; }
.button, button { font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: 10px;
                  padding: 11px 18px; cursor: pointer; display: inline-block; }
.button:hover, button:hover { text-decoration: none; filter: brightness(1.08); }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

.mock { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.mock-head { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-title { margin-left: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.mock-body { padding: 16px 18px 18px; }
.mock-date { font-size: 12px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.digest { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; font-size: 15px; }
.digest li { line-height: 1.5; }
.digest li b { font-weight: 600; }
.digest .tag { display: inline-block; margin-right: 8px; vertical-align: 1px; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
       text-transform: uppercase; letter-spacing: .03em; }
.tag.down { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.tag.low { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
.tag.new { color: var(--accent); background: var(--accent-soft); }
.tag.up { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.spark { color: var(--accent); border-top: 1px solid var(--line); padding-top: 12px; }
.spark svg { width: 100%; height: 56px; display: block; }
.spark span { font-size: 12px; color: var(--muted); }

.section { padding: 40px 0; border-top: 1px solid var(--line); }
.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.split p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
                     background: var(--accent-soft); box-shadow: inset 0 0 0 5px var(--accent-soft), inset 0 0 0 9px var(--accent); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; color: var(--muted); }
.steps li b { color: var(--ink); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
                    display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--accent); background: var(--accent-soft); }

.access { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 28px; }
.access > div p { color: var(--muted); }
form { display: grid; gap: 4px; }
label { font-size: 14px; font-weight: 600; margin-top: 8px; }
input, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
                  padding: 10px 12px; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
form button { margin-top: 14px; justify-self: start; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; }

.privacy p { color: var(--muted); max-width: 46em; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .bar { justify-content: space-between; padding-top: 20px; padding-bottom: 28px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero, .split, .access { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 36px; }
  .grid.three, .steps { grid-template-columns: 1fr; }
  nav { display: none; }
}
@media (max-width: 420px) {
  .bar, main { padding-left: 16px; padding-right: 16px; }
  .access { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
