:root {
  --accent: #0f6fde;
  --accent-dark: #0a4fa3;
  --accent-tint: #e8f1fd;
  --ink: #16202e;
  --muted: #5d6b7e;
  --line: #dde3ea;
  --bg: #f5f7fa;
  --card: #ffffff;
  --good: #137a3a;
  --good-tint: #e5f5ea;
  --warn: #9a5b00;
  --warn-tint: #fff4e0;
  --bad: #b3261e;
  --bad-tint: #fdecea;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
h1 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 12px; }
h2 { font-size: 1.2rem; margin: 0 0 10px; }
h3 { font-size: 1rem; margin: 18px 0 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.hidden { display: none !important; }

/* ---------- top bar ---------- */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar .inner { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand .mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #4cc2ff); display: grid; place-items: center; color: #fff; font-size: 15px; }
.brand b { color: var(--accent); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a.active, .nav a:hover { background: var(--accent-tint); color: var(--accent-dark); }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-dark); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }

main { max-width: 1080px; margin: 0 auto; padding: 24px 16px 64px; }
main.narrow { max-width: 640px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; margin: 12px 0 4px; }
label .hint, .hint { font-weight: 400; color: var(--muted); font-size: 0.875rem; }
input[type='text'], input[type='email'], input[type='url'], input[type='tel'], input[type='number'], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #c8d1dc; border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-tint); border-color: var(--accent); }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid #c8d1dc;
  background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
}
button:hover, .button:hover { background: #f0f3f7; }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover, .button.primary:hover { background: var(--accent-dark); }
button.danger { color: var(--bad); }
button:disabled { opacity: 0.55; cursor: default; }
button.small, .button.small { padding: 5px 10px; font-size: 0.85rem; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1 1 240px; }
.form-error { color: var(--bad); background: var(--bad-tint); padding: 10px 12px; border-radius: 8px; margin-top: 12px; }
.form-ok { color: var(--good); background: var(--good-tint); padding: 10px 12px; border-radius: 8px; margin-top: 12px; }
.note { background: var(--warn-tint); color: #5a3d00; padding: 10px 12px; border-radius: 8px; }
/* New article form: live LinkedIn / X login check (public/js/logincheck.js) */
.login-check { margin-top: 16px; }
.login-check:empty { display: none; }
.login-top { margin-top: 0; }
.login-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.login-ok { color: var(--good); font-weight: 600; }
/* The ticks line with the feedback bar right-aligned (public/js/feedback.js); a phone wraps the bar under the ticks. */
.login-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.login-row:has(#login-state:empty):has(.fb-bar.hidden) { display: none; }
#login-state { flex: 1 1 auto; min-width: 0; }
.fb-bar { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--muted); font-size: 0.92rem; }
.fb-choices { display: inline-flex; align-items: center; gap: 2px; }
.fb-btn { background: none; border: 0; padding: 4px 6px; border-radius: 6px; font: inherit; color: var(--ink); cursor: pointer; }
.fb-btn:hover, .fb-btn:focus-visible { background: var(--accent-tint); color: var(--accent-dark); }
.fb-dot { color: var(--muted); }
.fb-close { color: var(--muted); font-size: 1.1rem; line-height: 1; margin-left: 4px; }
.fb-thanks { color: var(--good); font-weight: 600; }
@media (max-width: 640px) { .fb-bar { flex-basis: 100%; margin-left: 0; } }
/* On the "Log back into…" card: top right, the headline wraps beside it; on a phone it sits above the headline. */
.onboard > .fb-bar { float: right; margin: 0 0 8px 16px; }
@media (max-width: 640px) { .onboard > .fb-bar { float: none; margin: 0 0 10px; } }
/* Admin → Feedback: three pies side by side (stacked on a phone). */
.fb-pies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.fb-pie-box { text-align: center; }
.fb-pie-box h3 { margin: 0 0 10px; }
.fb-pie { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto; }
@media (max-width: 640px) { .fb-pies { grid-template-columns: 1fr; } }
.login-missing { color: var(--bad); font-weight: 600; }
.login-note { color: var(--bad); background: var(--bad-tint); padding: 10px 12px; border-radius: 8px; margin: 10px 0 0; }

/* ---------- home ---------- */
.hero { text-align: center; padding: 56px 16px 24px; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.hero p { font-size: 1.15rem; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 28px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.step b { display: block; margin-bottom: 4px; }
.google-btn { padding: 12px 22px; font-size: 1.05rem; }

/* ---------- status badges ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: #eef1f5; color: var(--muted); white-space: nowrap; }
.badge.working { background: var(--accent-tint); color: var(--accent-dark); }
.badge.ready { background: #eaf0ff; color: #2b4bb5; }
.badge.good { background: var(--good-tint); color: var(--good); }
.badge.warn { background: var(--warn-tint); color: var(--warn); }
.badge.bad { background: var(--bad-tint); color: var(--bad); }
.spinner { width: 14px; height: 14px; border: 2px solid var(--accent-tint); border-top-color: var(--accent); border-radius: 50%; display: inline-block; animation: spin 0.8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; position: relative; } /* keeps hidden screen-reader labels inside, so phones never scroll sideways */
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.02em; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #f8fafc; }
td .term { font-weight: 600; }
.test-now-wrap { white-space: nowrap; }
a.test-now { font-weight: 600; text-decoration: none; padding: 4px 2px; margin: -4px -2px; }
a.test-now:hover, a.test-now:focus-visible { text-decoration: underline; }

/* ---------- project page ---------- */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.article-preview { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.article-preview .cover { width: 100%; border-radius: 8px; display: block; margin-bottom: 16px; aspect-ratio: 16 / 9; object-fit: cover; background: #eef1f5; }
.article-preview h1 { font-size: 1.8rem; }
.article-preview h2 { font-size: 1.3rem; margin-top: 24px; }
.article-preview h3 { font-size: 1.05rem; }
.copy-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.chart { width: 100%; height: auto; }
.issues li { margin-bottom: 8px; }
.progress { display: flex; align-items: center; gap: 10px; padding: 14px; background: var(--accent-tint); border-radius: 8px; color: var(--accent-dark); }

/* ---------- admin ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat .n { font-size: 1.5rem; font-weight: 700; }
.stat .l { color: var(--muted); font-size: 0.85rem; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.switch input { width: 20px; height: 20px; }
footer.site { max-width: 1080px; margin: 0 auto; padding: 0 16px 32px; color: var(--muted); font-size: 0.85rem; }

/* ---------- live progress screen (round 2) ---------- */
.live { display: grid; gap: 16px; }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; position: relative; padding: 4px 0 2px; }
.tl-step { text-align: center; position: relative; }
.tl-step::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.tl-step:first-child::before { display: none; }
.tl-step.done::before, .tl-step.now::before { background: var(--accent); }
.tl-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; background: #fff; border: 2px solid var(--line); color: var(--muted); transition: all 0.3s; }
.tl-step.done .tl-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.tl-step.now .tl-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 0 rgba(15, 111, 222, 0.5); animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(15, 111, 222, 0.45); } 70% { box-shadow: 0 0 0 12px rgba(15, 111, 222, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 111, 222, 0); } }
.tl-name { font-weight: 600; font-size: 0.9rem; }
.tl-time { font-size: 0.78rem; color: var(--muted); min-height: 1.2em; }
.tl-step.now .tl-name { color: var(--accent-dark); }
.live-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.live-head .detail { color: var(--accent-dark); font-weight: 600; }
.live-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
/* The four AI agents (public/js/agents.js): waiting → working (glows) → done (tick). */
.agents { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.agent { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; transition: border-color 0.3s, background 0.3s; }
.agent-icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #eef1f5; color: var(--muted); }
.agent-body { min-width: 0; }
.agent-name { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.agent-line { font-size: 0.85rem; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.agent.waiting { opacity: 0.6; }
.agent.working { border-color: var(--accent); animation: glowpulse 1.8s ease-in-out infinite; }
.agent.working .agent-icon { background: var(--accent); color: #fff; }
.agent.working .agent-line { color: var(--accent-dark); font-weight: 600; }
.agent.done { border-color: #bfe3cb; background: var(--good-tint); }
.agent.done .agent-icon { background: #fff; color: var(--good); }
.agent-tick { color: var(--good); }
@media (max-width: 860px) { .agents { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .agents { grid-template-columns: 1fr; gap: 8px; } .agent { padding: 10px 12px; align-items: center; } .agent-icon { width: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce) { .agent.working { animation: none; outline: 3px solid #4cc2ff; outline-offset: 2px; } }
@media (max-width: 860px) { .live-grid { grid-template-columns: 1fr; } .tl-name { font-size: 0.78rem; } .tl-time { font-size: 0.7rem; } }

.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.page-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; font-size: 0.85rem; animation: pop 0.35s ease-out both; }
.page-card .t { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.page-card .d { color: var(--muted); font-size: 0.78rem; }
.page-card ul { margin: 6px 0 0; padding-left: 16px; color: var(--muted); font-size: 0.78rem; }
.page-card .ok { color: var(--good); font-weight: 600; font-size: 0.78rem; margin-top: 6px; }
.page-card .part { color: var(--warn); font-weight: 600; font-size: 0.78rem; margin-top: 6px; }
.page-card.snippet, .page-card.partial { border-style: dashed; }
.page-card.reading { background: linear-gradient(90deg, #f5f7fa 25%, #eaf1fb 50%, #f5f7fa 75%); background-size: 200% 100%; animation: pop 0.35s ease-out both, shimmer 1.2s linear infinite; }
.page-card.failed { background: #f5f7fa; color: var(--muted); border-style: dashed; }
@keyframes pop { from { transform: translateY(8px) scale(0.97); } to { transform: none; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.gaps li { margin-bottom: 6px; animation: pop 0.35s ease-out both; }
.gaps b { color: var(--accent-dark); }

.qmap { width: 100%; height: auto; display: block; }
.qmap .q { transition: fill 0.4s, stroke 0.4s; }
.qmap .q.lit circle { fill: var(--good); stroke: var(--good); }
.qmap .q.lit text { fill: var(--good); }
.qlist { list-style: none; padding: 0; margin: 8px 0 0; font-size: 0.85rem; }
.qlist li { padding: 3px 0 3px 22px; position: relative; color: var(--muted); }
.qlist li::before { content: '○'; position: absolute; left: 4px; }
.qlist li.lit { color: var(--ink); }
.qlist li.lit::before { content: '✓'; color: var(--good); font-weight: 700; }

.draft { max-height: 420px; overflow-y: auto; white-space: pre-wrap; background: #fbfcfe; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 0.93rem; line-height: 1.6; }
.draft .caret { display: inline-block; width: 8px; height: 1.1em; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.draft mark { background: var(--warn-tint); color: #5a3d00; border-radius: 3px; padding: 0 2px; }
.counter { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.counter .n { font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { flex: 1; height: 8px; background: #eef1f5; border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #4cc2ff); border-radius: 99px; transition: width 0.6s ease; }

.ticker { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.ticker li { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 0.88rem; animation: pop 0.3s ease-out both; }
.ticker .i { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; }
.ticker .v .i { background: var(--good-tint); color: var(--good); }
.ticker .c .i { background: var(--warn-tint); color: var(--warn); }
.ticker .fromto { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.ticker .fromto s { color: var(--bad); }

.finish { text-align: center; padding: 28px 16px; position: relative; overflow: hidden; }
.finish h2 { font-size: 1.5rem; margin-bottom: 6px; }
.finish .big { padding: 14px 28px; font-size: 1.1rem; margin-top: 12px; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; opacity: 0; animation: fall 1.8s ease-in forwards; }
@keyframes fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(260px) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .page-card, .gaps li, .ticker li { animation: none; } .tl-step.now .tl-dot { animation: none; } .confetti { display: none; } }

/* The posting button, the moment an article becomes ready. */
.glow { animation: glowpulse 1.1s ease-in-out 3; }
@keyframes glowpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(15, 111, 222, 0); } 50% { box-shadow: 0 0 0 10px rgba(15, 111, 222, 0.28), 0 0 24px 4px rgba(76, 194, 255, 0.55); } }
.finish .big:focus-visible { outline: 3px solid #4cc2ff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .glow { animation: none; outline: 3px solid #4cc2ff; outline-offset: 3px; } }

/* Small icon buttons in table rows (e.g. delete a project). */
.row-actions { width: 1%; text-align: right; vertical-align: middle; }
.icon-btn { padding: 6px; border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 8px; line-height: 0; }
.icon-btn:hover, .icon-btn:focus-visible { background: var(--bad-tint); color: var(--bad); border-color: #f3c7c3; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* My terms (public/app.html) */
.terms-form { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.terms-form textarea { flex: 1; min-height: 44px; resize: vertical; }
.terms-list { margin-top: 10px; }
.term-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 0.8fr) auto auto; gap: 10px; align-items: end; padding: 10px 0; border-top: 1px solid var(--line); }
.term-name { font-weight: 600; align-self: center; overflow-wrap: anywhere; }
.term-rec { display: flex; margin: 6px 0 0; font-weight: 400; font-size: 0.85rem; gap: 6px; }
.term-rec input { width: 16px; height: 16px; }
.term-bizname { margin: 6px 0 0; }
fieldset.biz { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 16px; margin: 16px 0 0; min-width: 0; }
fieldset.biz legend { font-weight: 700; padding: 0 6px; }
fieldset.biz .recommend { margin-top: 6px; }
/* "Link to my main article" (cluster linking), under About this business */
.cluster { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 14px; margin: 12px 0 0; }
.cluster #main-pick label { margin-top: 10px; }
textarea.nap { min-height: 76px; font-family: inherit; }
.term-field { margin: 0; font-weight: 400; }
.term-field .hint { display: block; font-size: 0.78rem; }
.term-field input, .term-field select { width: 100%; }
@media (max-width: 760px) {
  .term-row { grid-template-columns: 1fr 1fr; }
  .term-name { grid-column: 1 / -1; }
  .term-row [data-term-create] { justify-self: start; }
  .term-row [data-term-delete] { justify-self: end; }
}

/* Blog (src/blog.js) */
main.blog { max-width: 760px; }
.post h1 { font-size: 2rem; line-height: 1.2; margin: 4px 0 6px; }
.crumbs { margin: 0; }
.post-cover { width: 100%; height: auto; border-radius: 12px; margin: 14px 0 6px; display: block; }
.post-body, .post-faq { font-size: 1.05rem; line-height: 1.7; }
.post-body h2, .post-faq > h2 { margin-top: 1.8em; line-height: 1.3; }
.post-body h3, .post-faq h3 { margin-top: 1.4em; }
.post-body figure { margin: 1.5em 0; }
.post-body figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; display: block; }
.post-body .post-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; background: #0b2545; display: block; }
.post-body .post-video .post-video-title { margin: 0 0 12px; font-size: 1.45rem; line-height: 1.3; }
.post-body .post-video .post-video-cta { margin: 14px 0 0; text-align: center; }
.post-body .post-video .post-video-cta .button { font-size: 1.05rem; padding: 12px 26px; }
.post-body figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 6px; }
.post-body blockquote { margin: 1.2em 0; padding: 8px 16px; border-left: 4px solid var(--accent); background: var(--accent-tint); border-radius: 0 8px 8px 0; }
.cta { background: linear-gradient(135deg, #0b2545, #13315c); color: #fff; border-radius: 14px; padding: 24px; margin: 28px 0; }
.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { margin: 0 0 12px; }
.cta .muted { color: #a9c7ee; }
/* The term boxes (src/blog.js): "What do you want to rank for?", a small one after the intro and the full one at the end
   with the 16-hour proof under it; the phone bar (public/js/blog.js). */
.term-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.term-form input[type='text'] { flex: 1 1 260px; width: auto; min-width: 0; font-size: 1rem; padding: 12px 14px; border-color: #fff; }
.term-form .button { flex: 0 0 auto; padding: 12px 18px; font-size: 1rem; }
.term-box .button.primary { background: #2f8cff; border-color: #2f8cff; }
.term-box .button.primary:hover { background: #fff; border-color: #fff; color: var(--accent-dark); }
.term-box p.muted { margin: 0; }
.term-box-short { padding: 16px 20px; }
.term-q { font-weight: 700; font-size: 1.1rem; margin: 0 0 10px !important; }
.term-box .term-main p:not(.muted) { margin: 0 0 14px; }
.term-proof { margin: 20px 0 0 !important; }
.term-proof img { width: 100%; height: auto; display: block; border: 1px solid rgba(255, 255, 255, 0.25) !important; border-radius: 10px; }
.term-proof figcaption { color: #fff !important; font-weight: 600; font-size: 0.95rem !important; margin-top: 8px; }
.term-proof figcaption span { display: block; font-weight: 400; font-size: 0.8rem; color: #a9c7ee; }
.term-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: stretch; background: #0b2545; box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18); padding-bottom: env(safe-area-inset-bottom); }
.term-bar[hidden] { display: none; }
.term-bar button { border: 0; border-radius: 0; background: none; color: #fff; }
.term-bar button:hover { background: rgba(255, 255, 255, 0.08); }
.term-bar-go { flex: 1; justify-content: flex-start; padding: 14px 16px; font-size: 1rem; white-space: normal; text-align: left; }
.term-bar-x { flex: 0 0 auto; padding: 0 18px; font-size: 1.5rem; font-weight: 400; line-height: 1; color: #a9c7ee !important; }
@media (min-width: 700px) { .term-bar { display: none !important; } }
/* A blog-box newcomer's finished first article: the 3 steps and Publish on top (public/js/onboarding.js readyBoxHtml). */
.ready-box { border: 2px solid var(--accent); }
.ready-box h2 { margin: 0 0 6px; }
.ready-plain { margin: 8px 0 12px; padding-left: 22px; }
.ready-proof { margin: 12px 0 0; }
@media (max-width: 699px) { body:has(.term-bar:not([hidden])) footer.site { padding-bottom: 72px; } }
@media (max-width: 560px) { .term-form .button { flex: 1 1 100%; } .cta { padding: 20px 16px; } }
.post-list { display: grid; gap: 12px; margin-top: 16px; }
/* Customer stories (src/blog.js storyPage): Diven's beta message, the proof screenshots, the free-article buttons. */
.story .story-cta { margin: 1.6em 0; padding: 18px 16px; text-align: center; background: var(--accent-tint); border-radius: var(--radius); }
.story .story-cta p { margin: 0 0 12px; font-weight: 600; font-size: 1.1rem; }
.story .story-cta .button { font-size: 1.05rem; padding: 12px 24px; max-width: 100%; white-space: normal; }
.story .story-quote { margin: 1em 0; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.story .story-quote p { margin: 0 0 1em; }
.story .story-quote footer { font-weight: 600; line-height: 1.5; }
.story .story-shot { margin: 1.2em 0; }
.story .story-shot a { display: block; }
.story .story-shot img { max-width: 100%; }
@media (max-width: 560px) { .story .story-quote { padding: 14px 14px; } }
/* Video posts (src/blog.js videoPage, public/js/video-post.js): YouTube thumbnail + play button, key moments, transcript. */
.video-post .note { font-size: 0.92rem; color: var(--muted); }
.video-post .story-cta-link { font-weight: 600; font-size: 1rem; }
.yt-video { margin: 1.5em 0; }
.yt-lite { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0b1626; }
.yt-lite .yt-play { display: block; width: 100%; height: 100%; }
.post-body .yt-lite img { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.yt-btn { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; margin: -27px 0 0 -38px; border-radius: 14px; background: rgba(23, 23, 23, 0.82); transition: background 0.15s; }
.yt-btn::after { content: ''; position: absolute; left: 31px; top: 15px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.yt-play:hover .yt-btn, .yt-play:focus-visible .yt-btn { background: #e62117; }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.moments { margin: 1.2em 0 1.6em; padding: 14px 18px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.post-body .moments h2 { margin: 0 0 8px; font-size: 1.15rem; }
.moments ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.moments li { break-inside: avoid; margin: 0 0 4px; line-height: 1.45; }
.moments .ts { display: grid; grid-template-columns: 3.1em 1fr; padding: 3px 0; text-decoration: none; }
.moments .ts:hover { text-decoration: underline; }
.ts-time { display: inline-block; min-width: 3.1em; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent-dark); }
@media (max-width: 560px) { .moments ol { columns: 1; } }
.post-body .ts-line { margin: -0.4em 0 0.8em; font-size: 0.9rem; }
.post-body .ts-line .ts { text-decoration: none; font-weight: 600; }
.post-body blockquote.said { background: var(--card); border: 1px solid var(--line); border-left: 4px solid #10a37f; border-radius: 0 8px 8px 0; padding: 10px 16px; }
.post-body blockquote.said-film { border-left-color: var(--accent); }
.post-body blockquote.said p { margin: 0 0 0.7em; }
.post-body blockquote.said p:last-child { margin-bottom: 0; }
.post-body .said-who { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.post-body blockquote.prompt { font-style: italic; }
.price-table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.95rem; line-height: 1.45; }
.price-table caption { caption-side: bottom; text-align: left; font-size: 0.85rem; color: var(--muted); padding-top: 6px; }
.price-table th, .price-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table thead th { font-size: 0.85rem; color: var(--muted); border-bottom: 2px solid var(--line); }
.price-table td:nth-child(2) { white-space: nowrap; font-weight: 700; }
@media (max-width: 560px) { .price-table { font-size: 0.88rem; } .price-table th, .price-table td { padding: 7px 6px; } }
.video-post .related ul { padding-left: 1.2em; }
.post-card { display: grid; gap: 4px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; }
.post-card:hover { border-color: var(--accent); }
.post-card b { color: var(--accent-dark); font-size: 1.05rem; }
@media (max-width: 560px) { .post h1 { font-size: 1.55rem; } .post-body, .post-faq { font-size: 1rem; } }

/* Admin: SEO and traffic */
.periods { display: flex; gap: 6px; flex-wrap: wrap; }
#seo h3 { margin: 18px 0 8px; }

/* ---------- RankScore grade of the "Link to" page, and its "needs attention" step (public/js/crosssell.js) ---------- */
.rs-slot:empty { display: none; }
.rs-slot { margin-top: 10px; }
.rs { display: flex; gap: 14px; align-items: flex-start; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.rs.rs-low { background: var(--warn-tint); border-color: #f1d9a8; }
.rs.rs-checking { align-items: center; gap: 8px; }
.rs-dial { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-content: center; text-align: center; line-height: 1; border: 4px solid currentColor; background: #fff; }
.rs-dial b { font-size: 1.25rem; }
.rs-dial small { font-size: 0.65rem; color: var(--muted); }
.rs-good { color: var(--good); }
.rs-warn { color: var(--warn); }
.rs-bad { color: var(--bad); }
.rs-body { min-width: 0; flex: 1; }
.rs-head { margin: 0 0 4px; overflow-wrap: anywhere; }
.rs-issues { margin: 4px 0 8px; padding-left: 18px; font-size: 0.9rem; }
.rs-issues li { margin-bottom: 2px; }
.rs-issues li.rs-fail::marker { color: var(--bad); }
.rs-issues li.rs-warn::marker { color: var(--warn); }
.rs-foot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 6px; }
.rs-line { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.rs-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-weight: 700; font-size: 0.8rem; background: #fff; border: 1px solid currentColor; }
.term-score { grid-column: 1 / -1; margin-top: -2px; }
.term-score:empty { display: none; }
@media (max-width: 480px) { .rs { gap: 10px; } }

/* ---------- "Google ranks it. Does ChatGPT cite it?" on the project page ---------- */
.ai-rounds { margin-top: 6px; }
.ai-round { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fbfcfe; min-width: 0; }
.ai-round-head { margin-bottom: 6px; }
.ai-list { list-style: none; margin: 0; padding: 0; }
.ai-list li { padding: 7px 0; border-top: 1px solid var(--line); }
.ai-line { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ai-name { font-weight: 600; }
.ai-verdict { font-size: 0.85rem; font-weight: 600; }
.ai-verdict.good { color: var(--good); }
.ai-verdict.none, .ai-verdict.muted { color: var(--muted); }
.ai-sites { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 4px; }
.ai-site { font-size: 0.78rem; padding: 1px 7px; border-radius: 999px; background: #eef1f5; color: var(--ink); text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-site.ours { background: var(--good-tint); color: var(--good); font-weight: 700; }
.ai-change { margin: 12px 0 0; }

/* ---------- admin lists: search, filter, pager (public/js/pager.js) ---------- */
.list-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.list-tools input { flex: 1 1 240px; max-width: 360px; }
.list-tools select { flex: 0 1 220px; width: auto; }
.pager { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-top: 10px; }
.pager:empty { display: none; }
.pager-buttons { display: inline-flex; gap: 8px; align-items: center; }
.pager-per { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-weight: 400; }
.pager-per select { width: auto; padding: 4px 8px; }

/* ---------- tutorials (public/js/tutorials.js): a Watch button per page, the player, the Tutorials page ---------- */
.tut-slot:empty { display: none; }
.tut-slot { margin: 8px 0 12px; }
.tut-btn { gap: 8px; color: var(--accent-dark); border-color: #b9d3f5; background: var(--accent-tint); }
.tut-btn:hover { background: #d9e8fb; }
.tut-btn svg { flex: none; }
.tut-btn .muted { font-weight: 500; }
.tut-dialog { border: none; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(16, 24, 40, 0.3); padding: 18px; width: min(960px, calc(100vw - 32px)); max-width: none; color: var(--ink); }
.tut-dialog::backdrop { background: rgba(22, 32, 46, 0.6); }
.tut-dialog h2 { margin: 0 36px 12px 0; }
.tut-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0b2545; border-radius: 8px; }
.tut-dialog p { margin: 10px 0 0; }
.tut-close { position: absolute; top: 10px; right: 10px; border: none; background: none; font-size: 1.5rem; line-height: 1; padding: 4px 8px; color: var(--muted); }
.tut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 8px; }
.tut-card { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 0 0 12px; text-align: left; white-space: normal; border-radius: var(--radius); overflow: hidden; background: var(--card); }
.tut-card:hover { border-color: var(--accent); }
.tut-card > span:not(.tut-poster) { padding: 0 12px; }
.tut-poster { position: relative; display: block; aspect-ratio: 16 / 9; background: #0b2545; margin-bottom: 8px; }
.tut-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tut-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
.tut-play svg { width: 26px; height: 26px; margin-left: 3px; }
.tut-len { position: absolute; right: 8px; bottom: 8px; background: rgba(11, 37, 69, 0.85); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 1px 7px; border-radius: 6px; }
.tut-title { font-weight: 700; }
/* the front-page film (home.html) */
.front-film { max-width: 860px; margin: 18px auto 22px; }
.front-film video, .front-poster { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #0b2545; box-shadow: 0 10px 30px rgba(16, 24, 40, 0.18); }
.front-poster { position: relative; padding: 0; border: none; overflow: hidden; cursor: pointer; }
.front-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.front-poster:hover .tut-play { transform: scale(1.06); }
.front-poster .tut-play { width: 64px; height: 64px; margin: 0; left: auto; right: 18px; top: 18px; }
/* "Real results" on the home page: the proof film and the best wins */
.proof { max-width: 860px; margin: 8px auto 12px; padding: 0 16px; }
.proof h2 { text-align: center; font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 0 0 4px; }
.proof .front-film { margin-top: 14px; }
.proof-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.proof-lines li { display: flex; align-items: flex-start; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.proof-lines .rank { flex: none; min-width: 52px; text-align: center; padding: 4px 8px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.05rem; line-height: 1.4; }
.proof-lines .rank.two { background: #4cc2ff; color: #0b2545; }
.proof-lines .rank.all { background: var(--accent-tint); color: var(--accent-dark); }
.proof-lines em { display: block; font-style: normal; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
/* the JV page (src/jv.js) */
.jv-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; font-size: 0.85rem; color: var(--accent); margin-bottom: 6px; }
.jv-ph { display: inline-block; background: #fff3c4; color: #7a5200; border: 1px dashed #d9a400; border-radius: 6px; padding: 2px 8px; font-weight: 700; font-size: 0.85rem; }
.jv-table { width: 100%; border-collapse: collapse; }
.jv-table th { text-align: left; width: 34%; padding: 8px 10px 8px 0; color: var(--muted); font-weight: 600; vertical-align: top; }
.jv-table td { padding: 8px 0; }
.jv-table tr + tr { border-top: 1px solid var(--line); }
.jv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.jv-video { display: flex; flex-direction: column; gap: 10px; }
.jv-poster, .jv-player { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: none; padding: 0; border-radius: 10px; overflow: hidden; background: #0b2545; cursor: pointer; }
.jv-video.tall .jv-poster, .jv-video.tall .jv-player { aspect-ratio: 9 / 16; }
.jv-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jv-meta { display: flex; flex-direction: column; gap: 6px; }
.jv-meta label { margin: 4px 0 0; }
.jv-caption { min-height: 0; font-size: 0.85rem; }
@media (max-width: 520px) { .topbar .right { flex-wrap: wrap; margin-left: 0; gap: 8px 12px; } }

/* ---------- My websites ---------- */
.site { border-top: 1px solid var(--line); padding: 16px 0 4px; margin-top: 12px; }
.site:first-child { border-top: none; margin-top: 0; }

/* ---------- pricing (Pete, 26 Oct 2026): home page section, /plans and "Plans coming soon" (src/pricing.js) ---------- */
.pricing { max-width: 1000px; margin: 40px auto 12px; text-align: center; }
.pricing h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 0 0 6px; }
.pricing-founders { font-weight: 600; color: var(--ink); max-width: 620px; margin: 0 auto 6px; }
.founder-count { margin: 0 auto 6px; color: var(--bad); }
.plan-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; text-align: center; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px 20px; box-shadow: var(--shadow); }
.plan-card.popular { border: 2px solid var(--accent); box-shadow: 0 6px 22px rgba(15, 111, 222, 0.16); }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.plan-card h3 { margin: 0 0 4px; font-size: 1.25rem; }
.plan-articles { color: var(--muted); margin: 0 0 12px; }
.plan-articles b { color: var(--ink); }
.plan-price { margin: 0; line-height: 1.1; display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }
.plan-price b { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.02em; }
.plan-regular { color: var(--bad); font-size: 1.35rem; font-weight: 600; text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 2px; }
.plan-mo { color: var(--muted); font-size: 1rem; margin-left: -4px; }
.plan-kind { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-dark); margin: 6px 0 4px; }
.plan-per { margin: 0 0 16px; font-weight: 700; color: var(--good); }
.plan-btn { margin-top: auto; display: block; text-align: center; }
.plan-direct { display: block; text-align: center; margin-top: 8px; font-size: 13px; color: var(--muted); }
.plan-small { font-size: 0.78rem; color: var(--muted); margin: 10px 0 0; }
.pricing-foot { margin-top: 16px; }
/* Yearly / Monthly toggle (public/js/pricing.js): the cards hold both prices; data-billing picks the one shown. */
.billing-toggle { display: inline-flex; gap: 4px; padding: 4px; margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.billing-toggle button { border: 0; border-radius: 999px; padding: 8px 18px; background: transparent; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.billing-toggle button:hover { background: var(--accent-tint); }
.billing-toggle button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.save-badge { background: var(--good-tint); color: var(--good); font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.plan-cards[data-billing="yearly"] .bill-monthly, .plan-cards[data-billing="monthly"] .bill-yearly { display: none; }
.plan-billed { font-size: 0.85rem; color: var(--muted); margin: 4px 0 0; }
.plan-hire { font-size: 0.78rem; color: var(--muted); margin: -12px 0 14px; }
.plan-list { list-style: none; padding: 14px 0 0; margin: 0 0 18px; border-top: 1px solid var(--line); text-align: left; display: grid; gap: 7px; font-size: 0.9rem; }
.plan-list li { position: relative; padding-left: 24px; line-height: 1.4; }
.plan-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--good); font-weight: 800; }
.plans-page { margin-top: 8px; }
.plans-page h1 { margin-bottom: 6px; }
.plans-intro { background: var(--accent-tint); border: 1px solid #c9ddf8; border-radius: var(--radius); padding: 14px 16px; margin: 0 auto 22px; max-width: 760px; text-align: left; }
.plans-intro p { margin: 0; }
.plans-intro p + p { margin-top: 6px; }
.plans-soon { max-width: 640px; margin: 24px auto; }
.plan-banner { display: block; background: var(--accent-tint); border: 1px solid #c9ddf8; color: var(--ink); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; text-decoration: none; }
.plan-banner b { color: var(--accent-dark); white-space: nowrap; }
.plan-banner:hover { border-color: var(--accent); }
.plan-banner .beta-end { color: var(--ink); white-space: normal; }
/* Admin: the application the new-application alert links to; the beta email editors */
tr.row-focus td { background: #fff7d6; }
.be-email { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; }
.be-email textarea { width: 100%; }
@media (max-width: 760px) { .plan-cards { grid-template-columns: 1fr; gap: 22px; max-width: 420px; margin-left: auto; margin-right: auto; } .pricing { margin-top: 32px; } }

/* ---------- JVZoo pages (2026-10-27, src/salesPages.js): /start, /upgrade, /jvzoo-ty, /terms, /earnings-disclaimer, /account ---------- */
.sales-top .brand { cursor: default; } /* the logo isn't a link on JVZoo pages */
.topbar-cta { margin-left: auto; }
.big-btn { font-size: 1.1rem; padding: 14px 26px; }
.sales-foot { text-align: center; margin-top: 40px; }
.sales-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.sales-foot .copy { margin: 8px 0; }
/* The JVZoo disclaimer, styled like RankResults' footer: full width, under a thin line, small grey centred text. */
.jvzoo-disclaimer { width: 100%; margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.65; color: var(--muted); text-align: center; }
.sales-block { max-width: 760px; margin: 40px auto 0; padding: 0 16px; }
.sales-block h2 { text-align: center; }
.plan-list.wide { border-top: 0; max-width: 560px; margin: 0 auto; font-size: 1rem; }
.sales-block.closing { text-align: center; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 0; color: var(--muted); }
.how-plans ul { color: var(--muted); }
/* /upgrade's Yearly / Monthly toggle works with no JavaScript: two radio buttons, CSS shows the chosen prices and buttons. */
.billing-switch { text-align: center; }
.billing-radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.billing-toggle label { border-radius: 999px; padding: 8px 18px; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.billing-toggle label:hover { background: var(--accent-tint); }
#bill-yearly:checked ~ .billing-toggle label[for="bill-yearly"], #bill-monthly:checked ~ .billing-toggle label[for="bill-monthly"] { background: var(--accent); color: #fff; }
#bill-yearly:focus-visible ~ .billing-toggle label[for="bill-yearly"], #bill-monthly:focus-visible ~ .billing-toggle label[for="bill-monthly"] { outline: 2px solid var(--accent); outline-offset: 2px; }
#bill-yearly:checked ~ .plan-cards .bill-monthly, #bill-monthly:checked ~ .plan-cards .bill-yearly { display: none; }
.plan-btn.disabled { opacity: 0.6; cursor: not-allowed; }
.ty { max-width: 640px; margin: 0 auto; padding: 56px 16px 40px; text-align: center; }
.ty h1 { font-size: clamp(1.8rem, 4.4vw, 2.5rem); }
.ty p { color: var(--muted); font-size: 1.08rem; }
.ty-cta { margin: 26px 0 20px; }
.claim-form { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 22px; }
.claim-form h3 { margin-top: 0; }
.claim-form label { display: block; margin-bottom: 10px; }
.notice-ok { color: var(--good); background: var(--good-tint); padding: 10px 12px; border-radius: 8px; }
.notice-warn { background: #fff7e0; border: 1px solid #f3dd9b; padding: 10px 12px; border-radius: 8px; margin: 0 0 14px; }
.legal h2 { margin-top: 26px; }
.legal li { margin-bottom: 6px; }
.account .big-num b { font-size: 2rem; }
.steps-list { padding-left: 20px; }
.pay-alert { border-left: 4px solid var(--line); padding: 6px 12px; margin-bottom: 10px; background: var(--card); }
.pay-alert.urgent { border-left-color: var(--bad); }
.pay-alert.warn { border-left-color: #f0b429; }
.pay-alert p { margin: 4px 0; }
@media (max-width: 760px) { .topbar-cta { padding: 8px 12px; font-size: 0.85rem; } }

/* ---------- /beta: the beta tester page (src/beta.js) ---------- */
.beta-main { max-width: 860px; }
.beta-hero { margin: 0 auto 18px; text-align: center; }
.beta-banner { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 6px 24px rgba(10, 24, 46, 0.18); background: #0a182e; }
.beta-sub { font-size: 1.3rem; color: var(--ink); margin: 18px 0 0; }
.beta-cta { text-align: center; margin: 8px 0 6px; }
/* Beta mode (src/betaMode.js): the home page's beta line + Apply button, the line on each plan card, the held message. */
.beta-home { margin-top: 24px; }
.beta-line { font-weight: 700; margin: 0 0 10px; }
.plan-beta { font-weight: 600; font-size: 0.9rem; margin: 12px 0 6px; text-align: center; }
.header-signin { color: var(--muted); }
.beta-hold-text { margin: 0; font-size: 1.05rem; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.beta-cta-note { text-align: center; margin-bottom: 24px; }
.beta-form, .beta-done { max-width: 640px; margin: 0 auto 24px; }
.beta-done { text-align: center; }
.beta-form .big-btn { width: 100%; white-space: normal; }
.beta-q { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.beta-q legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.beta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.beta-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.beta-choice { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; padding: 8px 14px; border: 1px solid #c8d1dc; border-radius: 8px; background: #fff; cursor: pointer; }
.beta-choices.wide .beta-choice { flex: 1 1 200px; }
.beta-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.beta-agree { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; margin-top: 18px; padding: 12px 14px; background: var(--accent-tint); border-radius: 8px; cursor: pointer; }
.beta-agree input { margin-top: 4px; flex: none; width: 18px; height: 18px; }
.beta-err { color: var(--bad); font-size: 0.875rem; margin: 4px 0 0; }
.beta-about .card { margin-bottom: 0; }
.beta-about { margin-bottom: 16px; }
.beta-proof { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.beta-proof .rank { flex: none; padding: 4px 10px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800; }
.beta-proof em { display: block; font-style: normal; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
@media (max-width: 520px) { .beta-pair { grid-template-columns: 1fr; } }

/* ---------- Installing the extension: the Chrome Web Store button + the short install film (src/extensionBeta.js) ---------- */
.button.store-btn { font-size: 1.15rem; padding: 14px 30px; }
.store-film { max-width: 560px; margin: 12px 0 14px; }
.store-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; background: #0a182e; }
#ext-switch code { background: var(--accent-tint); padding: 1px 6px; border-radius: 5px; font-size: 0.9em; }
#ext-switch ol { margin: 0; padding-left: 22px; }

/* ---------- Onboarding (Pete, 2026-10-27; public/js/onboarding.js) ---------- */
.onboard h1 { margin-bottom: 10px; }
.ob-intro { font-size: 1.05rem; }
.ob-device p { margin: 0 0 10px; }
.ob-device { margin-bottom: 14px; }
.ob-steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.ob-step { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--card); }
.ob-step.ok { border-color: #b9e2c6; background: var(--good-tint); }
.ob-mark { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; background: var(--bg); color: var(--muted); border: 2px solid var(--line); }
.ob-mark.ok { background: var(--good); border-color: var(--good); color: #fff; }
.ob-body { flex: 1 1 auto; min-width: 0; }
.ob-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 3px 0 4px; }
.ob-body p { margin: 6px 0; }
.ob-done { color: var(--good); font-weight: 600; font-size: 0.875rem; }
.ob-wait { color: var(--muted); font-size: 0.875rem; }
.ob-step code { background: var(--accent-tint); padding: 1px 6px; border-radius: 5px; font-size: 0.9em; overflow-wrap: anywhere; }
.ob-go { margin: 0 0 6px; }
.ob-go button { white-space: normal; }
.ob-go button:disabled { opacity: 0.55; cursor: not-allowed; }
.ob-check { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
.ob-check li { display: flex; align-items: center; gap: 8px; font-size: 0.925rem; }
.ob-check li.ok { color: var(--muted); }
.ob-check .ob-mark { width: 22px; height: 22px; font-size: 0.8rem; }
.prepost-actions { display: block; margin-top: 8px; }
@media (max-width: 760px) { .ob-check { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ob-check { grid-template-columns: 1fr; } .ob-step { padding: 10px 12px; gap: 10px; } .ob-go button { width: 100%; } }
.jvr-link code { overflow-wrap: anywhere; }
.badge.example-badge { background: var(--accent-tint); color: var(--accent); }

/* ---------- One box for terms + "Your next articles" (Pete, 2026-10-28; src/terms.js) ---------- */
#term { min-height: 190px; font-family: inherit; }
.lists .list-card { margin-bottom: 16px; }
.list-card h2 { min-width: 0; flex: 1 1 260px; }
.list-name { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.list-name:hover, .list-name:focus-visible { text-decoration: underline; }
.chain { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.chain-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 36px; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.chain-row.written { background: var(--bg); }
.chain-row.is-next { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.chain-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; background: var(--accent-tint); color: var(--accent); }
.chain-term { min-width: 0; overflow-wrap: anywhere; }
.badge.main-badge { background: #fff4d6; color: #8a5a00; }
.list-next { margin-top: 14px; }
.list-next button { white-space: normal; text-align: left; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.danger-link { color: var(--bad); }
@media (max-width: 560px) {
  .chain-row { grid-template-columns: 26px minmax(0, 1fr) 36px; }
  .chain-state { grid-column: 2 / 3; grid-row: 2; }
}

/* Open applicants' welcome note (public/app.html), the spam notice, the Upgrade button in the top bar, and the upgrade
   nudge on a published article (public/project.html). Pete, 2026-11-03. */
.applicant-welcome { border-left: 4px solid var(--accent); }
.applicant-welcome h2 { margin-top: 0; }
.applicant-welcome .aw-sign { margin: 10px 0 0; font-style: italic; }
.beta-spam { margin: 12px 0 0; text-align: left; }
.topbar .upgrade-link { padding: 4px 12px; text-decoration: none; }
.upgrade-nudge { display: block; }

/* The daily limit (Pete, 2026-11-03; public/app.html showDailyLimit): "Today: X of N used" beside Submit, and the reason
   right under it once the limit is reached. */
.today-used.full { background: var(--warn-tint); color: #5a3d00; }
.daily-limit-hit { font-weight: 600; }
