/* Info pages (about, terms, contact, instructions) – builds on style.css */
.page { max-width: 820px; margin: 0 auto; padding: 48px calc(22px + var(--safe-r)) calc(72px + var(--safe-b)) calc(22px + var(--safe-l)); }
.page-hero { margin-bottom: 36px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { margin: 0; color: var(--muted); font-size: 1.1rem; max-width: 56ch; }
.card { background: var(--ink-800); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); margin-bottom: 18px; }
.card h2 { font-size: 1.25rem; margin-bottom: 12px; }
.card p, .card li { color: var(--muted); }
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }
.card strong { color: var(--text); font-weight: 650; }
.card ul, .card ol { padding-left: 1.2em; }
.card li { margin-bottom: 8px; }
.card.note { border-left: 4px solid var(--warn); }
.card.note h2 { color: var(--warn); }
code, .tag-code { font: 600 .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 2px 8px; border-radius: 6px; background: var(--ink-950); color: var(--cyan); }
.pull { margin: 18px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--secure); color: var(--text); font-size: 1.1rem; }
.footer { text-align: center; padding: 0 20px calc(40px + var(--safe-b)); color: var(--muted); font-size: 14px; }
.footer a { color: var(--muted); }

/* connection diagram */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; margin: 6px 0 24px; padding: 28px 18px; border-radius: var(--r-lg); background: var(--ink-950); border: 1px solid var(--line); }
.node { text-align: center; }
.node .box { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 18px; background: var(--ink-700); }
.node.mid .box { background: rgba(52, 224, 161, .12); color: var(--secure); }
.node strong { display: block; font-size: 14px; }
.node span { font-size: 12.5px; color: var(--muted); }
.node code { display: inline-block; margin-top: 4px; font-size: 12px; }
.link { position: relative; width: clamp(28px, 7vw, 80px); height: 2px; background: var(--ink-600); overflow: hidden; border-radius: 2px; }
.link::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: travel 1.8s linear infinite; }
@keyframes travel { from { left: -40%; } to { left: 100%; } }
@media (max-width: 640px) {
  .flow { grid-template-columns: 1fr; gap: 6px; }
  .link { width: 2px; height: 34px; margin: 0 auto; }
  .link::after { width: 100%; height: 40%; top: -40%; background: linear-gradient(180deg, transparent, var(--cyan), transparent); animation-name: travel-v; }
  @keyframes travel-v { from { top: -40%; } to { top: 100%; } }
}

/* contact */
.card form .field:last-of-type { margin-bottom: 20px; }
textarea { min-height: 140px; resize: vertical; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent-note { margin-bottom: 18px; padding: 12px 16px; border-radius: var(--r-md); background: rgba(52, 224, 161, .12); border: 1px solid rgba(52, 224, 161, .4); color: var(--secure); font-weight: 600; }
