:root { --ink: #1b2a4a; --accent: #b8935a; --bg: #f7f5f0; --card: #fff; --muted: #5f6672; --ok: #2f7d4f; --no: #a33; --mid: #b07a12; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: #1d1d1f; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
section { max-width: 960px; margin: 0 auto; padding: 24px 16px; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.15; color: var(--ink); margin: 0 0 12px; }
h2 { color: var(--ink); }
a { color: var(--ink); }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--ink); color: #fff; }
.bar nav a { color: #fff; margin-left: 16px; text-decoration: none; }
.brand { letter-spacing: .02em; }
.demo-banner { margin: 0; padding: 6px 16px; text-align: center; background: #fff1b8; font-size: .9rem; }
.hero p { font-size: 1.1rem; max-width: 46em; }
.steps { padding-left: 1.2em; }
.muted { color: var(--muted); }
.error { color: var(--no); }
.card { background: var(--card); border-radius: 10px; padding: 16px; margin: 12px 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spread { justify-content: space-between; }
label { display: block; margin-bottom: 10px; }
input, textarea { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 6px; font: inherit; }
button { padding: 9px 16px; border: 0; border-radius: 6px; background: var(--ink); color: #fff; font: inherit; cursor: pointer; }
button.secondary { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.pack { position: relative; background: var(--card); border-radius: 10px; padding: 16px; text-align: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.pack.best { outline: 2px solid var(--accent); }
.pack .price { font-size: 1.8rem; font-weight: 700; margin: 4px 0; color: var(--ink); }
.pack .save { color: var(--ok); font-weight: 600; margin: 0 0 8px; }
.tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 10px; }
.costs { margin-top: 16px; }
.costs table { border-collapse: collapse; width: 100%; font-size: .9rem; overflow-x: auto; display: block; }
.costs th, .costs td { border-bottom: 1px solid #ddd; padding: 4px 8px; text-align: left; white-space: nowrap; }
.credits { font-size: 1.1rem; }
.score { font-size: 1.4rem; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.chip { padding: 2px 10px; border-radius: 12px; font-size: .85rem; background: #eee; }
.chip.yes { background: #dcefe3; color: var(--ok); }
.chip.adjacent { background: #fbefd5; color: var(--mid); }
.chip.no { background: #f6dcdc; color: var(--no); }
.paywall { position: relative; margin-top: 12px; }
.skeleton { filter: blur(3px); user-select: none; pointer-events: none; }
.skeleton .line { height: 10px; margin: 6px 0; background: #cfd5df; border-radius: 4px; }
.skeleton .wide { width: 95%; }
.skeleton .sk-title { margin: 12px 0 4px; font-weight: 600; color: #8892a2; }
.lock { position: absolute; inset: 20% 8% auto; background: rgba(255, 255, 255, .95); border-radius: 10px; padding: 16px; text-align: center; box-shadow: 0 2px 12px rgba(0, 0, 0, .15); }
.jobs { padding-left: 1.2em; }
dialog { border: 0; border-radius: 10px; max-width: 420px; width: calc(100% - 32px); }
code { word-break: break-all; }
label.inline { display: inline-flex; gap: 6px; align-items: center; margin-left: 12px; }
label.inline select { padding: 4px; }
.checkout { max-width: 520px; }
.summary td { padding: 4px 0; }
.summary td:last-child { text-align: right; font-weight: 600; }
.total td { border-top: 1px solid #ddd; padding-top: 8px; font-size: 1.15rem; }
.receipt { border-left: 4px solid var(--ok); }
.chat { list-style: none; padding: 0; max-height: 320px; overflow-y: auto; }
.chat li { margin: 6px 0; padding: 8px 10px; border-radius: 8px; background: #f0f2f6; white-space: pre-wrap; }
.chat li.me { background: #e6ecf7; margin-left: 15%; }
.chat-row input { flex: 1; min-width: 0; }
button.danger { background: var(--no); }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; }
.consent input { width: auto; margin-top: 4px; }
.legal table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: .9rem; }
.legal th, .legal td { border-bottom: 1px solid #ddd; padding: 6px 8px; text-align: left; vertical-align: top; }
.foot { text-align: center; padding: 24px 16px; font-size: .9rem; }
/* 6.7, 6.8: the brand link, a link drawn as a button, the admin page. */
.bar .brand { color: #fff; text-decoration: none; font-weight: 700; }
a.button { display: inline-block; padding: 9px 16px; border-radius: 6px; background: var(--ink); color: #fff; text-decoration: none; }
.admin { max-width: 960px; margin: 0 auto; padding: 0 16px 24px; }
.admin table { border-collapse: collapse; }
.admin th, .admin td { padding: 4px 10px 4px 0; text-align: left; border-bottom: 1px solid #eee; }
.admin form.row input { flex: 1 1 10em; }
button:disabled { opacity: .45; cursor: not-allowed; }
.notice { border-left: 4px solid #c9a227; }
