/* Platform views. */
.loading { min-height: 100vh; display: grid; place-items: center; background: #fff; }
.loading-mark { width: 160px; height: 160px; mix-blend-mode: multiply; filter: brightness(1.04); } /* browsers render the video's white slightly grey; this keeps it invisible on #fff */
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.check { display: inline-flex; gap: 10px; align-items: center; background: none; border: 0; padding: 0; font-size: 14px; cursor: pointer; color: var(--color-text); }
.check i { font-size: 21px; color: var(--color-neutral-500); }
.check i.on { color: var(--color-accent); }
.domain { font-weight: 600; color: var(--color-text); }

/* account menu */
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: 46px; z-index: 40; min-width: 230px; padding: 8px; gap: 2px; box-shadow: var(--shadow-lg); }
.menu .who { font-size: 12px; color: var(--color-neutral-600); padding: 6px 10px 8px; border-bottom: 1px solid var(--color-divider); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; }
.menu a, .menu button { display: flex; align-items: center; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 14px; color: var(--color-text); text-decoration: none; background: none; border: 0; cursor: pointer; width: 100%; }
.menu a:hover, .menu button:hover { background: var(--color-fill); }

/* marketplace */
.market { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 40px; padding-top: 28px; padding-bottom: 64px; }
.filters { display: flex; flex-direction: column; gap: 24px; align-self: start; position: sticky; top: 84px; }
.fgroup { display: flex; flex-direction: column; gap: 10px; }
.fgroup.tight { gap: 6px; }
.fgroup h6 { margin: 0; }
.fgroup b { font-size: 13px; }
.results { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.results h1 { font-size: 36px; }
.card-num { font: 700 24px/1 var(--font-heading); letter-spacing: -0.02em; }
.site-card { padding: 20px; gap: 14px; transition: box-shadow .2s, transform .2s; }
.site-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sticky-cart { position: fixed; right: 24px; bottom: 24px; height: 48px; box-shadow: var(--shadow-lg); padding: 0 20px; border-radius: 999px; z-index: 10; }

/* site detail / checkout / order: main + aside */
.crumbs { padding-top: 20px; font-size: 13px; color: var(--color-neutral-600); display: flex; gap: 8px; }
.crumbs a { color: var(--color-neutral-700); text-decoration: none; }
.crumbs a:hover { color: var(--color-accent); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; padding-top: 24px; padding-bottom: 72px; }
.site-title { margin: 0; font: 700 52px/1 var(--font-heading); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.metrics5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--color-divider); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.metrics5 > div { background: var(--color-surface); padding: 18px 20px; }
.metrics5 .stat-big { font-size: 34px; }
.panel { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.bars { display: flex; gap: 8px; align-items: flex-end; height: 150px; }
.bars > div { flex: 1; display: flex; flex-direction: column; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar { background: var(--color-accent-200); border-radius: 6px 6px 3px 3px; transition: background .15s; }
.bars > div:last-child .bar, .bars .bar:hover { background: var(--color-accent); }
.bars .m { font-size: 11px; text-align: center; color: var(--color-neutral-600); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 14px; }
.kv > span:nth-child(odd) { color: var(--color-neutral-600); }
.kv > span { overflow-wrap: anywhere; }
.buy-box { padding: 24px; gap: 18px; position: sticky; top: 84px; }
.checkout-head { padding-top: 28px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.steps { display: flex; gap: 6px; font-size: 13px; font-weight: 500; }
.steps > * { padding: 6px 12px; border-radius: 999px; background: var(--color-fill); color: var(--color-neutral-700); }
.steps .cur { background: var(--color-text); color: #fff; }
.line-item { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.brief-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.sum { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 14px; }
.sum > :nth-child(odd) { color: var(--color-neutral-700); }
.total { border-top: 1px solid var(--color-divider); padding-top: 14px; align-items: baseline; }
.pay-opt { display: flex; gap: 10px; align-items: center; height: 46px; padding: 0 14px; border: 0; background: var(--color-fill); border-radius: var(--radius-md); font: 500 14px var(--font-body); color: var(--color-text); cursor: pointer; text-align: left; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .15s, background .15s; }
.pay-opt i { font-size: 20px; color: var(--color-neutral-600); }
.pay-opt:hover { background: var(--color-fill-strong); }
.pay-opt.on { background: var(--color-accent-100); box-shadow: inset 0 0 0 1.5px var(--color-accent); }
.pay-opt.on i { color: var(--color-accent); }
.pay-opt:disabled { opacity: .5; cursor: not-allowed; }
.proof { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 36px 40px; display: flex; flex-direction: column; gap: 14px; }
.proof h2 { margin: 0; font-size: 32px; letter-spacing: -0.02em; text-wrap: balance; }
.proof p { margin: 0; font-size: 16.5px; line-height: 1.7; color: var(--color-neutral-800); }
.proof p a { background: var(--color-accent-100); border-radius: 4px; padding: 1px 3px; }
.mock-box { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--color-neutral-700); border: 1.5px dashed var(--color-neutral-300); padding: 8px 14px; border-radius: var(--radius-md); }
/* brief change history (order.edits): each change as old → new */
.brief-edits summary { cursor: pointer; font-size: 13px; color: var(--color-neutral-600); }
.brief-edit { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-top: 1px solid var(--color-divider); }
.brief-edit:first-of-type { border-top: 0; }
.brief-change { font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; word-break: break-word; }
.brief-change del { color: var(--color-neutral-500); }
.brief-change ins { text-decoration: none; background: rgb(51 71 255 / 8%); border-radius: 4px; padding: 0 4px; }
.msg { background: var(--color-surface); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-sm); font-size: 14px; }
.order-messages { font-variant-numeric: tabular-nums; }
.order-messages.has-new { background: var(--color-accent-100); color: var(--color-accent-700); }

/* orders */
.needs { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm), inset 3px 0 0 var(--color-accent-2); }
.needs > i { font-size: 24px; color: var(--color-accent-2); flex: none; }
.needs > div { flex: 1; min-width: 0; }
.tabs { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.tabs a { font-size: 13px; font-weight: 500; color: var(--color-neutral-700); text-decoration: none; height: 32px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; }
.tabs a:hover { background: var(--color-fill); color: var(--color-text); }
.tabs a.on { background: var(--color-text); color: #fff; }

/* publisher */
.pub-stats { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 16px; }
.payout-card { background: var(--color-text); color: #fff; border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.payout-card .muted { color: rgb(255 255 255 / 60%); }

/* add a site */
.addsite { display: grid; grid-template-columns: 210px minmax(0, 1fr) 320px; gap: 40px; padding-top: 28px; padding-bottom: 72px; }
.wizard { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.wizard li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--color-neutral-600); }
.wizard li.cur, .wizard li.done { color: var(--color-text); }
.wizard .n { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--color-fill); }
.wizard .cur .n { background: var(--color-accent); color: #fff; }
.wizard .done .n { background: var(--color-accent-100); color: var(--color-accent); }
.step-title { margin: 0; font-size: 34px; letter-spacing: -0.02em; }
.opt-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.opt-row > span:first-child { font-size: 13px; font-weight: 500; color: var(--color-neutral-800); }
.opt-row.col { flex-direction: column; align-items: flex-start; gap: 10px; }
.code { background: var(--color-text); color: #e6e9ff; padding: 16px 18px; font: 13px/1.6 var(--font-mono); overflow-x: auto; margin: 0; border-radius: var(--radius-md); }

/* auth */
.auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-pitch { padding: 40px 56px; display: flex; flex-direction: column; gap: 24px; }
.auth-h { margin: 0 0 18px; font-size: 54px; line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.auth-p { margin: 0; font-size: 17px; color: var(--color-neutral-700); max-width: 500px; }
.auth-form { padding: 40px 56px; display: flex; flex-direction: column; gap: 18px; justify-content: center; background: var(--color-surface); border-left: 1px solid var(--color-divider); }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 400px; }
.role { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border: 0; background: var(--color-fill); border-radius: var(--radius-lg); cursor: pointer; color: var(--color-text); text-align: left; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .15s, background .15s; }
.role i { font-size: 24px; color: var(--color-neutral-600); margin-bottom: 4px; }
.role b { font-size: 15px; }
.role span { font-size: 13px; }
.role:hover { background: var(--color-fill-strong); }
.role.on { background: var(--color-accent-100); box-shadow: inset 0 0 0 1.5px var(--color-accent); }
.role.on i { color: var(--color-accent); }
#clerk-sign-in, #clerk-sign-up { min-height: 380px; }

/* onboarding */
.modal-scrim { position: fixed; inset: 0; z-index: 50; background: rgb(13 17 23 / .42); display: grid; place-items: center; padding: 16px; }
.modal { width: min(520px, 100%); padding: 26px; gap: 18px; }
.publish-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.grey-rate { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.grey-rate .input { width: 72px; padding: 6px 10px; }
.site-edit { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; padding: 6px 0; }
.apply-row { display: grid; grid-template-columns: 2fr 1.2fr 1fr auto; gap: 8px; align-items: center; }
.onboard { max-width: 720px; margin: 0 auto; padding: 48px 32px; display: flex; flex-direction: column; gap: 28px; }
.progress { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.progress span { height: 6px; border-radius: 6px; background: var(--color-fill-strong); }
.progress span.on { background: var(--color-accent); }

/* mock PayPal */
.paypal { min-height: 100vh; display: grid; place-items: center; padding: 16px; }

@media (max-width: 1000px) {
  .market { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .filters { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .detail { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  /* order page, one column: where it stands, then the brief, then files and messages */
  .order-detail { display: flex; flex-direction: column; gap: 20px; }
  .order-detail > .order-main { display: contents; }
  .order-detail .order-now { order: -2; }
  .order-detail > aside { order: -1; }
  .buy-box { position: static; }
  .addsite { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .wizard { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .pub-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub-stats > .payout-card { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .filters { grid-template-columns: minmax(0, 1fr); }
  .site-title { font-size: 36px; }
  .metrics5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief-grid, .roles { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-pitch, .auth-form { padding: 28px 16px; }
  .auth-form { border-left: 0; }
  .auth-h { font-size: 38px; }
  .onboard { padding: 28px 16px; }
  .apply-row { grid-template-columns: 1fr 1fr; }
  .step-title { font-size: 28px; }
  .proof { padding: 22px; }
  .proof h2 { font-size: 24px; }
  .sticky-cart { left: 16px; right: 16px; bottom: 16px; }
}

/* campaigns list */
.campaign-card { border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; gap: 10px; padding: 18px 20px; transition: box-shadow .15s; }
.campaign-card:hover { box-shadow: var(--shadow-md); }
.campaign-card.on { box-shadow: var(--shadow-md), inset 0 0 0 2px var(--color-accent); }
.progress-bar { height: 6px; border-radius: 6px; background: var(--color-fill-strong); overflow: hidden; }
.progress-bar span { display: block; height: 100%; border-radius: 6px; background: var(--color-accent); }

/* main + aside inside the app shell (campaign builder, order detail) */
.shell > main.wide { max-width: 1320px; }
.app-detail { padding: 0; }
.order-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.shell .buy-box { top: 32px; }

/* Campaigns table: what has been done on each placement */
.order-status { display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.35; }
.order-status .muted { font-size: 12.5px; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-steps { display: flex; gap: 3px; flex: none; }
.status-steps span { width: 7px; height: 7px; border-radius: 50%; background: var(--color-fill-strong); }
.status-steps .done { background: var(--color-accent); }
.status-steps .now { background: transparent; box-shadow: inset 0 0 0 2px var(--color-accent); }

/* On/off switch (site pages, campaign rates). */
.switch { position: relative; width: 52px; height: 28px; flex: none; padding: 0; border: 0; border-radius: 999px; background: var(--color-neutral-400); cursor: pointer; transition: background .2s; }
.switch:focus-visible { outline: none; box-shadow: var(--ring); }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--color-surface); box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch.on .knob { transform: translateX(24px); }
.side-label { margin: 14px 10px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-neutral-500); }

/* Matchmaking cards: numbers only, the why underneath. */
.match-card { gap: 14px; padding: 20px; }
.match-actions { margin-top: auto; display: flex; gap: 8px; } /* buttons line up across cards */
.match-actions .btn:only-child { flex: 1; }
.reasons { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.reasons li::before { content: "✓"; color: var(--color-accent); font-weight: 700; margin-right: 8px; }
.qty { white-space: nowrap; }
.qty .seg-opt { padding-inline: 9px; }
.order-brief { grid-template-columns: 90px minmax(0, 1fr); font-size: 13.5px; padding: 4px 0; max-width: 760px; }
/* Labels are marked, not counted: optional rows would throw off .kv's odd/even colouring. */
.order-brief > span, .order-brief > span > span { color: var(--color-text); }
.order-brief .k, .order-brief .muted { color: var(--color-neutral-600); }
tr.open > td { background: var(--color-neutral-100); }
/* Card facts: one row each, label left, value at the end of the row. */
.facts { display: flex; flex-direction: column; font-size: 13.5px; }
.facts .fact { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; }
.facts .fact > span { color: var(--color-neutral-600); }
.facts .fact > b { font-weight: 600; text-align: right; }
/* Order status page: a single printable report. */
.report-page { max-width: 860px; margin: 0 auto; padding: 32px 16px 64px; display: flex; flex-direction: column; gap: 20px; }
.report { padding: 32px; gap: 26px; }
.report h6 { margin: 0 0 6px; }
.activity { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.activity > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; }
@media print {
  .report-bar button, .report-bar a, .demo-note, .toast { display: none !important; }
  body { background: #fff; }
  .report { box-shadow: none; padding: 0; }
}
@media (max-width: 640px) { .report { padding: 20px; } }
.report-gate { align-items: center; text-align: center; padding: 48px 24px; gap: 14px; }
@media print { .report-page > .panel { display: none !important; } }
/* Client report: every order for one client, like a campaign report. */
.report-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.report-chips span { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--color-fill); color: var(--color-neutral-700); }
.report-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.report-check { color: var(--color-accent); font-size: 1em; vertical-align: -0.1em; }
.report-bar-track { height: 6px; border-radius: 999px; background: var(--color-fill); overflow: hidden; margin-top: 8px; }
.report-bar-track > div { height: 100%; background: var(--color-accent); }
.post-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); overflow: hidden; break-inside: avoid; }
.post-img { display: grid; place-items: center; height: 180px; flex: none; overflow: hidden; background: var(--color-fill); color: var(--color-neutral-500); font-size: 36px; }
.post-img img { display: block; width: 100%; height: 180px; object-fit: cover; }
.post-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.post-title { font-weight: 600; font-size: 15px; line-height: 1.35; color: inherit; }
.post-url { font-size: 11.5px; color: var(--color-neutral-600); overflow-wrap: anywhere; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--color-neutral-700); margin-top: 4px; }
.post-meta .ok { color: #15803d; }
.report-table { width: 100%; font-size: 13px; }
.report-table td { overflow-wrap: anywhere; }
.report-table td.num { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 640px) { .report-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .post-cards { grid-template-columns: minmax(0, 1fr); } }
@media print { .post-card, .stat-card { box-shadow: none; border: 1px solid #e4e4e7; } .report-bar-track > div { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }
/* Page headers: the title block shrinks so its buttons stay on the title's line instead of wrapping below. */
.head-row { align-items: flex-start; flex-wrap: nowrap; }
.head-row > div:first-child { flex: 1 1 auto; min-width: 0; }
.head-row > .btn, .head-row > div:last-child:not(:first-child) { flex: none; }
@media (max-width: 640px) { .head-row { flex-wrap: wrap; } }
/* Article previews (Markdown rendered by renderMarkdown in app.js). */
.article-preview { padding: 18px 22px; border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); font-size: 15px; line-height: 1.65; max-height: 420px; overflow: auto; }
.article-preview > :first-child { margin-top: 0; }
.article-preview h2, .article-preview h3, .article-preview h4, .article-preview h5 { margin: 18px 0 8px; }
.article-preview p, .article-preview ul, .article-preview ol, .article-preview blockquote { margin: 0 0 12px; }
.article-preview blockquote { padding-left: 14px; border-left: 3px solid var(--color-accent-100); color: var(--color-neutral-700); }
.article-preview code { font-size: 13px; background: var(--color-fill); padding: 1px 5px; border-radius: 4px; }
.report-article summary { cursor: pointer; font-size: 14.5px; margin-bottom: 10px; }
.report-article .article-preview { max-height: none; }
/* Link check results in the "Mark as live" modal. */
.link-checks { display: flex; flex-direction: column; gap: 8px; }
.link-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.link-check > i { font-size: 18px; margin-top: 1px; }
.link-check.ok > i { color: var(--color-accent); }
.link-check.warn > i { color: #b7791f; }
.link-check.bad > i { color: #c53030; }
.link-check .muted { font-size: 13px; }
/* Section headers: title + description on the left, buttons pinned to the right end of the same line. */
.section-head { display: flex; align-items: flex-start; gap: 12px; }
.section-head > div:first-child { flex: 1 1 auto; min-width: 0; }
.section-head > :not(:first-child) { flex: none; margin-left: auto; }
@media (max-width: 640px) { .section-head { flex-wrap: wrap; } }
.article-preview h2 { font-size: 24px; } .article-preview h3 { font-size: 19px; } .article-preview h4, .article-preview h5 { font-size: 16px; }
.side-legal { display: flex; gap: 12px; padding: 6px 10px 0; font-size: 12px; }
.side-legal a { color: var(--color-neutral-500); text-decoration: none; }
.side-legal a:hover { color: var(--color-text); }
.side-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.side-actions .side-link { min-width: 0; padding: 0 10px; gap: 6px; background: var(--color-fill); white-space: nowrap; }
.side-actions .side-link:hover { background: var(--color-fill-strong); }
.side-actions .side-link.on { background: var(--color-accent-100); }
.side-actions button.side-link { width: 100%; border: 0; cursor: pointer; font-family: inherit; text-align: left; }
.side-email { padding: 6px 10px 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Site page (/p/<id>): one property, in the landing page's current design (landing/index.html): its tokens, fonts,
   pill buttons, cards, orbs and dark bands, all scoped under .prop (classes p*) so the app's own styles don't clash.
   Locked prices are blank blurred cards; the real numbers never reach the page. */
.prop {
  --ink: #120d3f; --ink-2: #3d3870; --ink-3: #4a4578; --muted: #6b6699; --faint: #8a85b3;
  --bg: #fbfaff; --card: #fff; --line: #eceaf6; --tint: #eeecff; --tint-2: #f3f2fb; --tint-3: #f0eef8;
  --blue: #2a1fff; --violet: #7a1fff; --pink: #ff2bd6; --magenta: #d81fb4; --orange: #ff7a2b; --sun: #ffd23f;
  --grad: linear-gradient(95deg, #2a1fff, #9b2bff 40%, #ff2bd6 75%, #ff7a2b);
  --heading: 'Comfortaa', ui-rounded, system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 24px); --section: clamp(56px, 9vw, 88px);
  min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 16px/1.5 Manrope, system-ui, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
.prop a { color: var(--blue); text-decoration: none; }
.prop a:hover { color: var(--magenta); }
.prop h1, .prop h2, .prop h3 { margin: 0; font-family: var(--heading); color: var(--ink); text-wrap: balance; }
.prop h2 { font-weight: 700; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.05; letter-spacing: -.035em; }
.prop .pwrap { position: relative; max-width: 1200px; margin: 0 auto; padding: var(--section) var(--gutter); }
.prop .phead { max-width: 720px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.prop .peyebrow { font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); }
.prop .plede { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-3); text-wrap: pretty; }
.prop .pfine { margin: 0; font-size: 12.5px; color: var(--muted); }
.prop .pbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border: 0; border-radius: 999px; cursor: pointer; font: 700 16px Manrope, system-ui, sans-serif; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s, border-color .15s; }
.prop .pbtn:disabled { opacity: .6; cursor: default; }
.prop .pbtn-sm { padding: 11px 18px; font-size: 14px; }
.prop .pbtn-orb thinking-orb { margin-left: -4px; }
.prop .pbtn-grad { background: linear-gradient(95deg, var(--blue), var(--violet)); color: #fff; box-shadow: 0 10px 30px rgb(42 31 255 / .28); }
.prop .pbtn-grad:hover { color: #fff; box-shadow: 0 14px 36px rgb(255 43 214 / .35); }
.prop .pbtn-line { padding: 16px 24px; border: 1px solid rgb(18 13 63 / .16); color: var(--ink); font-weight: 600; background: #fff; }
.prop .pbtn-line:hover { border-color: var(--blue); color: var(--blue); }
.prop .pbtn-ink { background: var(--ink); color: #fff; }
.prop .pbtn-ink:hover { background: var(--blue); color: #fff; }
.prop .pbtn-white { background: #fff; color: var(--ink); }
.prop .pbtn-white:hover { background: var(--sun); color: var(--ink); }
.prop .pbtn-soft { background: var(--tint); color: var(--blue); }
.prop .pbtn-soft:hover { background: var(--blue); color: #fff; }
.prop .pcard { background: var(--card); border: 1px solid var(--line); border-radius: 22px; transition: border-color .15s, box-shadow .15s; }
.prop .plift:hover { border-color: #c9c4ff; box-shadow: 0 16px 40px rgb(42 31 255 / .08); }
.prop .pdark { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 24px; }
.prop .pdark h2 { color: #fff; }

/* nav */
.prop .pnav { position: sticky; top: 0; z-index: 30; background: rgb(251 250 255 / .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgb(18 13 63 / .08); }
.prop .pnav-row { max-width: 1200px; margin: 0 auto; padding: 10px clamp(14px, 4vw, 24px); min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.prop .pbrand { flex: none; display: flex; align-items: center; gap: 8px; color: var(--ink); font: 700 clamp(15px, 2vw, 17px) var(--heading); letter-spacing: -.02em; white-space: nowrap; }
.prop .pbrand:hover { color: var(--ink); }
.prop .pbrand img { width: 34px; height: 34px; mix-blend-mode: multiply; margin: -4px -2px; }
.prop .pnav-links { display: flex; gap: clamp(16px, 2.2vw, 28px); font-size: 14px; font-weight: 600; }
.prop .pnav-links a { color: var(--ink-2); white-space: nowrap; }
.prop .pnav-links a:hover { color: var(--blue); }
.prop .pnav-end { flex: none; display: flex; gap: 8px; align-items: center; }
.prop .pnav-signin { padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
@media (max-width: 899px) { .prop .pnav-links { display: none; } }
@media (max-width: 419px) { .prop .pnav-end .pbtn { display: none; } }

/* hero: the domain is drawn on a canvas (paintName) that shrinks to fit, in the landing's gradient (data-grad) */
.prop .phero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(24px, 5vw, 48px); align-items: center; padding-top: clamp(40px, 7vw, 72px); padding-bottom: clamp(48px, 8vw, 88px); }
.prop .phero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.prop .pbadge { align-self: flex-start; font: 400 12px/1 var(--mono); letter-spacing: .08em; padding: 7px 12px; border-radius: 999px; background: var(--tint); color: var(--blue); }
.prop .phero h1 { font-weight: 700; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.04em; }
.prop canvas.site-name { display: inline-block; vertical-align: bottom; font: inherit; color: inherit; max-width: 100%; }
.prop .phero .plede { max-width: 540px; }
.prop .pctas { display: flex; gap: 12px; flex-wrap: wrap; }
.prop .ppoints { display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.prop .ppoints span { display: flex; align-items: center; gap: 8px; }
.prop .ppoints i { width: 8px; height: 8px; border-radius: 50%; }
.prop .phero-art { position: relative; min-height: clamp(380px, 70vw, 500px); max-width: 560px; width: 100%; justify-self: center; }
.prop .porb { position: absolute; height: auto; pointer-events: none; }
.prop .pplaced { position: relative; z-index: 2; margin: clamp(70px, 16vw, 96px) 0 0 auto; width: min(100%, 420px); padding: clamp(16px, 4vw, 22px); border-radius: 24px; background: rgb(255 255 255 / .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgb(255 255 255 / .9); box-shadow: 0 30px 80px rgb(18 13 63 / .18); display: flex; flex-direction: column; gap: 14px; }
.prop .purl { display: flex; align-items: center; gap: 8px; font: 400 12px var(--mono); color: var(--muted); padding: 8px 12px; border-radius: 10px; background: var(--tint-2); overflow: hidden; white-space: nowrap; }
.prop .purl i { width: 7px; height: 7px; border-radius: 50%; background: #1fbf6b; flex: none; }
/* the address is a fixed-width canvas: it clips inside the bar instead of widening the hero on phones */
.prop .phero > *, .prop .purl { min-width: 0; }
.prop .purl canvas { flex: none; max-width: none; }
.prop .ptags { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 700; }
.prop .ptags span { padding: 5px 9px; border-radius: 999px; background: var(--tint); color: var(--blue); }
.prop .ptags .da { background: var(--blue); color: #fff; }
.prop .ptags .df { background: #ffe9f9; color: #b0168f; }
.prop .pplaced h3 { font-weight: 500; font-size: 19px; line-height: 1.25; letter-spacing: -.02em; }
.prop .pplaced p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.prop .plink { color: var(--blue); font-weight: 700; text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 3px; }
.prop .pstat { display: flex; align-items: baseline; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.prop .pstat strong { font: 700 24px var(--heading); letter-spacing: -.03em; }
.prop .pstat span { font-size: 13px; color: var(--muted); }

/* what you can order */
.prop .pgrid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.prop .preason { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.prop .preason thinking-orb { margin: -6px 0 -2px -6px; }
.prop .preason h3 { font-weight: 500; font-size: 18px; line-height: 1.25; letter-spacing: -.02em; }
.prop .preason p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-3); text-wrap: pretty; }

/* how it works */
.prop .psteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.prop .pstep { padding: 24px 26px 22px; display: flex; flex-direction: column; }
.prop .pstep-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.prop .pstep-top span { font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.prop .pstep-top b { font: 700 30px/1 Unbounded, sans-serif; letter-spacing: -.04em; background: linear-gradient(135deg, var(--blue), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prop .pstep h3 { margin: 18px 0 10px; font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
.prop .pstep p { margin: 0 0 18px; flex: 1; font-size: 15px; line-height: 1.6; color: var(--ink-3); text-wrap: pretty; }
.prop .pstep .pnote { margin: 0; flex: none; padding-top: 14px; border-top: 1px dashed #dcd8f2; font-size: 14px; line-height: 1.5; color: var(--blue); font-weight: 600; }
.prop .ptiming { margin-top: 24px; padding: clamp(22px, 4vw, 28px) clamp(20px, 4vw, 32px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.prop .ptiming img { position: absolute; width: 200px; height: auto; right: -20px; top: -40px; opacity: .9; pointer-events: none; }
@media (max-width: 640px) { .prop .ptiming img { width: 150px; opacity: .3; } } /* the arcs sit behind the text on a phone */
.prop .ptiming > div { position: relative; display: flex; flex-direction: column; gap: 6px; }
.prop .ptiming .peyebrow { color: var(--sun); }
.prop .ptiming strong { font: 700 clamp(26px, 3.2vw, 40px) var(--heading); letter-spacing: -.02em; }
.prop .ptiming strong span { background: linear-gradient(95deg, var(--sun), #ff5a3c 50%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prop .ptiming p { position: relative; margin: 0; max-width: 420px; font-size: 15px; line-height: 1.6; color: #d6d3f5; }

/* pricing */
.prop .pplans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; align-items: stretch; }
.prop .pplan { padding: clamp(22px, 4vw, 30px); border-radius: 26px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.prop .pplan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.prop .pplan h3 { font-weight: 700; font-size: 22px; color: inherit; }
.prop .phot { padding: 5px 10px; border-radius: 999px; background: linear-gradient(95deg, var(--sun), #ff5a3c 50%, var(--pink)); color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.prop .pprice { display: flex; align-items: baseline; gap: 4px; }
.prop .pprice strong { font: 700 44px/1 var(--heading); letter-spacing: -.04em; }
.prop .pprice span { font-size: 15px; opacity: .7; }
.prop .pplan p { margin: 0; font-size: 15px; opacity: .85; }
.prop .pplan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prop .pplan li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.prop .pplan li::before { content: ''; flex: none; margin-top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--blue)); }
.prop .pplan .pbtn { padding: 15px; }
.prop .pplan.pick { background: linear-gradient(160deg, var(--blue), #5a12e0 60%, #8a10c8); color: #fff; border-color: transparent; --dot: var(--sun); }
.prop .pplan.pick h3 { color: #fff; }
.prop .pwas { font-size: 20px; font-weight: 600; opacity: .55; margin-right: 8px; align-self: center; }
.prop .poffer { margin: 0; font-size: 14px !important; font-weight: 700; opacity: 1 !important; color: #e0157a; }
.prop .pplan.pick .poffer { color: var(--sun, #ffd23f); }
.prop .plans-locked { position: relative; display: grid; place-items: center; min-height: 420px; padding: 24px 0; }
.prop .skeleton-plans { position: absolute; inset: 0; overflow: hidden; filter: blur(6px); opacity: .75; user-select: none; pointer-events: none; } /* clipped: on a phone the stacked cards are taller than the gate and would cover what follows */
.prop .skeleton-plans i { display: block; height: 12px; border-radius: 12px; background: var(--tint); }
.prop .skeleton-plans .pick i { background: rgb(255 255 255 / .3); }
.prop .skeleton-plans i.big { height: 40px; border-radius: 10px; background: #dcd8ff; }
.prop .skeleton-plans i.btn-bar { height: 44px; margin-top: auto; border-radius: 999px; }
.prop .unlock-card { position: relative; width: min(480px, calc(100% - 32px)); background: rgb(255 255 255 / .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgb(255 255 255 / .9); border-radius: 26px; box-shadow: 0 30px 80px rgb(18 13 63 / .18); padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.prop .unlock-card h3 { font-size: 24px; letter-spacing: -.02em; }
.prop .unlock-card p { margin: 0; color: var(--ink-3); font-size: 15px; }
.prop .unlock-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.prop .pguarantees { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.prop .pguarantees div { padding: 22px; border-radius: 20px; background: var(--tint-2); display: flex; flex-direction: column; gap: 6px; }
.prop .pguarantees strong { font-size: 16px; }
.prop .pguarantees span { font-size: 14px; line-height: 1.55; color: var(--ink-3); }

/* faq: the landing's question cards, as <details> */
.prop .pfaq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 10px; align-items: start; }
.prop .q { border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.prop .q[open] { border-color: #c9c4ff; }
.prop .q summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: clamp(16px, 3.5vw, 20px) clamp(16px, 3.5vw, 22px); font: 700 clamp(15px, 2.2vw, 17px) Manrope, sans-serif; color: var(--ink); }
.prop .q summary::-webkit-details-marker { display: none; }
.prop .q summary i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--blue); font: 400 18px/1 Manrope, sans-serif; font-style: normal; transition: transform .2s; }
.prop .q[open] summary i { background: var(--blue); color: #fff; transform: rotate(45deg); }
.prop .q p { margin: 0; padding: 0 clamp(16px, 3.5vw, 22px) 20px; font-size: 15px; line-height: 1.65; color: var(--ink-3); text-wrap: pretty; }

/* closing call to action and footer */
.prop .pcta-wrap { max-width: 1200px; margin: 0 auto 64px; padding: 0 clamp(10px, 3vw, 24px); }
.prop .pcta { border-radius: clamp(24px, 4vw, 36px); padding: clamp(48px, 8vw, 80px) clamp(22px, 5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.prop .pcta > img { position: absolute; width: clamp(220px, 34vw, 420px); height: auto; right: -30px; bottom: -40px; opacity: .9; pointer-events: none; }
.prop .pcta > div { position: relative; z-index: 2; max-width: 600px; display: flex; flex-direction: column; gap: 16px; }
.prop .pcta h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.04em; }
.prop .pcta p { margin: 0; font-size: 18px; color: #d6d3f5; }
.prop .pcta .pbtn { position: relative; z-index: 2; padding: 18px 30px; font-size: 17px; box-shadow: 0 14px 40px rgb(255 43 214 / .35); }
.prop .pfoot { max-width: 1200px; margin: 0 auto; padding: 28px var(--gutter) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.prop .pfoot > span { display: flex; align-items: center; gap: 8px; }
.prop .pfoot img { width: 28px; height: 28px; mix-blend-mode: multiply; }
.prop .pfoot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.prop .pfoot a { color: var(--muted); }
.prop .pfoot a:hover { color: var(--ink); }
@media (max-width: 759px) { .prop .pcta > img { opacity: .35; } }
.lock-blur { filter: blur(7px); user-select: none; pointer-events: none; }

/* Desk: the public page link, its on/off switch, bulk rates */
.switch.plain.on { background: var(--color-accent); }
.share-link { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px; border-radius: var(--radius-md); background: var(--color-fill); font-size: 13px; }
.share-link > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-link.off > span { text-decoration: line-through; color: var(--color-neutral-500); }
.bulk-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.bulk-row .input { width: 76px; }
.bulk-hint { margin: 0; padding: 8px 12px; border-radius: var(--radius-md); background: var(--color-accent-100); color: var(--color-accent-700); font-size: 13.5px; }
.site-page { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius-md); background: var(--color-neutral-100); }
.site-page.off .share-link > span { text-decoration: line-through; color: var(--color-neutral-500); }
.page-slug { display: flex; align-items: center; gap: 4px; font-size: 12.5px; }
.page-slug .input { flex: 1; min-width: 0; padding: 6px 10px; font-size: 13px; }
/* New order: one row per article line; lines at 0 are removed. */
.order-line { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--color-neutral-100); }
.order-line { flex-wrap: wrap; }
.order-line > div:first-child { flex: 1 0 100%; } /* the site and what it includes on top, the controls on one row below */
.order-line { position: relative; }
.order-line > .num { margin-left: auto; }
.order-line > button[aria-label="Remove"] { position: absolute; top: 6px; right: 6px; }
.order-line > div:first-child { padding-right: 36px; }
.onboard-in { max-width: 720px; display: flex; flex-direction: column; gap: 28px; }
.side-tag { margin-left: auto; height: 20px; padding: 0 8px; }
.bulk-sites { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--color-divider); }
.side-count { margin-left: auto; font-size: 12.5px; }
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.optional-details { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 1px solid var(--color-divider); }
@media (max-width: 640px) { .kinds { grid-template-columns: minmax(0, 1fr); } }
.side-add { margin-top: 14px; color: var(--color-neutral-600); }
/* A buyer's main CTA until they have a campaign: a taller filled sidebar button. Discover sits under it, locked. */
.side-link.side-cta { height: 44px; margin: 2px 0 6px; background: var(--color-accent); color: #fff; font-weight: 600; font-size: 14.5px; }
.side-link.side-cta i { color: #fff; }
.side-link.side-cta:hover, .side-link.side-cta.on { background: var(--color-accent); color: #fff; filter: brightness(1.08); }
.side-link.side-cta.on i { color: #fff; }
.side-link .side-lock { flex: none; margin-left: auto; font-size: 13px; }
/* Discover: the campaign the suggestions are for. */
.campaign-pick { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.campaign-pick > .muted { font-size: 13.5px; }
.campaign-select { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 100%; height: 50px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--color-surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--color-divider); color: var(--color-text); font: inherit; text-align: left; cursor: pointer; transition: box-shadow .15s; }
.campaign-select:hover, .campaign-select[aria-expanded="true"] { box-shadow: var(--shadow-sm), inset 0 0 0 1.5px var(--color-accent); }
.campaign-select > i:first-child { font-size: 20px; color: var(--color-accent); }
.campaign-select-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.campaign-select-text b, .campaign-select-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campaign-select-text b { font-size: 14.5px; }
.campaign-select-text small { font-size: 12.5px; color: var(--color-neutral-600); }
.campaign-caret { color: var(--color-neutral-500); transition: transform .15s; }
.campaign-caret.up { transform: rotate(180deg); }
.campaign-menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: min(380px, 100%); max-height: 360px; overflow-y: auto; padding: 6px; border-radius: 14px; background: var(--color-surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 2px; }
@media (min-width: 701px) { .campaign-menu { left: 112px; } }
.campaign-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--color-text); font: inherit; text-align: left; cursor: pointer; }
.campaign-option:hover { background: var(--color-fill); }
.campaign-option.on { background: var(--color-accent-100); }
.campaign-option > .ph-check { color: var(--color-accent); }
.campaign-icon { flex: none; font-size: 20px; color: var(--color-accent); }
.campaign-new { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--color-divider); border-radius: 0 0 10px 10px; color: var(--color-accent); font-weight: 600; font-size: 14px; }
.archived-list { padding: 6px 16px; gap: 0; }
.archived-row { padding: 10px 0; gap: 12px; }
.archived-row + .archived-row { border-top: 1px solid var(--color-divider); }
.skip-box { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: var(--color-fill); }
.skip-box .chip { background: var(--color-surface); }
.skip-box .chip.on { background: var(--color-text); }
.discover-title span { background: linear-gradient(95deg, var(--color-accent), var(--color-accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; overflow-wrap: anywhere; }
.discover-head { display: flex; flex-direction: column; gap: 6px; }
.discover-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.discover-bar .campaign-select { min-width: 240px; height: 52px; }
.discover-bar .campaign-select-text small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.discover-bar .campaign-menu { left: 0; }
.discover-title { margin: 0; overflow-wrap: anywhere; }
.discover-lede { margin: 0; max-width: 680px; font-size: 15px; line-height: 1.5; }
.discover-loading { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 80px 20px; text-align: center; }
.discover-loading b { font-size: 17px; }
.why { display: flex; gap: 8px; align-items: flex-start; }
.why thinking-orb { flex: none; margin-top: 1px; }
.why .reasons { margin: 0; }
/* The hero orb is part of the panel: very large, slow, bleeding off the right edge (the panel clips it), under the copy. */
.discover-hero-orb { position: absolute; right: -150px; top: 50%; transform: translateY(-58%); color: #fff; opacity: .9; pointer-events: none; }
.discover-hero > :not(.discover-hero-orb) { position: relative; z-index: 1; }
@media (max-width: 900px) { .discover-hero-orb { right: -260px; opacity: .5; } }
@media (max-width: 560px) { .discover-hero-orb { right: -330px; top: 0; transform: none; opacity: .35; } }
/* Discover before the first campaign: a landing-style hero with one CTA. */
.discover-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(28px, 5vw, 52px); border-radius: 20px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgb(255 43 214 / .55), transparent 55%), linear-gradient(135deg, #2a1fff, #5a12e0 55%, #8a10c8); box-shadow: 0 18px 50px rgb(42 31 255 / .25); }
.discover-hero::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgb(255 210 63 / .35), transparent 65%); pointer-events: none; }
.discover-kicker { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px; background: rgb(255 255 255 / .16); font: 600 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.discover-hero h2 { margin: 0; max-width: 620px; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: clamp(28px, 4.2vw, 42px); line-height: 1.12; letter-spacing: -.02em; color: #fff; }
.discover-hero h2 span { background: linear-gradient(95deg, #ffd23f, #ff7a2b 55%, #ff2bd6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.discover-hero > p { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.5; color: rgb(255 255 255 / .86); }
.btn.discover-go { background: #fff; color: #2a1fff; font-weight: 700; box-shadow: 0 10px 30px rgb(0 0 0 / .2); }
.btn.discover-go:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgb(0 0 0 / .25); }
.discover-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 12px 0 0; padding: 0; list-style: none; }
.discover-steps li { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; background: rgb(255 255 255 / .1); backdrop-filter: blur(6px); }
.discover-steps b { font: 700 22px/1 var(--font-heading); color: #ffd23f; }
.discover-steps strong { font-size: 15px; }
.discover-steps span { font-size: 13.5px; line-height: 1.4; color: rgb(255 255 255 / .78); }
@media (max-width: 700px) { .discover-steps { grid-template-columns: 1fr; } }
/* Not production: construction stripes on the sidebar and a corner tag, per copy of the app (envBadge). */
.env-aside.env-dev { --env: rgb(255 196 0 / .16); }
.env-aside.env-live { --env: rgb(255 59 48 / .16); }
.env-aside.env-mockup { --env: rgb(123 63 228 / .14); }
.shell > aside.env-aside { background: repeating-linear-gradient(-45deg, var(--env) 0 14px, transparent 14px 28px), #f4f2fd; }
.env-tag { position: fixed; z-index: 100; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; font: 600 11.5px var(--font-mono); letter-spacing: .04em; color: #0d1117; pointer-events: none;
  background: repeating-linear-gradient(-45deg, #ffd23f 0 8px, #ffe27a 8px 16px); box-shadow: 0 4px 14px rgb(0 0 0 / .15); }
.env-tag.env-live { background: repeating-linear-gradient(-45deg, #ff3b30 0 8px, #ff6b61 8px 16px); color: #fff; }
.env-tag.env-mockup { background: repeating-linear-gradient(-45deg, #7b3fe4 0 8px, #9a6af0 8px 16px); color: #fff; }
.side-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-tag { flex: none; white-space: nowrap; }
/* Site page, "What you can order": the campaign (left) and what every article in it includes (right), one card. */
.prop .offer-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 24px; background: var(--color-surface); box-shadow: var(--shadow-md), inset 0 0 0 2px var(--color-accent); }
.prop .offer-main { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.prop .offer-main .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--color-accent-100); color: var(--color-accent); }
.prop .offer-main h3 { margin: 4px 0 0; font-size: 28px; letter-spacing: -0.02em; }
.prop .offer-main p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--color-neutral-700); max-width: 520px; }
.prop .offer-main .ticks { margin: 6px 0 10px; font-size: 15px; gap: 10px; }
.prop .offer-main .btn { margin-top: auto; }
.prop .offer-side { padding: 28px; border-radius: 16px; background: var(--color-accent-100); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.prop .offer-side .kicker { color: var(--color-accent-700); }
.prop .offer-side .ticks { margin: 0; font-size: 15px; gap: 12px; color: var(--color-accent-900); }
@media (max-width: 960px) {
  .prop .offer-split { grid-template-columns: minmax(0, 1fr); padding: 8px; border-radius: 20px; }
  .prop .offer-main { padding: 18px 16px 20px; }
  .prop .offer-main h3 { font-size: 24px; }
  .prop .offer-main .btn { width: 100%; justify-content: center; min-height: 48px; }
  .prop .offer-side { padding: 20px 18px; }
}

/* attachments: Google Docs links and images on an order */
.files { display: flex; flex-direction: column; gap: 6px; }
.file { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 8px; border-radius: var(--radius-md); background: var(--color-fill); font-size: 13.5px; }
.file img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; flex: none; }
.file > i { font-size: 22px; flex: none; color: var(--color-neutral-500); }
.file a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.file .muted { font-size: 12px; flex: none; }
.file .btn-icon { flex: none; }
.attach-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.attach-row .input { flex: 1 1 220px; min-width: 0; }
.attach-row .disabled { opacity: .6; pointer-events: none; }
.modal-wide { width: min(860px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.preview-body { display: flex; flex-direction: column; gap: 22px; overflow: auto; min-height: 0; }
.doc-frame { width: 100%; height: min(60vh, 560px); border: 0; border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.image-grid a { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; min-width: 0; }
.image-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); background: var(--color-fill); }
.image-grid span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* review mockup controls (mockup/worker.js) */
.mockup-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  max-width: calc(100vw - 32px); padding: 8px 12px; border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-lg, 0 8px 30px rgb(13 17 23 / 18%)); font-size: 13.5px; }
.mockup-bar select.input { height: 34px; padding: 0 10px; font-size: 13.5px; width: auto; max-width: 280px; }

/* help & support: the link sits above the account footer; the ticket list in the side panel */
.side-help { margin-top: auto; }
.side-help + .side-foot { margin-top: 8px; padding: 10px 0 0; }
@media (max-width: 900px) { .side-help { margin-top: 0; } }
.ticket-row { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; margin: 0 -12px; border-radius: 10px; color: inherit; text-decoration: none; font-size: 14px; }
.ticket-row:hover, .ticket-row.on { background: var(--color-fill); }
.ticket-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* npm run dev:live: always visible, so live data is never mistaken for dev */
.live-bar { position: sticky; top: 0; z-index: 50; display: flex; gap: 8px; align-items: center; justify-content: center; padding: 7px 16px; background: #b42318; color: #fff; font-size: 13.5px; text-align: center; }
.live-denied { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 16px; background: rgb(13 17 23 / 35%); }

/* app menu on phones: a bar with the logo and a menu button; the links open below it as one list */
.side-toggle { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-rows: auto minmax(0, 1fr); }
  .shell > aside { position: sticky; top: 0; z-index: 30; flex-direction: column; flex-wrap: nowrap; gap: 2px; padding: 10px 12px; }
  .shell > aside .brand { width: auto; padding: 6px 6px; }
  .side-toggle { display: inline-flex; position: absolute; top: 8px; right: 10px; font-size: 22px; }
  .shell > aside:not(.open) > :not(.brand, .side-toggle) { display: none !important; }
  .shell > aside.open { max-height: 100vh; overflow-y: auto; padding-bottom: 14px; box-shadow: 0 8px 24px rgb(13 17 23 / 12%); }
  .shell > aside.open > .brand { margin-bottom: 8px; }
  .shell > aside .side-foot { flex-direction: column; align-items: stretch; border-top: 1px solid var(--color-divider); padding: 12px 0 0; margin-top: 10px; }
}

/* order page progress: thin bars and small labels, three across on every screen */
.stages.compact { gap: 6px; }
.stages.compact > div { padding: 8px 0 0; }
.stages.compact > div::before { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 4px; }
.stages.compact .when { font-size: 11.5px; margin-top: 2px; }
.stages.compact .what { font-size: 13px; line-height: 1.3; }
@media (max-width: 900px) { .stages.compact { grid-auto-flow: column; gap: 6px; } }

/* new order: how the payment works, under the buttons */
.pay-note { font-size: 13px; line-height: 1.45; color: var(--color-neutral-700); background: var(--color-fill); border-radius: 10px; padding: 10px 12px; }
.pay-note b { color: var(--color-text); }

/* Your publishers: a site's numbers in one line */
.site-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--color-neutral-600); }
.site-facts b { color: var(--color-text); font-weight: 600; }

/* order report: the result first */
.report-done { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 12px; background: rgb(21 128 61 / 6%); }

/* Client publication report, in the landing's look (.prop tokens): rounded cards, gradient name, mono eyebrows. */
.pr-page { max-width: 920px; }
.pr-page .report-bar .btn { border-radius: 999px; }
.client-report { display: flex; flex-direction: column; gap: 16px; }
.client-report > .pcard, .client-report > .pr-band, .client-report > .pr-cta { padding: clamp(22px, 4vw, 34px); }
.pr-head { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding-top: clamp(28px, 5vw, 44px) !important; padding-bottom: clamp(28px, 5vw, 44px) !important; }
.pr-orb { position: absolute; right: -60px; top: -70px; width: clamp(200px, 34vw, 320px); height: auto; opacity: .9; pointer-events: none; }
.pr-head > :not(.pr-orb) { position: relative; z-index: 1; }
.pr-pill { display: inline-flex; align-items: center; gap: 8px; font: 400 12px/1 var(--mono); letter-spacing: .08em; padding: 8px 12px; border-radius: 999px; background: var(--tint); color: var(--blue); }
.pr-pill > i, .pr-tag.live > i { width: 7px; height: 7px; border-radius: 50%; background: #1fbf6b; }
.pr-pill > i.warn { background: var(--orange); }
.pr-kicker { font: 700 clamp(17px, 2.4vw, 22px) var(--heading); color: var(--muted); letter-spacing: -.02em; margin-top: 6px; }
.pr-name { font-weight: 700; font-size: clamp(40px, 8vw, 76px) !important; line-height: 1.02; letter-spacing: -.045em; overflow-wrap: anywhere; }
.pr-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pr-sub { font-size: 14px; color: var(--ink-3); }
.pr-snap { font: 400 12px var(--mono); color: var(--muted); }
.pr-section { display: flex; flex-direction: column; gap: 8px; }
.pr-band { background: var(--tint-2); border-radius: 22px; }
.pr-eyebrow { font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); margin-bottom: 6px; }
.pr-h2 { font-size: clamp(26px, 3.6vw, 40px) !important; }
.pr-section > p.muted, .pr-band > p.muted { color: var(--ink-3); font-size: 15px; }
.pr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: 10px; margin-top: 6px; }
.pr-stat { background: var(--tint-2); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.pr-stat-label { font: 400 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pr-stat-value { font: 700 clamp(24px, 3.4vw, 32px)/1.05 Unbounded, var(--heading); letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pr-stat .muted, .pr-band .muted, .pr-section .muted { color: var(--muted) !important; }
.pr-stat .report-check { color: #12965a; }
.pr-page .report-bar-track { background: #fff; }
.pr-page .report-bar-track > div { background: var(--grad); }
.pr-articles, .pr-list { display: flex; flex-direction: column; margin-top: 10px; }
.pr-article { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.pr-article:first-child { border-top: 0; padding-top: 4px; }
.pr-thumb { width: 112px; height: 112px; border-radius: 18px; overflow: hidden; background: var(--tint); display: grid; place-items: center; font-size: 30px; color: var(--blue); }
.pr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pr-article-title { display: block; font: 700 clamp(18px, 2.4vw, 21px)/1.25 var(--heading); letter-spacing: -.02em; color: var(--ink) !important; }
.pr-article-title:hover { color: var(--blue) !important; }
.pr-index { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 8px; }
.pr-index.ok { color: #12965a; } .pr-index.bad { color: #c81e4a; }
.pr-read { display: table; margin-top: 6px; font-size: 14.5px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.pr-article-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pr-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--tint); color: var(--blue); white-space: nowrap; }
.pr-tag.live { background: #e7f8ef; color: #12965a; }
.pr-tag.df { background: #ffe9f9; color: #b0168f; }
.pr-meta { font: 400 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pr-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.pr-band .pr-row { border-color: #e2dff2; }
.pr-anchor { font: 700 clamp(20px, 3vw, 28px)/1.15 var(--heading); letter-spacing: -.03em; color: var(--ink); }
.pr-health { display: flex; gap: 28px; flex-shrink: 0; }
.pr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; align-items: start; }
.pr-card { background: var(--tint-2); border-radius: 20px; padding: 18px 22px; }
.pr-card h3 { margin: 0 0 4px; font-size: 17px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.pr-kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid #e2dff2; font-size: 14.5px; }
.pr-kv:last-child { border-bottom: 0; }
.pr-kv > span { color: var(--muted); }
.pr-kv > b { color: var(--ink); overflow-wrap: anywhere; }
.pr-page .table { --color-text: var(--ink); }
.pr-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14.5px; }
.pr-table th, .pr-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.pr-table tbody th { width: 34%; padding-right: 16px; font: 400 11.5px/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pr-table td { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; text-align: right; }
.pr-table .pr-group th { width: auto; padding-top: 22px; font: 700 15px var(--heading); letter-spacing: -.01em; text-transform: none; color: var(--ink); border-bottom: 2px solid var(--ink); }
.pr-table tr:first-child th { padding-top: 4px; }
.pr-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding: clamp(48px, 8vw, 80px) clamp(22px, 5vw, 64px) !important; border-radius: clamp(24px, 4vw, 36px) !important; }
.pr-cta-art { position: absolute; top: 0; bottom: 0; height: 100%; width: auto; right: clamp(16px, 7vw, 96px); pointer-events: none; }
.pr-cta-copy { position: relative; z-index: 2; max-width: min(600px, calc(100% - 340px)); display: flex; flex-direction: column; gap: 16px; }
.pr-cta h2 { color: #fff !important; font-size: clamp(32px, 4.4vw, 56px) !important; line-height: 1.02; letter-spacing: -.04em; }
.pr-cta p { margin: 0; font-size: 18px; line-height: 1.5; color: #d6d3f5; }
.pr-cta .pbtn { position: relative; z-index: 2; padding: 18px 30px; font-size: 17px; box-shadow: 0 14px 40px rgb(255 43 214 / .35); }
.pr-cta .pbtn:hover { color: var(--ink); }
@media (max-width: 759px) { .pr-cta-art { opacity: .3; } .pr-cta-copy { max-width: 100%; } }
.pr-foot { margin: 4px 4px 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) {
  .pr-article { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .pr-thumb { width: 76px; height: 76px; border-radius: 14px; }
  .pr-article-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .pr-row { flex-direction: column; align-items: flex-start; }
  .pr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-stat { padding: 14px 16px; }
  .pr-stat-value { font-size: 24px; }
  .pr-health { gap: 20px; flex-wrap: wrap; }
  .pr-kv { grid-template-columns: 96px minmax(0, 1fr); }
  .pr-orb { opacity: .45; }
  .pr-cta .pbtn { white-space: normal; text-align: center; }
  .report-bar { flex-wrap: wrap; gap: 10px; }
  .report-bar > div { flex-wrap: wrap; }
}
@media print {
  .pr-page { background: #fff; }
  .pr-head, .pr-stat, .pr-band, .pr-card, .pr-cta, .pr-tag, .pr-pill, .pr-grad, .pr-cta h2 span { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .pr-section, .pr-article, .pr-card, .pr-cta { break-inside: avoid; }
}

/* thinking orbs (shared/thinking-orb.js): tinted ones take the brand accent */
.orb-ink { color: var(--color-accent); }

/* referral program (affiliate.js): the join hero, the link card, stats */
.aff-kicker { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--font-mono, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent-2); }
.aff-kicker i { font-size: 16px; }
.aff-join { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.aff-hero { padding: 8px 0; display: flex; flex-direction: column; gap: 16px; }
.aff-hero h1 { margin: 0; font-size: 40px; line-height: 1.12; letter-spacing: -0.02em; }
.aff-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aff-hero > p { margin: 0; font-size: 16px; color: var(--color-neutral-700); max-width: 560px; }
.aff-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.aff-facts > div { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.aff-facts b { font: 700 22px/1.1 var(--font-heading); color: var(--color-text); }
.aff-facts span { font-size: 13px; color: var(--color-neutral-700); }
.aff-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.aff-steps li::marker { color: var(--color-accent-2); font-weight: 700; }
.aff-link { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 24px 28px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, var(--color-accent-2) 0%, transparent 55%), linear-gradient(120deg, var(--color-accent-700), var(--color-accent)); }
.aff-link-in { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.aff-link .aff-kicker { color: rgba(255, 255, 255, .8); }
.aff-link p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .85); }
.aff-url { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .14); border-radius: 12px; padding: 6px 6px 6px 16px; }
.aff-url .mono { flex: 1; min-width: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; cursor: text; }
.aff-url .btn-primary { background: #fff; color: var(--color-accent-700); }
.aff-gift { position: absolute; right: -10px; bottom: -34px; font-size: 180px; opacity: .16; pointer-events: none; } /* decoration: never covers the Copy button */
.aff-note { font-size: 12.5px; color: var(--color-neutral-600); margin-top: 6px; }
.aff-available { box-shadow: inset 0 0 0 2px var(--color-accent-200), var(--shadow-sm); }
.aff-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.aff-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--color-neutral-100); }
.aff-stats b { font: 700 22px/1.1 var(--font-heading); }
.aff-stats span { font-size: 12.5px; color: var(--color-neutral-700); }
tr.row-link.on > td { background: var(--color-accent-100); }
@media (max-width: 900px) { .aff-join { grid-template-columns: minmax(0, 1fr); } .aff-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .aff-hero h1 { font-size: 30px; } .aff-facts { grid-template-columns: minmax(0, 1fr); } .aff-link { padding: 20px; } .aff-url { flex-direction: column; align-items: stretch; padding: 10px; } }
.pr-stat > .pr-stat-label { min-height: 2.4em; }

/* Campaign topics: the buyer's own topics as chips inside one input, known-topic matches, suggestions to add */
.topic-field { gap: 8px; }
.topic-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; height: auto; min-height: 44px; padding: 6px 8px; cursor: text; }
.topic-box input { flex: 1; min-width: 180px; border: 0; outline: 0; background: none; font: inherit; color: var(--color-text); padding: 4px; }
.topic-chip { display: inline-flex; align-items: center; gap: 2px; padding: 0 4px 0 12px; cursor: default; }
.topic-chip button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.topic-chip button + button { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; opacity: .7; }
.topic-chip button + button:hover { opacity: 1; background: rgba(255, 255, 255, .15); }
.topic-menu { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-suggest { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.chip.topic-new { display: inline-flex; align-items: center; gap: 6px; background: none; box-shadow: inset 0 0 0 1px var(--color-divider); border: 1px dashed transparent; }
.chip.topic-new:hover { background: var(--color-fill); }
.topic-hint { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 4px; font-size: 13.5px; color: var(--color-accent-2-700); }
.topic-hint i { font-size: 18px; flex: none; }

/* Public tools reuse the app's type, controls, panels, and color tokens. */
.link-tool { min-height:100vh; background:var(--color-neutral-100); }
.tool-nav, .tool-footer { max-width:1120px; margin:auto; padding:24px 28px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.tool-nav { border-bottom:1px solid var(--color-divider); }
.tool-main { max-width:1120px; margin:auto; padding:58px 28px 64px; }
.tool-intro { max-width:690px; margin-bottom:36px; }
.tool-intro h1 { font-size:clamp(38px,6vw,64px); line-height:1.12; margin:20px 0; }
.tool-intro h1 span { color:var(--color-accent); }
.tool-intro p { font-size:17px; line-height:1.7; max-width:610px; }
.tool-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(250px,1fr); gap:40px; align-items:start; }
.tool-work { min-width:0; display:flex; flex-direction:column; gap:20px; }
.tool-form { padding:30px; gap:24px; }
.tool-form h2, .tool-result h2, .tool-faq h2 { font-size:23px; margin:0; }
.tool-icon { font-size:28px; color:var(--color-accent); }
.tool-form .input { height:48px; }
.tool-form small { display:block; margin-top:8px; font-size:12px; line-height:1.5; }
.tool-form-note { font-size:12px; line-height:1.6; margin:0; }
.tool-form > .tool-form-note { text-align:center; }
.tool-aside { padding:26px 8px; }
.tool-aside-mark { width:64px; height:64px; display:grid; place-items:center; background:var(--color-accent-100); border-radius:20px; color:var(--color-accent); font-size:32px; margin-bottom:22px; }
.tool-aside h2 { font-size:28px; line-height:1.3; margin-bottom:28px; }
.tool-benefit { display:flex; gap:14px; margin-bottom:22px; }
.tool-benefit > span { font:12px var(--font-mono); color:var(--color-accent); padding-top:3px; }
.tool-benefit h3 { font-size:15px; margin:0 0 6px; }
.tool-benefit p { font-size:13px; line-height:1.7; margin:0; }
.tool-result { padding:28px; gap:18px; }
.tool-result p { margin:0; }
.tool-date { font-size:11px; }
.tool-source { display:flex; flex-direction:column; gap:6px; font-size:13px; overflow-wrap:anywhere; }
.tool-gate { padding:24px; border:1px solid var(--color-accent-200); background:var(--color-accent-100); border-radius:var(--radius-lg); display:flex; flex-direction:column; gap:16px; }
.tool-gate > i { font-size:28px; color:var(--color-accent); }
.tool-gate h3 { margin:0; font-size:24px; }
.tool-gate p { font-size:13px; line-height:1.7; }
.tool-locked-list { display:grid; gap:12px; font-size:13px; padding:2px 0 8px; }
.tool-locked-list i { margin-right:8px; }
.tool-text-button { border:0; padding:0; background:none; font:inherit; color:var(--color-accent); text-decoration:underline; cursor:pointer; }
.tool-details { display:flex; flex-direction:column; gap:20px; min-width:0; }
.tool-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:18px 0; border-block:1px solid var(--color-divider); }
.tool-metrics > div { display:flex; flex-direction:column; gap:8px; font-size:12px; }
.tool-metrics strong { font-size:20px; }
.tool-link-row { display:flex; flex-direction:column; gap:10px; border-bottom:1px solid var(--color-divider); padding-bottom:18px; overflow-wrap:anywhere; }
.tool-link-row > span { font:11px var(--font-mono); }
.tool-link-row h3 { font-size:18px; margin:0; }
.tool-link-row a { font-size:13px; }
.tool-page-details { display:grid; grid-template-columns:110px minmax(0,1fr); gap:12px; font-size:13px; margin:0; line-height:1.6; }
.tool-page-details dt { color:var(--color-neutral-600); }
.tool-page-details dd { margin:0; overflow-wrap:anywhere; }
.tool-error { color:#9b2929; border:1px solid #ebcccc; font-size:14px; }
.tool-faq { max-width:650px; margin-top:56px; }
.tool-faq h2 { margin-bottom:20px; }
.tool-faq details { padding:18px 0; border-bottom:1px solid var(--color-divider); }
.tool-faq summary { font-size:14px; font-weight:600; cursor:pointer; }
.tool-faq p { margin:14px 0 0; font-size:13px; line-height:1.8; color:var(--color-neutral-700); }
.tool-footer { border-top:1px solid var(--color-divider); font-size:12px; color:var(--color-neutral-600); }
@media(max-width:720px) { .tool-layout { grid-template-columns:1fr; gap:16px; } .tool-main { padding:36px 18px; } .tool-nav,.tool-footer { padding:20px 18px; } .tool-form,.tool-result { padding:22px; } .tool-aside { padding:20px 8px; } .tool-gate { padding:20px; } .tool-date { max-width:120px; text-align:right; } .tool-details > .btn { white-space:normal; height:auto; min-height:44px; padding:12px; text-align:center; } }

/* Tools directory: one card per working tool. */
.tool-nav-link { font-size:14px; color:var(--color-neutral-700); margin-left:auto; margin-right:16px; }
.tool-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px; }
.tool-card { padding:26px; gap:10px; text-decoration:none; color:inherit; display:flex; flex-direction:column; }
.tool-card:hover, .tool-card:focus-visible { border-color:var(--color-accent); }
.tool-card h2 { font-size:21px; margin:6px 0 0; }
.tool-card p { margin:0; font-size:14px; line-height:1.7; }
.tool-audience { font-size:12px; }
.tool-card-go { margin-top:auto; padding-top:10px; font-size:14px; font-weight:600; color:var(--color-accent); }
@media(max-width:720px) { .tool-cards { grid-template-columns:1fr; } }

/* ── Side panel + Discover chat ─────────────────────────────────────────── */
.shell > aside, .shell > main.chat, .offer-list { --ink: #120d3f; --ink-2: #3d3870; --ink-3: #6b6794; --ink-4: #8b87ad; --lav: #f4f2fd; --lav-2: #ebe8fb; --lav-line: #e3e0f4; --line: #e9e7f3; font-family: Manrope, system-ui, sans-serif; }
.shell > aside { background: var(--lav); box-shadow: none; border-right: 1px solid #eceaf6; overflow-y: auto; }
.shell > aside .side-link { height: 40px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; }
/* Every menu item has its icon: outline only (the duotone fill layer is off), in the link's own colour. */
.shell > aside .side-link > i:first-child { flex: none; font-size: 18px; color: inherit; }
.shell > aside .side-link > i.ph-duotone:first-child::before { opacity: 0; }
.shell > aside .side-link .badge-soft { background: var(--accent-wash); color: var(--accent-strong); }
.shell > aside .side-link.on .badge-soft { background: var(--accent-strong); color: #fff; }
.shell > aside .side-link:hover { background: var(--lav-2); color: var(--ink); }
.shell > aside .side-link.on { background: var(--accent-wash); color: var(--accent-strong); font-weight: 600; }
.shell > aside .side-link.side-cta, .shell > aside .side-link.side-cta:hover, .shell > aside .side-link.side-cta.on { background: var(--color-accent); color: #fff; }
.shell > aside .side-label, .side-recents > span { font: 500 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); }
.side-close { position: absolute; top: 18px; right: 12px; width: 34px; height: 34px; }
.side-close, .side-open { display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--color-neutral-600); font-size: 18px; cursor: pointer; }
.side-close:hover, .side-open:hover { background: var(--color-fill); }
.side-open { position: fixed; z-index: 20; top: 12px; left: 12px; width: 36px; height: 36px; }
.side-new { flex: none; display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin-bottom: 10px; border-radius: 12px; border: 1px solid #dcd8f2; background: #fff; font: 700 14px Manrope, sans-serif; color: var(--ink); cursor: pointer; }
.side-new:hover { border-color: var(--accent-strong); }
.side-new i { color: var(--accent-strong); }
.side-new kbd { margin-left: auto; font: 500 11px var(--font-mono); color: var(--ink-4); }
.side-recents { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; }
.side-recents > span { padding: 0 12px 6px; }
.side-recents button { padding: 8px 12px; border: 0; border-radius: 8px; background: none; text-align: left; font: 500 13px Manrope, sans-serif; color: var(--ink-2); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-recents button:hover { background: var(--lav-2); }
.shell > aside .side-help + .side-user { margin-top: 6px; padding: 12px; }
.side-user { flex-direction: row !important; align-items: center; gap: 10px; border-top: 1px solid var(--lav-line); }
.side-avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-strong), #ff2bd6); color: #fff; font-size: 12px; font-weight: 700; }
.side-who { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.side-who b { font-size: 13px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-who div { font-size: 12px; color: var(--ink-3); }
.side-who a, .side-who button { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.side-who a:hover, .side-who button:hover, .side-who a.on { color: var(--ink); text-decoration: underline; }
@media (min-width: 901px) {
  .shell { grid-template-columns: 264px minmax(0, 1fr); }
  .shell > aside { padding: 18px 14px 16px; position: sticky; }
  .shell > aside .brand { padding: 4px 8px 18px; }
  .shell.side-closed { grid-template-columns: minmax(0, 1fr); }
  .shell.side-closed > aside { display: none; }
}
@media (max-width: 900px) { .side-close, .side-open { display: none; } .side-new kbd { display: none; } }

.shell > main.chat { display: flex; flex-direction: column; gap: 0; height: 100vh; height: 100dvh; max-width: none; padding: 0; background: #fbfaff; color: var(--ink); }
.chat button:disabled { cursor: default; opacity: .55; }
.chat :is(button, a):focus-visible, .side-new:focus-visible, .side-recents button:focus-visible, .side-open:focus-visible, .side-close:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
/* Typing fields: no ring, a quiet darker border instead. */
.chat .chat-box textarea, .chat .chat-box textarea:focus, .chat-note, .chat-note:focus { outline: 0; box-shadow: none; }
.chat .chat-box:focus-within, .chat-note:focus { border-color: #cfcfd6; }
.chat-col { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 28px); }
.chat-top { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-height: 61px; padding: 12px clamp(14px, 3vw, 28px); border-bottom: 1px solid #eceaf6; }
.chat-edit { padding: 9px 14px; border: 0; border-radius: 10px; background: #f0eef9; font: 600 13px Manrope, sans-serif; color: var(--ink); cursor: pointer; white-space: nowrap; }
.chat-edit:hover { background: #e6e3f7; }
.chat-link { padding: 4px 0; border: 0; background: none; font: 500 13px Manrope, sans-serif; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.chat-link:hover { color: var(--accent-strong); }
.chat-thread { flex: 1; min-height: 0; overflow-y: auto; }
.chat-msgs { display: flex; flex-direction: column; gap: 28px; padding-block: clamp(24px, 4vw, 40px) 24px; }
.chat-msg { display: flex; flex-direction: column; scroll-margin-top: 20px; }
@media (prefers-reduced-motion: no-preference) { .chat-msg { animation: chat-in .35s ease both; } }
@keyframes chat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat-you { align-self: flex-end; max-width: min(560px, 85%); padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: var(--ink); color: #fff; font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-bot { display: flex; gap: 14px; align-items: flex-start; }
.chat-mark { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-strong), #9b2bff 50%, #ff2bd6); }
.chat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding-top: 5px; }
.chat-body > p { margin: 0; font-size: 15.5px; line-height: 1.65; color: #221c55; text-wrap: pretty; }
.chat-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-facts span { padding: 5px 10px; border-radius: 999px; background: #eeecff; color: var(--accent-strong); font: 500 12px var(--font-mono); white-space: nowrap; }
.chat-wait { align-items: center; }
.chat-wait > div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); }
.chat-dots { display: inline-flex; gap: 4px; }
.chat-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--accent-strong); animation: chat-dot 1s infinite; }
.chat-dots i:nth-child(2) { animation-delay: .15s; } .chat-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .chat-dots i { animation: none; } }
.chat-sites { display: flex; flex-direction: column; gap: 10px; }
.chat-sites-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.chat-sites-acts { display: flex; gap: 14px; }
.chat-eyebrow { font: 500 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); }
.chat-more { align-self: center; }
.chat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.chat-card { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 12px; border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s; }
.chat-card.got { border-color: var(--ink); }
.chat-card small { display: block; font-size: 11.5px; color: var(--ink-4); }
.chat-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chat-card-name { min-width: 0; }
.chat-card-name b { display: block; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-tag { flex: none; padding: 2px 8px; border: 1px solid #e6e3f2; border-radius: 999px; color: var(--ink-4); font: 400 11px var(--font-mono); white-space: nowrap; }
.chat-tag.ok { color: #0e7a43; }
.chat-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-4); }
.chat-stats b { font-weight: 500; color: var(--ink-2); }
.chat-card-buy { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; }
.chat-card-buy b { font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.chat-accept { padding: 8px 16px; border: 1px solid var(--accent-strong); border-radius: 10px; background: transparent; color: var(--accent-strong); font: 600 13.5px Manrope, sans-serif; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s; }
.chat-accept:hover { background: #f3f2ff; color: var(--accent-strong); }
.chat-accept.ok { border-color: #9fe0bd; color: #0e7a43; }
.chat-accept.ok:hover { background: #effaf4; color: #0e7a43; }
.chat-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid #f0eef9; font-size: 11.5px; color: var(--ink-4); }
.chat-card-foot span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-card-foot button { flex: none; margin-left: auto; padding: 0; border: 0; background: none; font: inherit; color: var(--ink-4); cursor: pointer; }
.chat-card-foot button:hover { color: var(--ink); }
.chat-skip { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px dashed #e3e0f2; border-radius: 12px; font-size: 13px; color: var(--ink-2); }
.chat-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-reasons button { padding: 6px 10px; border: 1px solid #dcd8f2; border-radius: 999px; background: #fff; font: 400 12px Manrope, sans-serif; color: var(--ink-2); cursor: pointer; }
.chat-reasons button:hover { border-color: var(--accent-strong); color: var(--accent-strong); }
.chat-note { width: 100%; padding: 7px 10px; border: 1px solid #e3e0f2; border-radius: 8px; background: #fff; font: 400 16px Manrope, sans-serif; color: var(--ink); }
.chat-dock { flex: none; padding-bottom: 18px; background: linear-gradient(to bottom, rgb(251 250 255 / 0), #fbfaff 30%); }
.chat-dock .chat-col { display: flex; flex-direction: column; gap: 10px; }
.chat:not(.started) .chat-dock { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 32px; }
.chat:not(.started) .chat-col { max-width: 720px; }
.chat-title { margin: 0 0 18px; font-weight: 500; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.2; letter-spacing: -.03em; text-wrap: balance; }
.chat-selects { display: flex; flex-wrap: wrap; gap: 4px; margin-left: 4px; }
.chat-select { position: relative; }
.chat-select > button { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; font: 500 14px Manrope, sans-serif; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.chat-select > button > span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.chat-select > button:hover, .chat-select > button.on { background: #f0eef9; }
.chat-select small { font: 400 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
.chat-select i { font-size: 11px; color: var(--ink-4); }
.chat-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 20; display: flex; flex-direction: column; gap: 2px; min-width: 220px; max-height: 280px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 14px 40px rgb(18 13 63 / .12); }
.chat-menu button { padding: 8px 10px; border: 0; border-radius: 8px; background: none; text-align: left; font: 400 14px Manrope, sans-serif; color: var(--ink); cursor: pointer; white-space: nowrap; }
.chat-menu button:hover, .chat-menu button.on { background: var(--lav); }
.chat-box { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 10px 16px; border: 1px solid #dcd8f2; border-radius: 20px; background: #fff; box-shadow: 0 10px 34px rgb(42 31 255 / .07); transition: border-color .15s; }
.chat-box textarea { width: 100%; resize: none; border: 0; outline: 0; background: none; font: 400 16px/1.55 Manrope, sans-serif; color: var(--ink); padding: 4px 0; }
.chat-box textarea::placeholder { color: var(--ink-4); }
.chat-box-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.chat-chips span { max-width: 220px; padding: 5px 10px; border-radius: 999px; background: var(--lav); font: 500 12px var(--font-mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-send { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-strong), #9b2bff); cursor: pointer; }
.chat .chat-send:disabled { background: #c9c4ff; opacity: 1; }
.chat-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-presets button { max-width: 100%; padding: 7px 14px; border: 1px solid #e3e0f2; border-radius: 999px; background: transparent; font: 400 13.5px Manrope, sans-serif; color: var(--ink-2); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-presets button:hover { border-color: #c9c4ff; background: #fff; }
.chat-note-line { margin: 0; text-align: center; font-size: 12px; color: var(--ink-4); }
.shell.side-closed .chat-top { padding-left: 60px; }
/* Phones: the page scrolls under the sticky menu; the composer stays at the bottom. */
@media (max-width: 900px) {
  .shell > main.chat { height: auto; min-height: calc(100dvh - 64px); }
  .chat-thread { flex: 1 0 auto; overflow: visible; }
  .chat-msg { scroll-margin-top: 76px; }
  .chat.started .chat-dock { position: sticky; bottom: 0; padding-top: 16px; padding-bottom: 10px; }
  .chat.started .chat-note-line { display: none; }
  .chat-bot { gap: 10px; }
}

/* Regular Discover: the AI page's cards on the grey page. */
.offer-list { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.offer-list .chat-card { background: #fff; }
.offer-grid { gap: 10px; align-items: stretch; }

/* Mockup controls fold into the corner pill. */
.env-toggle { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; pointer-events: auto; }
.env-toggle i { font-size: 11px; }
.mockup-bar { left: auto; right: 12px; bottom: 46px; transform: none; max-width: calc(100vw - 24px); }

/* buyer onboarding: one question per screen */
.ob-top { display: flex; align-items: center; gap: 16px; }
.ob { display: flex; flex-direction: column; gap: 28px; }
.ob-head { display: flex; flex-direction: column; gap: 14px; }
.ob-eyebrow { display: flex; align-items: center; gap: 10px; font: 500 14px/1 var(--font-mono); color: var(--color-neutral-600); }
.ob-eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--color-accent); }
.ob-title { margin: 0; font-size: clamp(36px, 6vw, 56px); line-height: 1.04; letter-spacing: -0.03em; white-space: pre-line; }
.ob-sub { margin: 0; font-size: 18px; line-height: 1.5; color: var(--color-neutral-600); }
.ob-fields { display: flex; flex-direction: column; gap: 16px; }
.ob-fields .input { font-size: 16px; }
.ob-help { font-size: 13.5px; line-height: 1.45; }
.ob-site { position: relative; }
.ob-site .input { height: 68px; padding: 0 60px 0 20px; font: 500 24px/1 var(--font-mono); border-radius: 16px; }
.ob-site i { position: absolute; right: 18px; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: #2f9e55; color: #fff; font-size: 15px; }
.ob-pick { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; height: 32px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--color-divider); font: 500 13px/1 var(--font-mono); color: var(--color-neutral-600); }
.ob-pick i { width: 13px; height: 13px; border: 2px solid var(--color-text); border-radius: 50%; }
.ob-pick i.square { border-radius: 3px; }
.ob-options { display: flex; flex-direction: column; gap: 10px; }
.ob-options.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ob-option { display: flex; align-items: center; gap: 18px; min-height: 68px; padding: 14px 18px 14px 20px; border: 0; border-radius: 16px; background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-divider); color: var(--color-text); font: inherit; text-align: left; cursor: pointer; transition: background .15s, box-shadow .15s, color .15s; }
.ob-option:hover { box-shadow: inset 0 0 0 1.5px var(--color-neutral-500); }
.ob-option:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.ob-option.on { background: var(--color-text); color: #fff; box-shadow: none; }
.ob-option-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ob-option-text b { font-size: 16.5px; font-weight: 500; }
.ob-option-text small { font-size: 14px; color: var(--color-neutral-600); }
.ob-option.on small { color: rgb(255 255 255 / .7); }
.ob-bars { display: flex; gap: 3px; flex: none; }
.ob-bars i { width: 6px; height: 24px; border-radius: 3px; background: var(--color-divider); }
.ob-bars i.on { background: var(--color-text); }
.ob-option.on .ob-bars i { background: rgb(255 255 255 / .25); }
.ob-option.on .ob-bars i.on { background: #fff; }
.ob-mark { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--color-divider); font-size: 13px; }
.ob-mark.square { border-radius: 8px; }
.ob-mark i { display: none; }
.ob-option.on .ob-mark { background: var(--color-accent); box-shadow: none; color: #fff; }
.ob-option.on .ob-mark i { display: block; }
.ob-foot { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 0 16px; background: linear-gradient(transparent, var(--color-bg, #fff) 30%); }
.ob-hint { font: 400 13px/1 var(--font-mono); }
.ob-hint kbd { padding: 2px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--color-divider); font: inherit; }
@media (max-width: 640px) {
  .ob-options.grid { grid-template-columns: minmax(0, 1fr); }
  .ob-site .input { font-size: 20px; }
  .ob-hint { display: none; }
}

/* project: placements by DR tier */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.tier-pick { border: 1px solid var(--color-neutral-200, #e6e8ef); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; background: var(--color-surface); transition: border-color .15s, box-shadow .15s; }
.tier-pick.on { border-color: var(--color-accent, #3347ff); box-shadow: 0 0 0 1px var(--color-accent, #3347ff); }
.tier-pick-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 14px 16px; background: var(--color-neutral-100); }
.tier-pick-head b { font-size: 18px; }
.tier-pick-head .tag { margin-left: auto; font-size: 11px; }
.tier-pick-price { display: flex; align-items: baseline; gap: 6px; padding: 14px 16px 10px; }
.tier-pick-price b { font-size: 24px; }
.tier-pick-price span { font-size: 13px; }
.tier-step { margin: 0 16px 16px; align-self: stretch; display: flex; }
.tier-step .seg-opt { flex: none; }
.tier-step input.seg-opt { flex: 1; min-width: 0; width: 100%; text-align: center; border: 0; font: inherit; font-weight: 600; }
.repeat-pick { display: flex; flex-direction: column; gap: 16px; }
.repeat-pick label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--color-neutral-200, #e6e8ef); cursor: pointer; font-size: 14px; }
.repeat-pick label.on { border-color: var(--color-accent, #3347ff); background: var(--color-neutral-100); }
.repeat-pick label > span:first-of-type { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.repeat-pick small { font-size: 12px; }
.repeat-pick small.tag { display: inline-block; margin-top: 2px; }

/* outreach: delivery pace */
.pace-pick { display: flex; flex-direction: column; gap: 8px; }
.pace-pick .pace-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pace-pick label { position: relative; display: flex; flex-direction: column; align-items: center; padding: 10px 4px 8px; border-radius: var(--radius-md); border: 1px solid var(--color-neutral-200); cursor: pointer; font-size: 14px; text-align: center; }
.pace-pick label.on { border-color: var(--color-accent); background: var(--color-neutral-100); box-shadow: 0 0 0 1px var(--color-accent); }
.pace-pick label.off { opacity: .4; cursor: not-allowed; }
.pace-pick input { position: absolute; opacity: 0; pointer-events: none; }
.pace-pick label:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.pace-pick small { font-size: 12px; }
.pace-pick em { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-size: 10px; font-style: normal; padding: 1px 6px; white-space: nowrap; }

/* Public publisher track record: aggregate evidence, separate from pricing. */
.prop .publisher-proof { padding: clamp(20px, 4vw, 40px); border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(120% 90% at 100% 0, #efeaff 0, transparent 60%), var(--tint-2); display: flex; flex-direction: column; gap: clamp(18px, 3vw, 28px); }
.prop .proof-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.prop .proof-live { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 400 12px/1 var(--mono); color: var(--ink-2); white-space: nowrap; }
.prop .proof-live i { width: 8px; height: 8px; border-radius: 50%; background: #17b26a; box-shadow: 0 0 0 4px rgb(23 178 106 / .18); }
.prop .proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.prop .proof-tile { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.prop .proof-label { font: 400 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prop .proof-tile b { font: 700 clamp(28px, 3.1vw, 38px)/1.05 Unbounded, var(--heading); letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prop .proof-tile p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); text-wrap: pretty; }
.prop .proof-hero { background: linear-gradient(140deg, var(--blue), var(--violet)); border-color: transparent; box-shadow: 0 16px 40px rgb(42 31 255 / .22); }
.prop .proof-hero b, .prop .proof-hero p { color: #fff; }
.prop .proof-hero .proof-label { color: rgb(255 255 255 / .75); display: flex; align-items: center; gap: 8px; }
.prop .proof-pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #5dffb0; box-shadow: 0 0 0 0 rgb(93 255 176 / .7); }
@media (prefers-reduced-motion: no-preference) { .prop .proof-pulse { animation: proof-pulse 1.8s ease-out infinite; } }
@keyframes proof-pulse { to { box-shadow: 0 0 0 9px rgb(93 255 176 / 0); } }
.prop .proof-meter { height: 6px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.prop .proof-meter i { display: block; height: 100%; border-radius: inherit; background: #17b26a; }
.prop .proof-fine { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }

/* Settings → Billing: PayPal at checkout or invoice. */
.pay-by { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.pay-by label { display:flex; gap:10px; align-items:flex-start; padding:14px; border:1px solid var(--color-neutral-300, #dedcf0); border-radius:14px; cursor:pointer; }
.pay-by label.on { border-color:var(--color-accent, var(--accent-strong)); background:#f8f7ff; }
.pay-by small { display:block; margin-top:4px; color:var(--color-neutral-600, #6b6699); font-size:12.5px; line-height:1.45; }
@media (max-width:640px) { .pay-by { grid-template-columns:1fr; } }

/* ── Brand theme (docs/white-label.md) ─────────────────────────────────────────
   The app's accent is two variables. A brand other than the default sets --brand-accent, --brand-accent-soft,
   --brand-ink and --brand-heading on <html data-brand> (the worker writes them into the page; app.js does the same
   from /api/config), and everything that was link blue follows. */
:root { --accent-strong: #2a1fff; --accent-wash: #e6e3ff; }
html[data-brand] {
  --accent-strong: var(--brand-accent); --accent-wash: var(--brand-accent-soft);
  --color-accent: var(--brand-accent);
  --color-accent-100: var(--brand-accent-soft);
  --color-accent-200: color-mix(in srgb, var(--brand-accent) 20%, #fff);
  --color-accent-300: color-mix(in srgb, var(--brand-accent) 38%, #fff);
  --color-accent-400: color-mix(in srgb, var(--brand-accent) 60%, #fff);
  --color-accent-500: color-mix(in srgb, var(--brand-accent) 82%, #fff);
  --color-accent-600: color-mix(in srgb, var(--brand-accent) 88%, #000);
  --color-accent-700: color-mix(in srgb, var(--brand-accent) 74%, #000);
  --color-accent-800: color-mix(in srgb, var(--brand-accent) 60%, #000);
  --color-accent-900: color-mix(in srgb, var(--brand-accent) 44%, #000);
  --color-accent-2: color-mix(in srgb, var(--brand-accent) 74%, #000);
}
html[data-brand] :is(h1, h2, .auth-h) { font-family: var(--brand-heading, inherit); }
/* The site page has its own palette; a brand's colour takes the place of its blue, violet and pink. */
html[data-brand] .prop {
  --blue: var(--brand-accent); --violet: color-mix(in srgb, var(--brand-accent) 78%, #000); --pink: color-mix(in srgb, var(--brand-accent) 70%, #fff); --magenta: var(--brand-accent);
  --tint: var(--brand-accent-soft);
  --grad: linear-gradient(95deg, color-mix(in srgb, var(--brand-accent) 78%, #000), var(--brand-accent) 55%, color-mix(in srgb, var(--brand-accent) 70%, #fff));
  --heading: var(--brand-heading, 'Comfortaa', ui-rounded, system-ui, sans-serif);
}
html[data-brand] .side-avatar { background: var(--brand-accent); }
/* A brand's logo in place of the wordmark: no mark before it, sized by height. */
html[data-brand] .brand::before { content: none; }
.brand-logo { display: block; height: 30px; width: auto; max-width: 190px; }
.prop .pbrand .brand-logo { width: auto; height: 34px; margin: 0; mix-blend-mode: normal; }
/* Loading: the default brand's animated mark; any other brand shows a plain pulse in its colour. */
.loading-dot { display: none; width: 14px; height: 14px; border-radius: 50%; background: var(--brand-accent, #2a1fff); animation: brand-pulse 1s ease-in-out infinite; }
html[data-brand] .loading-mark { display: none; }
html[data-brand] .loading-dot { display: block; }
@keyframes brand-pulse { 50% { transform: scale(1.7); opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .loading-dot { animation: none; } }
