/* Small additions for the server-rendered site. The palette lives in style.css. */
.seg a { font: inherit; color: var(--text-2); padding: 6px 12px; border-radius: 7px; }
.seg a:hover { background: var(--wash); color: var(--text-1); text-decoration: none; }
.seg a[aria-pressed="true"] { background: var(--axis); color: var(--text-1); font-weight: 600; text-decoration: none; }
.empty { color: var(--muted); padding: 18px 0; }
a.dur { color: inherit; text-decoration: none; display: block; }
a.dur:hover { text-decoration: none; }
.legal h2, main.section h2 { margin: 22px 0 8px; font-size: 16px; }
main.section h1 { font-size: 28px; letter-spacing: -0.02em; margin-bottom: 12px; }
footer.site .mark { width: 18px; height: 18px; }

/* Landing illustrations. Sample data only — no photos, so they stay sharp. */
.demo-browser {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  margin: 0 auto;
  max-width: 980px;
}
.demo-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #141413;
  border-bottom: 1px solid var(--border);
}
.demo-dots { display: inline-flex; gap: 5px; }
.demo-dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.demo-dots i:nth-child(1) { background: #d03b3b; }
.demo-dots i:nth-child(2) { background: #c98500; }
.demo-dots i:nth-child(3) { background: #199e70; }
.demo-url {
  color: var(--muted);
  font-size: 12px;
  background: #0d0d0d;
  border-radius: 999px;
  padding: 3px 10px;
}
.demo-caption { margin-left: auto; color: #ffd27a; font-size: 12px; font-weight: 600; }
.demo-screen { padding: 16px; }
.demo-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.demo-tabs { display: inline-flex; background: #121211; border: 1px solid var(--border); border-radius: 9px; padding: 2px; flex-wrap: wrap; }
.demo-tabs span { color: var(--text-2); padding: 4px 9px; border-radius: 7px; font-size: 12px; }
.demo-tabs span.on { background: var(--axis); color: var(--text-1); font-weight: 600; }
.demo-kpis { display: grid; gap: 10px; grid-template-columns: 1.5fr repeat(3, 1fr); margin-bottom: 12px; }
.demo-tile { background: #121211; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.demo-tile .label { color: var(--text-2); display: flex; align-items: center; gap: 7px; font-size: 13px; }
.demo-tile .value { font-size: 26px; font-weight: 700; margin-top: 2px; }
.demo-tile.hero .value { font-size: 42px; line-height: 1.05; color: #ffd27a; }
.demo-tile .meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.demo-split { display: grid; gap: 10px; grid-template-columns: 1.15fr .85fr; }
.demo-card { background: #121211; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.demo-card h3 { margin-bottom: 6px; }
.demo-card .hint { margin-bottom: 8px; }
.demo-chart { width: 100%; height: auto; display: block; }
.demo-legend { display: flex; gap: 14px; color: var(--text-2); font-size: 12px; margin-top: 4px; }
.demo-legend span { display: inline-flex; align-items: center; gap: 6px; }
.demo-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.demo-legend i.line { width: 14px; height: 2px; border-radius: 1px; }
.demo-feed { list-style: none; margin: 0; padding: 0; }
.demo-feed li { display: flex; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--grid); color: var(--text-2); font-size: 13px; }
.demo-feed li:last-child { border-bottom: 0; }
.demo-feed b { color: var(--text-1); font-weight: 600; }
.demo-feed time { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.demo-note { text-align: center; color: var(--muted); font-size: 12px; margin: 10px 0 8px; }
.demo-sub { text-align: center; font-size: 20px; margin: 36px 0 4px; letter-spacing: -.01em; }
.demo-lead { margin-bottom: 18px; }
.demo-journey, .demo-setup { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.demo-journey { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.demo-setup { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.demo-journey li, .demo-setup li { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.demo-journey li > p, .demo-setup li > p { color: var(--text-2); font-size: 13px; margin: 0; }
.demo-phone {
  background: #0f1a24;
  border: 7px solid #2c2c2a;
  border-radius: 26px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}
.demo-phone.short { min-height: 220px; }
.demo-setup .demo-mini { min-height: 220px; }
.demo-pbar { display: flex; gap: 8px; align-items: center; padding: 12px 10px 8px; border-bottom: 1px solid #1f3346; color: #dfe7ee; font-size: 12px; }
.demo-pbar b { display: block; font-size: 12px; }
.demo-pbar i { display: block; font-style: normal; color: #7d93a8; font-size: 10px; }
.demo-ava {
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex: none;
}
.demo-ava.ch1 { background: var(--s-joined); }
.demo-ava.ch2 { background: var(--s-ch2); }
.demo-pbody { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.demo-bubble { background: #1d2c3b; color: #dfe7ef; border-radius: 12px; padding: 8px 10px; font-size: 12px; line-height: 1.4; max-width: 95%; }
.demo-bubble.me { background: #2b5278; margin-left: auto; }
.demo-chip { align-self: flex-end; background: #22384d; color: #bfe0ff; border-radius: 8px; padding: 6px 8px; font-size: 11px; }
.demo-ok { align-self: flex-start; color: #7fe07f; font-size: 11px; font-weight: 700; border: 1px solid rgba(12, 163, 12, .45); border-radius: 999px; padding: 2px 8px; }
.demo-system { text-align: center; color: #9cc4f5; font-size: 12px; background: rgba(57, 135, 229, .12); border-radius: 8px; padding: 8px; }
.demo-system.in { color: #ffd27a; background: rgba(201, 133, 0, .15); }
.demo-join { background: #2b6cb0; color: #fff; text-align: center; border-radius: 8px; padding: 8px; font-size: 12px; font-weight: 700; }
.demo-counter { margin-top: auto; background: #121211; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; display: flex; justify-content: space-between; gap: 8px; color: var(--text-2); font-size: 11px; }
.demo-counter b { color: #ffd27a; }
.demo-pick { display: flex; gap: 8px; align-items: center; background: #1d2c3b; border-radius: 8px; padding: 8px; color: #dfe7ef; font-size: 12px; }
.demo-pick.on { outline: 2px solid #7fb2f0; }
.demo-mini { background: #121211; border: 1px solid var(--border); border-radius: 14px; min-height: 180px; padding: 16px; display: flex; align-items: center; }
.demo-form, .demo-live { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.demo-form span, .demo-live { color: var(--text-2); font-size: 12px; }
.demo-input { background: #0d0d0d; border: 1px solid var(--axis); border-radius: 8px; padding: 8px 10px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.demo-btn { background: var(--brand); color: #fff; text-align: center; border-radius: 8px; padding: 8px; font-weight: 600; font-size: 13px; }
.demo-check { color: var(--text-1); font-size: 13px; }
.demo-check::before { content: "✓ "; color: var(--good); font-weight: 700; }
@media (max-width: 980px) {
  .demo-kpis { grid-template-columns: 1fr 1fr; }
  .demo-tile.hero { grid-column: 1 / -1; }
  .demo-split { grid-template-columns: 1fr; }
  .demo-journey { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .demo-chrome { flex-wrap: wrap; }
  .demo-caption { margin-left: 0; }
  .demo-kpis, .demo-journey, .demo-setup { grid-template-columns: 1fr; }
  .demo-tile.hero { grid-column: auto; }
  .demo-tabs span { padding: 4px 7px; }
}
