[hidden] { display: none !important; }
:root {
  --ink: #16181d; --muted: #6b7078; --line: #e6e7ea; --bg: #fafaf9;
  --accent: #0f62fe; --warn: #b45309; --bad: #b91c1c; --good: #15803d;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.55 Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top .wrap { padding-top: 14px; padding-bottom: 14px; }
.mark { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(90deg, var(--ink) 50%, #ffd23f 50%); vertical-align: -1px; margin-right: 4px; }
.muted { color: var(--muted); }
a { color: var(--accent); }
code { font-family: var(--mono); font-size: 0.9em; }

.intro { padding: 56px 0 24px; max-width: 760px; }
h1 { font-size: 40px; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; }
.lede { font-size: 17px; color: #3b3f46; margin: 0 0 24px; }
#scan { display: flex; gap: 8px; }
#url { flex: 1; font: inherit; font-size: 17px; padding: 14px 16px; border: 1px solid #cfd2d7; border-radius: 10px; background: #fff; }
#url:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
button { font: inherit; cursor: pointer; }
#go, .primary { background: var(--ink); color: #fff; border: 0; border-radius: 10px; padding: 0 22px; font-weight: 600; }
#go { font-size: 16px; }
#go:disabled { opacity: 0.5; cursor: wait; }
.primary { padding: 10px 18px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 10px; }

.status { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 8px 0 24px; }
.status ol { margin: 0; padding-left: 18px; }
.status li { color: var(--muted); }
.status li.on { color: var(--ink); font-weight: 500; }
.status li.done { color: var(--good); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { padding: 16px 20px; border-radius: 12px; background: #fef2f2; color: var(--bad); border: 1px solid #fecaca; margin-bottom: 24px; }

#result { padding: 8px 0 32px; }
.result-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.who { display: flex; gap: 14px; align-items: center; }
#r-logo { max-height: 44px; max-width: 160px; border-radius: 6px; background: #fff; padding: 4px; border: 1px solid var(--line); }
#r-logo[src=""] { display: none; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
#r-title { margin: 0; font-size: 22px; }
#r-source { font-size: 13px; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
figure { margin: 0; }
figcaption { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.shot, .mock { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: 380px; background: #fff; }
.shot img { width: 100%; display: block; }
.compare.single { grid-template-columns: 1fr; }
.compare.single .mock { height: 420px; }

.grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.card h3 { margin: 0 0 12px; font-size: 14px; }
.card h3.mt { margin-top: 18px; }
.swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sw { display: flex; gap: 10px; align-items: center; cursor: pointer; border-radius: 8px; padding: 4px; }
.sw:hover { background: #f3f4f6; }
.chip { width: 38px; height: 38px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.12); flex: none; }
.chip.none { background: repeating-linear-gradient(45deg, #fff, #fff 4px, #eee 4px, #eee 8px); }
.sw b { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.sw code { font-size: 13px; }
.font-row { padding: 6px 0; border-bottom: 1px solid #f1f2f4; }
.font-row:last-child { border: 0; }
.font-row .role { font-size: 12px; color: var(--muted); }
.font-row .name { font-size: 17px; }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; font-weight: 500; }
.tag.google { background: #ecfdf5; color: var(--good); }
.tag.adobe, .tag.web, .tag.unverified, .tag.missing { background: #fff7ed; color: var(--warn); }
.tag.system { background: #f1f5f9; color: #475569; }
.sub { font-size: 12px; color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.checks li { padding: 6px 0 6px 22px; position: relative; border-bottom: 1px solid #f1f2f4; }
.checks li:last-child { border: 0; }
.checks li::before { position: absolute; left: 0; }
.checks li.ok::before { content: "✓"; color: var(--good); }
.checks li.warn::before { content: "!"; color: var(--warn); font-weight: 700; left: 4px; }
.checks li.info::before { content: "i"; color: var(--muted); font-style: italic; left: 4px; }

.prompt-card { margin-bottom: 18px; }
.prompt-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.prompt-head p { margin: 0; font-size: 13px; }
.actions { display: flex; gap: 14px; align-items: center; flex: none; }
.prompt { font-family: var(--mono); font-size: 13px; line-height: 1.6; white-space: pre-wrap; background: #f6f7f8; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin: 14px 0 10px; max-height: 420px; overflow: auto; }
.foot-actions { display: flex; gap: 18px; font-size: 13px; }
.link { background: none; border: 0; color: var(--accent); padding: 0; text-decoration: underline; font-size: 13px; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 32px 0; border-top: 1px solid var(--line); margin-top: 24px; }
.how h3 { font-size: 15px; margin: 0 0 6px; }
.how p { margin: 0; font-size: 14px; color: #4b5058; }
.bm { margin-bottom: 40px; }
.bm p { margin: 0 0 12px; font-size: 14px; }
.bm-link { display: inline-block; padding: 8px 14px; border-radius: 8px; border: 1px dashed var(--accent); text-decoration: none; font-weight: 600; cursor: grab; }
.bottom { font-size: 12px; padding-bottom: 40px; }

/* The beehiiv-style mock. Every brand value comes in as a CSS variable. */
.mock { --b-bg: #fff; --b-text: #111; --b-primary: #111; --b-on: #fff; --b-accent: #111; --b-border: #e5e5e5; --b-radius: 6px; --b-head: inherit; --b-body: inherit; --b-btn: inherit; --b-link: #111;
  background: var(--b-bg); color: var(--b-text); font-family: var(--b-body); overflow: auto; }
.m-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--b-border); }
.m-brand { display: flex; align-items: center; gap: 8px; font-family: var(--b-head); font-weight: 700; font-size: 15px; }
.m-brand img { max-height: 24px; max-width: 120px; }
.m-links { display: flex; gap: 14px; font-size: 12px; align-items: center; }
.m-btn { background: var(--b-primary); color: var(--b-on); border-radius: var(--b-radius); padding: 7px 14px; font-family: var(--b-btn); font-weight: 600; font-size: 12px; border: 0; white-space: nowrap; }
.m-hero { text-align: center; padding: 26px 24px 20px; }
.m-hero h4 { font-family: var(--b-head); font-size: 26px; line-height: 1.15; margin: 0 0 8px; }
.m-hero p { font-size: 13px; opacity: 0.85; margin: 0 auto 14px; max-width: 420px; }
.m-form { display: flex; gap: 6px; justify-content: center; }
.m-form span { border: 1px solid var(--b-border); border-radius: var(--b-radius); padding: 7px 12px; font-size: 12px; min-width: 180px; text-align: left; opacity: 0.6; background: var(--b-bg); }
.m-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 8px 18px 18px; }
.m-post { border: 1px solid var(--b-border); border-radius: var(--b-radius); overflow: hidden; }
.m-post .img { height: 54px; background: linear-gradient(135deg, var(--b-accent), var(--b-primary)); opacity: 0.85; }
.m-post .t { font-family: var(--b-head); font-size: 12px; font-weight: 700; line-height: 1.3; padding: 8px 10px 4px; }
.m-post .x { font-size: 10px; padding: 0 10px 10px; opacity: 0.7; }
.m-post a { color: var(--b-link); }
.m-foot { border-top: 1px solid var(--b-border); padding: 12px 18px; font-size: 11px; display: flex; justify-content: space-between; opacity: 0.85; }

@media (max-width: 860px) {
  .compare, .grid, .how { grid-template-columns: 1fr; }
  .prompt-head { flex-direction: column; }
  h1 { font-size: 30px; }
}
