/* CatalogDoctor AI */
@import url("fonts/fonts.css");
:root {
  /* Southern Sky Safaris palette */
  --bg: #f5ecdf;
  --card: #fffefc;
  --ink: #281c02;
  --ink-2: #43300a;
  --muted: #7a6238;
  --line: #e6dccb;
  --line-2: #f1e9dc;
  --brand: #281c02;
  --brand-2: #43300a;
  --brand-soft: #f1e7d6;
  --accent: #c3b091;
  --link: #8a6a2f;
  --high: #a63a24;
  --high-soft: #f6e1da;
  --medium: #9a6312;
  --medium-soft: #f6e8cf;
  --low: #6f6a5e;
  --low-soft: #efebe3;
  --good: #4b6b2e;
  --good-soft: #e8edd9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(40, 28, 2, .05), 0 4px 16px rgba(40, 28, 2, .05);
  --side: #281c02;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14.5px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
code { background: var(--line-2); padding: 1px 5px; border-radius: 5px; font-size: .92em; }
[hidden] { display: none !important; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side {
  background: var(--side);
  color: #e3d7c2;
  padding: 22px 14px;
  display: flex; flex-direction: column; gap: 22px;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 650; font-size: 16px; padding: 0 8px; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--accent); font-weight: 750; }
.brand.big { font-size: 21px; color: var(--ink); padding: 0; }
.brand.big b { color: var(--brand); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  color: #d9cfbe; padding: 9px 10px; border-radius: 10px; font-weight: 500;
}
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav a.on { background: rgba(195,176,145,.2); color: #fff; }
.nav a.on svg { stroke: var(--accent); }
.nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 6px; }
.store-pill { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #c3b091; overflow: hidden; }
.store-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-pill i { width: 8px; height: 8px; border-radius: 50%; background: #7a6238; flex: none; }
.store-pill.ok i { background: #c3b091; box-shadow: 0 0 0 3px rgba(195,176,145,.25); }
.side .linkbtn { color: #c3b091; font-size: 13px; padding: 0; }

.main { padding: 26px 32px 48px; min-width: 0; }
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.top h1 { font-size: 24px; font-weight: 700; }
.sub { margin: 3px 0 0; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h3 { font-size: 15.5px; font-weight: 650; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.grid2.wide-left { grid-template-columns: 1.15fr 1fr; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 14px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
  white-space: nowrap;
}
.btn:hover { border-color: #dacfbd; text-decoration: none; background: #fbf7f0; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: ""; position: absolute; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--brand) transparent var(--brand) transparent;
  animation: spin .8s linear infinite;
}
.btn.primary.loading::after { border-color: #fff transparent #fff transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkbtn { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: var(--high); }

/* ---------- Flash / toast ---------- */
.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; background: var(--good-soft); color: #3e5a24; border: 1px solid #d6ddbf; }
.flash.error { background: var(--high-soft); color: #9a2a22; border-color: #f6cbc6; }
.toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 50; max-width: 420px;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: 14px;
}
.toast.error { background: #8f2a23; }
.toast a { color: var(--accent); font-weight: 600; margin-left: 6px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; margin-bottom: 18px; }
.ring { width: 132px; height: 132px; display: block; }
.ring-bg { fill: none; stroke: var(--line-2); stroke-width: 11; }
.ring-fg { fill: none; stroke-width: 11; stroke-linecap: round; stroke: var(--good); }
.ring.warn .ring-fg { stroke: var(--accent); }
.ring.bad .ring-fg { stroke: var(--high); }
.ring-num { font-size: 34px; font-weight: 750; fill: var(--ink); font-variant-numeric: tabular-nums; }
.ring-lbl { font-size: 12px; fill: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.grade { font-size: 26px; margin: 2px 0 6px; }
.grade.good { color: var(--good); }
.grade.warn { color: var(--medium); }
.grade.bad { color: var(--high); }
.hero-txt p { margin: 0 0 6px; color: var(--ink-2); max-width: 560px; }
.delta { font-size: 12.5px; font-weight: 650; padding: 2px 8px; border-radius: 99px; }
.delta.up { background: var(--good-soft); color: var(--good); }
.delta.down { background: var(--high-soft); color: var(--high); }
.hero-sev { display: grid; grid-template-columns: repeat(3, 92px); gap: 10px; }
.sevbox { border-radius: 12px; padding: 12px; text-align: center; color: var(--ink); border: 1px solid transparent; }
.sevbox:hover { text-decoration: none; filter: brightness(.98); }
.sevbox b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.sevbox span { font-size: 12px; font-weight: 600; }
.sevbox.high { background: var(--high-soft); } .sevbox.high b { color: var(--high); }
.sevbox.medium { background: var(--medium-soft); } .sevbox.medium b { color: var(--medium); }
.sevbox.low { background: var(--low-soft); } .sevbox.low b { color: var(--low); }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 18px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; }
.kpi span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.kpi b { font-size: 26px; font-weight: 720; font-variant-numeric: tabular-nums; }
.kpi b.kpi-sm { font-size: 18px; padding: 6px 0 4px; }
.kpi small { color: var(--muted); font-size: 12px; }

/* ---------- Bars ---------- */
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bars a { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 8px 8px; border-radius: 10px; color: var(--ink); }
.bars a:hover { background: var(--line-2); text-decoration: none; }
.bar-lbl { display: flex; align-items: center; gap: 8px; font-weight: 550; }
.bar-num { font-weight: 650; font-variant-numeric: tabular-nums; }
.bar-num small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.bars .track { grid-column: 1 / -1; }
.track { height: 7px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.fill { height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width .5s ease; }
.fill.high { background: var(--high); }
.fill.medium { background: var(--accent); }
.fill.low { background: #a39c8c; }

/* ---------- Badges ---------- */
.sev { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px; flex: none; }
.sev.high { background: var(--high-soft); color: var(--high); }
.sev.medium { background: var(--medium-soft); color: var(--medium); }
.sev.low { background: var(--low-soft); color: var(--low); }
.score { display: inline-block; min-width: 38px; text-align: center; font-weight: 700; padding: 3px 8px; border-radius: 99px; font-variant-numeric: tabular-nums; font-size: 13px; }
.score.good { background: var(--good-soft); color: var(--good); }
.score.warn { background: var(--medium-soft); color: var(--medium); }
.score.bad { background: var(--high-soft); color: var(--high); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); font-weight: 550; white-space: nowrap; }
.chip.high { background: var(--high-soft); color: var(--high); }
.chip.medium { background: var(--medium-soft); color: var(--medium); }
.chip.low { background: var(--low-soft); color: var(--low); }
.chip.ok { background: var(--good-soft); color: var(--good); }
.tag { font-size: 11px; padding: 1px 6px; border-radius: 5px; background: var(--line-2); color: var(--muted); margin-left: 6px; font-weight: 600; }

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; padding: 11px 16px; background: #faf5ec; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fdfaf4; }
.tbl.compact td { padding: 8px 4px; }
.tbl .num { text-align: right; white-space: nowrap; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.pcell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pcell a { font-weight: 600; color: var(--ink); }
.pcell a:hover { color: var(--brand); }
.thumb { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; background: var(--line-2); flex: none; border: 1px solid var(--line); }
.thumb.empty { display: inline-flex; align-items: center; justify-content: center; color: #b8a88a; }
.thumb.empty svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 480px; }

/* ---------- Filters / forms ---------- */
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; padding: 14px 16px; }
.filters label, .form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.filters .grow { flex: 1; min-width: 200px; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=search], input[type=number], select {
  font: inherit; font-weight: 400; color: var(--ink);
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; background: #fff; min-width: 0; width: 100%;
}
.filters select, .filters input[type=search] { min-width: 170px; }
input:focus, select:focus { outline: 2px solid rgba(40, 28, 2,.25); border-color: var(--brand); }
.form { display: flex; flex-direction: column; gap: 13px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: flex; gap: 8px; }
.seg label { flex-direction: row; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 9px 12px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.inline-form { margin-top: 8px; }
.test-result { margin: 0; padding: 9px 12px; border-radius: 9px; background: var(--good-soft); color: #3e5a24; }
.test-result.error { background: var(--high-soft); color: #9a2a22; }
.hint { padding: 12px 16px; margin-bottom: 16px; background: var(--brand-soft); border-color: #e3d6bf; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.checks li { padding-left: 26px; position: relative; color: var(--ink-2); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--good-soft); color: var(--good); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.warn-txt { color: var(--medium); margin: 8px 0 0; }
.foot-note { margin-top: 6px; }

/* ---------- Bulk ---------- */
.bulk { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; margin-bottom: 16px; background: linear-gradient(120deg, #ffffff 0%, #f7efe2 100%); }
.bulk h3 { font-size: 15px; margin-bottom: 2px; }
.bulk p { margin: 0; }
.bulk-ctl { display: flex; align-items: flex-end; gap: 10px; }
.bulk-ctl label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; }
.bulk-ctl input { width: 80px; }
.bulk-progress { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.bulk-progress .track { flex: 1; }

/* ---------- Product detail ---------- */
.current { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.current .thumb { width: 92px; height: 92px; border-radius: 12px; }
.current .thumb.empty svg { width: 30px; height: 30px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 0; font-size: 13.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 550; }
h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 16px 0 6px; }
.content-box { margin: 0; padding: 10px 12px; background: #faf5ec; border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink-2); }
.content-box.pre { white-space: pre-wrap; }
.content-box.scroll { max-height: 280px; overflow: auto; }
.issue-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.issue-list li { display: flex; gap: 10px; align-items: flex-start; }
.issue-list p { margin: 2px 0 0; }
.fix { color: var(--brand); }
.suggestion { border: 1px solid #e3d7c2; background: #fbf7f0; border-radius: 12px; padding: 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.suggestion.fresh { animation: pop .5s ease; border-color: var(--brand); }
@keyframes pop { from { transform: scale(.98); opacity: .3; } to { transform: none; opacity: 1; } }
.suggestion .content-box { background: #fff; }
.suggestion p { margin: 0; }
.sfield-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.notes { background: var(--medium-soft); color: #7a4b07; padding: 8px 10px; border-radius: 9px; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-state h2 { font-size: 20px; }
.empty-state p { color: var(--muted); max-width: 520px; margin: 0 0 6px; }

/* ---------- Scan progress ---------- */
.scanbar { position: fixed; inset: 0; background: rgba(40, 28, 2, .45); z-index: 40; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(2px); }
.scanbar-in { background: #fff; border-radius: 16px; padding: 22px 24px; width: min(460px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.scanbar-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; gap: 12px; }
.scanbar-head span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.scanbar .track { height: 10px; }
.scanbar p { margin: 10px 0 0; }

/* ---------- Auth ---------- */
body.auth { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px;
  background: radial-gradient(circle at 20% 10%, #efe5d4 0, transparent 45%), radial-gradient(circle at 90% 90%, #fbefd6 0, transparent 40%), var(--bg); }
.auth-card { width: min(400px, 100%); padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.auth-card h2 { font-size: 17px; margin-top: 6px; }
.auth-card > p { margin: 0 0 6px; }

/* ---------- Store connection ---------- */
.plugin-box { border: 1px solid #e3d7c2; background: #fbf7f0; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
h4.plain { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 15px; margin: 8px 0 6px; }
.steps { margin: 0 0 8px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.plugin-box p { margin: 0; }
details.advanced { border-top: 1px solid var(--line-2); padding-top: 12px; }
details.advanced summary { cursor: pointer; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
.conn { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid #e3d7c2; background: #fbf7f0; border-radius: 12px; margin-bottom: 14px; }
.conn-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.conn-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.danger-txt { color: var(--high); }
.connect-site { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #faf5ec; }
.connect-site i { width: 10px; height: 10px; border-radius: 50%; background: #c3b091; box-shadow: 0 0 0 4px rgba(195,176,145,.25); flex: none; }
.auth-card .checks { gap: 6px; }
.auth-card p { margin: 0; }

/* ---------- SaaS: app additions ---------- */
.nav-sep { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7a6238; padding: 14px 10px 4px; font-weight: 700; }
.store-switch select { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; }
.store-switch option { color: var(--ink); }
.plan-pill { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--side); background: var(--accent); padding: 3px 10px; border-radius: 99px; }
.plan-pill:hover { text-decoration: none; filter: brightness(1.05); }
.kpis.three { grid-template-columns: repeat(3, 1fr); }
.upsell { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: #fff7e6; border: 1px solid #f5dca6; color: #6b4a07; margin-bottom: 16px; }
.onboard { max-width: 640px; margin: 20px auto; display: flex; flex-direction: column; gap: 10px; padding: 32px; }
.onboard h2 { font-size: 21px; }
.onboard .steps { font-size: 15px; gap: 8px; }
.meter { margin-bottom: 14px; }
.meter-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.meter-head span { color: var(--ink-2); font-weight: 600; }
.store-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.store-row:first-of-type { border-top: 0; padding-top: 0; }
.store-row .grow { flex: 1; min-width: 200px; }
.store-row .test-result { margin-top: 8px; }
.big-price { font-size: 30px; font-weight: 750; margin: 0; }
.big-price small, .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 14px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; gap: 10px; position: relative; padding: 24px; }
.price-card h3 { font-size: 18px; }
.price-card p { margin: 0; }
.price-card .price { font-size: 34px; font-weight: 760; letter-spacing: -.02em; }
.price-card .checks { flex: 1; margin: 6px 0 8px; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: 0 10px 30px rgba(40, 28, 2,.12); }
.ribbon { position: absolute; top: -11px; right: 18px; background: var(--accent); color: var(--side); font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.btn[aria-disabled="true"] { opacity: .6; cursor: default; }
.block-txt { display: block; min-height: 38px; }
.todo { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.todo li { padding-left: 26px; position: relative; color: var(--ink-2); }
.todo li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #d6cab6; }
.todo li.done { color: var(--muted); }
.todo li.done::before { content: "✓"; border-color: var(--good); background: var(--good); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.copy-row { display: flex; gap: 8px; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 500; }
.form label.check input { margin-top: 3px; }
.form label .small { font-weight: 400; }

/* ---------- Public site ---------- */
body.site { background: #fdfaf4; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(251,252,251,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-2); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a:not(.btn) { color: var(--ink-2); font-weight: 550; }
.btn.lg { padding: 12px 22px; font-size: 16px; border-radius: 12px; }
.hero-site { padding: 72px 0 56px; background: radial-gradient(circle at 85% 20%, #fdf1d8 0, transparent 38%), radial-gradient(circle at 10% 0%, #efe5d4 0, transparent 45%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-site h1 { font-size: 50px; line-height: 1.06; letter-spacing: -.03em; margin: 12px 0 18px; }
.hero-site h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: 18px; color: var(--ink-2); max-width: 560px; margin: 0 0 24px; }
.hero-site .row { margin-bottom: 14px; }
.mock { padding: 0; overflow: hidden; transform: rotate(-1deg); box-shadow: 0 30px 60px rgba(40, 28, 2,.14); }
.mock-top { display: flex; gap: 6px; padding: 12px 14px; background: #f3ebde; border-bottom: 1px solid var(--line); }
.mock-top span { width: 10px; height: 10px; border-radius: 50%; background: #e2d7c5; }
.mock-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.mock-score { display: flex; gap: 16px; align-items: center; }
.mock-score .ring { width: 96px; height: 96px; }
.mock-score b { display: block; font-size: 20px; }
.mock-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mock-bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 13.5px; }
.mock-bars li span { display: flex; gap: 8px; align-items: center; }
.mock-bars i { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--high); }
.mock-bars i.medium { background: var(--accent); } .mock-bars i.low { background: #a39c8c; }
.mock-bars i.w25 { width: 25%; } .mock-bars i.w45 { width: 45%; } .mock-bars i.w60 { width: 60%; } .mock-bars i.w80 { width: 80%; }
.mock-ai { border: 1px solid #e3d7c2; background: #fbf7f0; border-radius: 12px; padding: 12px; }
.mock-ai p { margin: 8px 0 0; }
.section { padding: 72px 24px; }
.section.narrow { max-width: 780px; }
.section-title { font-size: 34px; letter-spacing: -.02em; text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto 36px; }
.section-title.left, .section-sub.left { text-align: left; margin-left: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 22px; }
.feature h3 { font-size: 16.5px; margin: 12px 0 6px; }
.feature p { margin: 0; color: var(--ink-2); }
.f-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.f-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.band { background: #f5ecdf; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 30px; }
.steps-grid b { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; align-items: center; justify-content: center; font-size: 16px; }
.steps-grid h3 { margin: 12px 0 6px; }
.steps-grid p { margin: 0; color: var(--ink-2); }
.security { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.security .checks { font-size: 15.5px; gap: 14px; }
details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 650; font-size: 16.5px; }
details.faq p { margin: 10px 0 0; color: var(--ink-2); }
.cta { text-align: center; background: var(--side); color: #fff; border-radius: 20px; margin: 0 auto 72px; padding: 56px 24px; }
.cta h2 { font-size: 30px; margin-bottom: 8px; }
.cta p { color: #d9cfbe; margin: 0 0 22px; }
.site-foot { border-top: 1px solid var(--line); padding: 28px 0; }
.site-foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot .brand { color: var(--ink); padding: 0; }
.site-foot nav { display: flex; gap: 18px; }
.site-foot nav a { color: var(--ink-2); }
.site-foot p { margin: 0; width: 100%; }
.legal h1 { font-size: 34px; margin-bottom: 4px; }
.legal h2 { font-size: 19px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; }

@media (max-width: 960px) {
  .hero-grid, .security { grid-template-columns: 1fr; gap: 36px; }
  .hero-site h1 { font-size: 38px; }
  .feature-grid, .pricing, .steps-grid { grid-template-columns: 1fr; }
  .kpis.three { grid-template-columns: 1fr; }
  .site-nav a:not(.btn):not([href*="login"]) { display: none; }
  .mock { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: auto 1fr; }
  .hero-sev { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 10px; }
  .nav { flex-direction: row; overflow-x: auto; width: 100%; order: 3; }
  .nav a { white-space: nowrap; padding: 7px 10px; }
  .side-foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; }
  .store-pill { display: none; }
  .main { padding: 20px 16px 40px; }
  .grid2, .grid2.wide-left { grid-template-columns: 1fr; }
  .tbl th:nth-child(2), .tbl td:nth-child(2) { display: none; }
}
@media (max-width: 600px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .form .two { grid-template-columns: 1fr; }
  .bulk { grid-template-columns: 1fr; }
  .tbl th, .tbl td { padding: 10px 10px; }
  .filters select, .filters input[type=search] { min-width: 0; }
  .filters label { flex: 1 1 140px; }
}

/* ---------- Mobile fixes ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .side { min-width: 0; }
  .nav { min-width: 0; flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-sep { display: none; }
  .store-switch { order: 2; width: 100%; }
  .card.flush { overflow-x: auto; }
  .card.flush .tbl { min-width: 480px; }
  .top h1 { font-size: 21px; }
}
@media (max-width: 600px) {
  .actions { width: 100%; }
  .actions .btn { flex: 1; }
  .hero-sev { width: 100%; }
  .card { padding: 16px; }
  .scanbar-in { padding: 18px; }
}

/* ---------- Locked (free plan) rows ---------- */
.blur { filter: blur(5px); user-select: none; pointer-events: none; color: var(--ink-2); }
.pcell.locked .thumb.empty { display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
tr.is-locked td { background: #fdfaf4; }
.lockbar { background: #f3eadb; border-color: #ddcfb6; color: #0b4f47; }

/* ---------- Yearly price + launch offer ---------- */
.price-card .yearly { margin-top: -6px; }
.launch { margin: 0 0 18px; }
.launch span { display: inline-block; padding: 8px 16px; border-radius: 99px; background: #fff7e6; border: 1px solid #f5dca6; color: #6b4a07; font-weight: 600; font-size: 14px; }

/* ---------- One-click fixes ---------- */
.row.between { justify-content: space-between; }
.suggestion .row.between { margin-top: 8px; }
.suggestion .row.between p { margin: 0; }
.fixed-note { background: var(--good-soft); color: var(--good); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; }
.fixed-note .linkbtn { font-weight: 650; }
.issue-list .chip { margin-left: 6px; vertical-align: 1px; }

/* ---------- Sign-up bot trap (hidden from people) ---------- */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.auth-card { position: relative; }

/* ---------- Show / hide password ---------- */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 44px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.pw-toggle:hover { color: var(--ink); background: var(--line-2); }
.pw-toggle:focus-visible { outline: 2px solid rgba(40, 28, 2,.35); }
.pw-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Email code (OTP) ---------- */
input.otp { font-size: 26px; font-weight: 700; letter-spacing: .45em; text-align: center; padding: 12px 10px; font-variant-numeric: tabular-nums; }
input.otp::placeholder { color: #dacfbd; }
.otp-timer { margin: -4px 0 0; color: var(--ink-2); }
.otp-timer b { color: var(--brand); }
.otp-timer.expired { color: var(--high); font-weight: 600; }
.resend-form { margin-top: 10px; }

/* ---------- Homepage demo video ---------- */
.demo-sec { padding-bottom: 20px; }
.demo-frame { position: relative; max-width: 1080px; margin: 34px auto 0; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #0b221f; border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(40, 28, 2, .05), 0 30px 80px rgba(40, 28, 2, .16); }
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.demo-cta { justify-content: center; margin-top: 28px; }
@media (max-width: 600px) { .demo-frame { border-radius: 14px; margin-top: 22px; } }

/* ---------- Monthly / Yearly switch ---------- */
.period-toggle { display: flex; width: max-content; max-width: 100%; margin: 0 auto 26px; padding: 5px; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.period-toggle button { font: inherit; font-size: 15px; font-weight: 650; color: var(--ink-2); background: transparent; border: 0; border-radius: 999px; padding: 10px 20px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.period-toggle button.on { background: var(--brand); color: #fff; }
.period-toggle .save { font-size: 12px; font-weight: 750; padding: 3px 8px; border-radius: 999px; background: #fff3d6; color: #8a5a00; }
.period-toggle button.on .save { background: rgba(255, 255, 255, .2); color: #fff; }
.period-wrap .py, .period-wrap .pyb { display: none; }
.period-wrap .pmb, .period-wrap .pyb { width: 100%; }
.period-wrap .pmb { display: block; }
.period-wrap.per-year .pm, .period-wrap.per-year .pmb { display: none; }
.period-wrap.per-year .py { display: inline; }
.period-wrap.per-year .pyb { display: block; }
@media (max-width: 420px) { .period-toggle button { padding: 9px 14px; font-size: 14px; } }

/* ---------- Southern Sky typography ---------- */
h1, h2, .section-title, .auth-card h2, .brand.big span { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.12em; letter-spacing: .01em; }
.btn, button, input, select, textarea { font-family: var(--sans); }
.side .logo rect { fill: #43300a; }

/* ---------- AI tools (overview, SalesDigest AI, SiteChat AI) ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; }
.tool-card { display: flex; flex-direction: column; gap: 8px; }
.tool-card h3 { font-size: 17px; }
.tool-card p { margin: 0; }
.tool-card .row { margin-top: auto; padding-top: 6px; }
.tool-kpi { color: var(--ink-2); }
.tool-title { font-size: 22px; margin: 34px 0 4px; }
.seg-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--brand); }
.chart .bar:hover { fill: var(--accent); }
.chart text { fill: var(--muted); font-size: 11px; }
.pad-box { padding: 0 18px 18px; }
.chat-line { margin-bottom: 10px; }
.chat-line.visitor .content-box { background: var(--brand-soft); }
.feature-grid.tools-3 .tool-link { color: var(--ink); display: flex; flex-direction: column; }
.feature-grid.tools-3 .tool-link:hover { text-decoration: none; border-color: var(--accent); }
.feature-grid.tools-3 .tool-link .small { margin-top: auto; padding-top: 10px; color: var(--link); }
#sc-test input { flex: 1; }
@media (max-width: 960px) { .tool-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Black & white theme with a top menu (4 Nov 2026).
   Overrides the colours above; remove this block to return to the old look.
   ========================================================================== */
:root {
  --bg: #fafafa;
  --card: #ffffff;
  --ink: #111111;
  --ink-2: #3f3f3f;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --line-2: #f0f0f0;
  --brand: #111111;
  --brand-2: #333333;
  --brand-soft: #f2f2f2;
  --accent: #d4d4d4;
  --link: #111111;
  --high: #b42318;
  --high-soft: #fdecea;
  --medium: #b54708;
  --medium-soft: #fef3e2;
  --low: #525252;
  --low-soft: #f0f0f0;
  --good: #15803d;
  --good-soft: #e7f6ec;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .04);
  --side: #0a0a0a;
}

/* Links inside text stay recognisable without colour */
p a:not(.btn), .steps a, .checks a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #bdbdbd; }
p a:not(.btn):hover, .steps a:hover, .checks a:hover { text-decoration-color: currentColor; }

/* ---------- Top menu (replaces the sidebar) ---------- */
body.app { display: block; }
.topbar { position: sticky; top: 0; z-index: 30; background: #ffffff; border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1320px; margin: 0 auto; padding: 0 28px; height: 62px; display: flex; align-items: center; gap: 28px; }
.topbar .brand { color: var(--ink); padding: 0; flex: none; }
.topbar .brand span { font-size: 1.05em; }
.mainnav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a { color: var(--muted); font-weight: 600; padding: 8px 12px; border-radius: 9px; white-space: nowrap; }
.mainnav a:hover { color: var(--ink); background: var(--line-2); text-decoration: none; }
.mainnav a.on { color: #ffffff; background: var(--ink); }
.topbar-right { display: flex; align-items: center; gap: 12px; flex: none; }
.topbar .store-pill { color: var(--muted); max-width: 210px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; }
.topbar .store-pill:hover { color: var(--ink); text-decoration: none; border-color: #cfcfcf; }
.store-pill i { background: #a3a3a3; }
.store-pill.ok i { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.topbar .store-switch select { width: auto; max-width: 220px; background: #ffffff; border-color: var(--line); color: var(--ink); padding: 6px 10px; }
.acct { position: relative; }
.acct summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 99px; border: 1px solid transparent; }
.acct summary::-webkit-details-marker { display: none; }
.acct summary:hover, .acct[open] summary, .acct summary.on { border-color: var(--line); background: var(--line-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #ffffff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.acct-name { font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #ffffff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); padding: 8px; display: flex; flex-direction: column; gap: 2px; z-index: 40; }
.acct-mail { margin: 4px 10px 6px; overflow: hidden; text-overflow: ellipsis; }
.acct-menu a { display: flex; align-items: center; gap: 10px; color: var(--ink); padding: 8px 10px; border-radius: 8px; font-weight: 550; }
.acct-menu a:hover { background: var(--line-2); text-decoration: none; }
.acct-menu svg, .subnav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.acct-menu form { border-top: 1px solid var(--line-2); margin-top: 4px; padding: 8px 10px 4px; }
.acct-menu .linkbtn { color: var(--high); font-weight: 600; }
.subnav { border-top: 1px solid var(--line-2); background: #ffffff; }
.subnav-in { max-width: 1320px; margin: 0 auto; padding: 0 28px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; padding: 12px 10px 11px; border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a:hover { color: var(--ink); text-decoration: none; }
.subnav a.on { color: var(--ink); border-bottom-color: var(--ink); }
body.app .main { max-width: 1320px; margin: 0 auto; padding: 30px 28px 56px; }
@media (max-width: 900px) {
  .topbar-in { padding: 0 16px; gap: 14px; height: auto; min-height: 58px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .mainnav { order: 3; flex-basis: 100%; }
  .topbar-right { margin-left: auto; }
  .topbar .store-pill, .acct-name { display: none; }
  .subnav-in { padding: 0 16px; }
  body.app .main { padding: 20px 16px 40px; }
}

/* ---------- Neutral replacements for the old warm colours ---------- */
.btn:hover { border-color: #cfcfcf; background: #f5f5f5; }
.btn.primary:hover { background: #333333; border-color: #333333; }
input:focus, select:focus { outline: 2px solid rgba(0, 0, 0, .18); }
.pw-toggle:focus-visible { outline: 2px solid rgba(0, 0, 0, .3); }
.flash { color: var(--good); border-color: #c4e6cf; }
.flash.error { color: var(--high); border-color: #f5c6c1; }
.toast.error { background: var(--high); }
.toast a { color: #ffffff; text-decoration: underline; }
.ring.warn .ring-fg { stroke: var(--medium); }
.fill.medium, .mock-bars i.medium { background: var(--medium); }
.fill.low, .mock-bars i.low { background: #a3a3a3; }
.tbl th { background: #fafafa; }
.tbl tbody tr:hover td { background: #fafafa; }
.thumb.empty { color: #a3a3a3; }
.test-result { color: var(--good); }
.test-result.error { color: var(--high); }
.hint { border-color: var(--line); }
.bulk { background: linear-gradient(120deg, #ffffff 0%, #f4f4f4 100%); }
.content-box { background: #fafafa; }
.suggestion, .plugin-box, .conn, .mock-ai { border-color: var(--line); background: #fafafa; }
.notes { color: var(--medium); }
.scanbar { background: rgba(0, 0, 0, .45); }
body.auth { background: radial-gradient(circle at 20% 10%, #efefef 0, transparent 45%), radial-gradient(circle at 90% 90%, #f3f3f3 0, transparent 40%), var(--bg); }
.connect-site { background: #fafafa; }
.connect-site i { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); }
.plan-pill { background: #ffffff; color: var(--ink); }
.upsell, .launch span { background: #f5f5f5; border-color: var(--line); color: var(--ink); }
.lockbar { background: #f5f5f5; border-color: var(--line); color: var(--ink); }
.price-card.featured { box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.ribbon { background: var(--ink); color: #ffffff; }
.todo li::before { border-color: #d4d4d4; }
body.site { background: #ffffff; }
.site-head { background: rgba(255, 255, 255, .92); }
.hero-site { background: radial-gradient(circle at 85% 20%, #f3f3f3 0, transparent 38%), radial-gradient(circle at 10% 0%, #f5f5f5 0, transparent 45%); }
.hero-site h1 em { color: #8a8a8a; }
.mock { box-shadow: 0 30px 60px rgba(0, 0, 0, .1); }
.mock-top { background: #f5f5f5; }
.mock-top span { background: #d4d4d4; }
.band { background: #fafafa; }
.cta p { color: #a3a3a3; }
tr.is-locked td { background: #fafafa; }
input.otp::placeholder { color: #d4d4d4; }
.demo-frame { background: #000000; box-shadow: 0 2px 4px rgba(0, 0, 0, .04), 0 30px 80px rgba(0, 0, 0, .12); }
.period-toggle .save { background: var(--good-soft); color: var(--good); }
.chart .bar:hover { fill: #737373; }
.feature-grid.tools-3 .tool-link:hover { border-color: var(--ink); }

/* ==========================================================================
   Dark dashboard (logged-in app only; the public site stays light).
   ========================================================================== */
body.app {
  --bg: #0c0c10;
  --card: #15151b;
  --ink: #ececf1;
  --ink-2: #c4c4cc;
  --muted: #8a8a96;
  --line: #26262e;
  --line-2: #1d1d24;
  --brand: #e5484d;
  --brand-2: #f2555a;
  --brand-soft: rgba(229, 72, 77, .12);
  --accent: #e5484d;
  --link: #ececf1;
  --high: #f87171;
  --high-soft: rgba(248, 113, 113, .12);
  --medium: #fbbf24;
  --medium-soft: rgba(251, 191, 36, .12);
  --low: #a1a1aa;
  --low-soft: rgba(161, 161, 170, .12);
  --good: #4ade80;
  --good-soft: rgba(74, 222, 128, .12);
  --shadow: none;
  color-scheme: dark;
}
body.app h1, body.app h2, body.app .section-title { font-family: var(--sans); font-weight: 700; letter-spacing: -.01em; }
body.app .top h1 { font-size: 22px; }
body.app .card { background: var(--card); border-color: var(--line); }
body.app .card-head h3, body.app .kpi span, body.app h4, body.app .tbl th, body.app .eyebrow, body.app .meter-head span {
  text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 700; color: var(--muted);
}
body.app .card-head h3 { color: var(--ink-2); }
body.app .kpi { border-left: 2px solid var(--line); }
body.app .kpis .kpi:first-child { border-color: var(--brand); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .35); }
body.app .kpi b { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* Left menu */
body.app { --side: #101016; }
body.app .side { background: var(--side); border-right: 1px solid var(--line); color: var(--ink-2); }
body.app .side .brand { color: #ffffff; }
body.app .nav a { color: var(--muted); }
body.app .nav a:hover { color: #ffffff; background: #1c1c24; }
body.app .nav a.on { color: #ffffff; background: rgba(229, 72, 77, .14); box-shadow: inset 2px 0 0 var(--brand); }
body.app .nav a.on svg { stroke: var(--brand); }
body.app .nav-sep { color: #5c5c68; }
body.app .store-switch select { background: #0f0f14; border-color: var(--line); color: var(--ink); }
body.app .side .store-pill { color: var(--ink-2); }
body.app .side-user { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.app .side .linkbtn { color: var(--muted); }
body.app .side .linkbtn:hover { color: #ffffff; }
body.app .logo rect { fill: #e5484d; }
body.app .logo circle { fill: #ffffff; }
body.app .side .logo rect { fill: #e5484d; }

/* Controls */
body.app .btn { background: #1c1c24; border-color: #2e2e38; color: var(--ink); }
body.app .btn:hover { background: #24242e; border-color: #3a3a46; }
body.app .btn.primary { background: var(--brand); border-color: var(--brand); color: #ffffff; }
body.app .btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
body.app .btn.ghost { background: transparent; }
body.app .linkbtn { color: var(--ink-2); }
body.app .linkbtn.danger { color: var(--high); }
body.app input[type=text], body.app input[type=email], body.app input[type=url], body.app input[type=password], body.app input[type=search], body.app input[type=number], body.app select, body.app textarea {
  background: #0f0f14; border-color: #2e2e38; color: var(--ink);
}
body.app input:focus, body.app select:focus { outline: 2px solid rgba(229, 72, 77, .35); border-color: var(--brand); }
body.app .period-toggle { background: #0f0f14; border-color: var(--line); }
body.app .period-toggle button { color: var(--ink-2); }
body.app .seg label { border-color: var(--line); }

/* Tables, boxes */
body.app .tbl th { background: #121218; border-color: var(--line); }
body.app .tbl td { border-color: var(--line-2); }
body.app .tbl tbody tr:hover td { background: #1a1a21; }
body.app .content-box, body.app .suggestion .content-box { background: #0f0f14; border-color: var(--line); color: var(--ink-2); }
body.app .suggestion, body.app .plugin-box, body.app .conn, body.app .connect-site { background: #121218; border-color: var(--line); }
body.app .thumb { background: #1c1c24; border-color: var(--line); }
body.app .upsell, body.app .lockbar, body.app .launch span { background: rgba(229, 72, 77, .08); border-color: rgba(229, 72, 77, .35); color: var(--ink); }
body.app .hint { background: #121218; }
body.app .bulk { background: linear-gradient(120deg, #15151b 0%, #1d1418 100%); }
body.app code { background: #1c1c24; }
body.app tr.is-locked td { background: #121218; }
body.app .flash { background: var(--good-soft); color: var(--good); border-color: rgba(74, 222, 128, .3); }
body.app .flash.error { background: var(--high-soft); color: var(--high); border-color: rgba(248, 113, 113, .3); }
body.app .test-result { color: var(--good); }
body.app .test-result.error { color: var(--high); }
body.app .notes { color: var(--medium); }
body.app .toast { background: #ececf1; color: #0c0c10; }
body.app .toast a { color: #0c0c10; }
body.app .toast.error { background: #b42318; color: #ffffff; }
body.app .scanbar { background: rgba(0, 0, 0, .65); }
body.app .scanbar-in { background: #15151b; border: 1px solid var(--line); }
body.app .price-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px rgba(229, 72, 77, .35); }
body.app .ribbon { background: var(--brand); color: #ffffff; }
body.app .checks li::before { background: var(--good-soft); color: var(--good); }
body.app .todo li::before { border-color: #3a3a46; }
body.app .chip { background: #1f1f27; color: var(--ink-2); }
body.app .tag { background: #1f1f27; }
body.app .f-icon { background: rgba(229, 72, 77, .12); color: var(--brand); }
body.app .empty-state p { color: var(--muted); }
body.app .delta.up { background: var(--good-soft); color: var(--good); }
body.app .delta.down { background: var(--high-soft); color: var(--high); }
body.app p a:not(.btn), body.app .steps a, body.app .checks a { text-decoration-color: #4a4a56; }

/* Score ring, bars, charts */
body.app .ring-bg { stroke: #24242c; }
body.app .ring-num { fill: var(--ink); }
body.app .track { background: #22222a; }
body.app .fill.low { background: #6b6b76; }
body.app .bars a:hover { background: #1c1c24; }
body.app .chart .bar { fill: var(--brand); }
body.app .chart .bar:hover { fill: #ff8a8e; }
body.app .chart text { fill: var(--muted); }
body.app .chat-line.visitor .content-box { background: rgba(229, 72, 77, .1); }
body.app .brand span { font-family: var(--sans); font-weight: 750; font-size: 1em; letter-spacing: -.01em; }
@media (max-width: 900px) { body.app .side-user { display: none; } }

/* ---------- Mobile fixes (4 Nov 2026) ---------- */
body.app .shell > .main { margin: 0; max-width: none; min-width: 0; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  body.app .side { gap: 10px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink); background: #1c1c24; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
  .menu-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  body.app .side .nav, body.app .side .side-foot { display: none; }
  body.app .side.open .nav { display: flex; flex-direction: column; flex-wrap: nowrap; overflow: visible; width: 100%; order: 3; gap: 2px; padding-top: 6px; border-top: 1px solid var(--line); }
  body.app .side.open .nav a { white-space: normal; padding: 10px 10px; }
  body.app .side.open .nav-sep { display: block; padding: 12px 10px 4px; }
  body.app .side.open .side-foot { display: flex; order: 4; width: 100%; margin: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 6px 4px; border-top: 1px solid var(--line); }
  body.app .side.open .side-user { display: block; }
  body.app .side.open .store-pill { display: flex; }
  body.app .top { margin-bottom: 16px; }
}
@media (max-width: 600px) {
  .site-head .wrap { padding: 0 16px; height: 60px; gap: 10px; }
  .site-head .brand.big { gap: 8px; }
  .site-head .brand.big .logo { width: 30px; height: 30px; }
  .site-head .brand.big span { font-size: 19px; white-space: nowrap; }
  .site-nav { gap: 12px; }
  .site-nav a { white-space: nowrap; }
  .site-nav .btn.sm { padding: 6px 10px; }
  .hero-site { padding: 40px 0 36px; }
  .hero-site h1 { font-size: 34px; }
  .section { padding: 52px 16px; }
  .wrap { padding: 0 16px; }
  .section-title { font-size: 28px; }
  .cta { margin: 0 16px 48px; padding: 40px 20px; }
}

/* ---------- Admin → Team ---------- */
.role-pick { flex-direction: column; }
.role-pick label { align-items: flex-start; }
.role-pick input { margin-top: 4px; }
.team-actions { justify-content: flex-end; flex-wrap: nowrap; }
.team-actions select { width: auto; padding: 5px 8px; }
.team-remove { margin-top: 6px; }
body.app .side { overflow-y: auto; scrollbar-width: thin; }
@media (max-width: 900px) { body.app .side { overflow: visible; } }

/* ---------- AI suggestion options (pick one per field) ---------- */
.opt-field { border: 0; margin: 0 0 6px; padding: 0; min-width: 0; }
.opt-field legend { width: 100%; padding: 0; }
.opt-list { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.opt:hover { border-color: #3a3a46; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.opt input { margin-top: 3px; flex: none; accent-color: var(--brand); }
.opt-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.opt-body .content-box { margin: 0; }
.opt-body .linkbtn { align-self: flex-start; }
.opt-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.opt.keep { padding: 8px 12px; }
.opt-tag .chip { text-transform: none; letter-spacing: 0; margin-left: 6px; }
.opt:has(input:disabled) { cursor: default; }

/* ---------- Language switcher (EN | IT) ---------- */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; gap: 2px; }
.lang-switch a { font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.lang-switch a:hover { color: var(--ink); text-decoration: none; }
.lang-switch a.on { background: var(--ink); color: #fff; }
.site-nav .lang-switch a:not(.btn) { display: inline-block; color: var(--ink-2); }
.site-nav .lang-switch a.on { color: #fff; }
.auth-lang { position: absolute; top: 14px; right: 14px; }
.side-lang { align-self: flex-start; }
body.app .lang-switch { border-color: #34343f; }
body.app .lang-switch a { color: #a1a1aa; }
body.app .lang-switch a:hover { color: #fff; }
body.app .lang-switch a.on { background: #e5484d; color: #fff; }
@media (max-width: 900px) {
  body.app .side-lang { align-self: center; }
}
/* Phones: room for the language switcher in the public header, and long words in product facts */
@media (max-width: 600px) {
  .site-head .wrap { gap: 8px; }
  .site-nav { gap: 10px; }
  .site-nav .btn.sm { padding-left: 10px; padding-right: 10px; }
  .site-nav .lang-switch a { padding: 3px 6px; }
  .brand.big span { font-size: 15px; }
}
@media (max-width: 600px) {
  .site-head .brand.big span { display: none; }
}
.grid2 > * { min-width: 0; }
.current > div { min-width: 0; }
.facts dd { min-width: 0; overflow-wrap: anywhere; }
.card-head { flex-wrap: wrap; }
.btn { max-width: 100%; }
.btn.sm { white-space: normal; text-align: center; }

/* SalesDigest: five figures in one row on wide screens */
.kpis.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1250px) { .kpis.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .kpis.five { grid-template-columns: 1fr 1fr; } }

/* Print / PDF of a report page: content only, on white paper */
@media print {
  body.app, body.app .main { background: #fff !important; color: #111 !important; }
  .side, .menu-btn, .top .actions, .seg-links, .toast, .scanbar, [data-action], [data-print], .lang-switch, .upsell { display: none !important; }
  .shell { display: block !important; }
  body.app .main { padding: 0 !important; max-width: none !important; }
  body.app .card, body.app .kpi { background: #fff !important; border: 1px solid #ccc !important; box-shadow: none !important; color: #111 !important; break-inside: avoid; }
  body.app .card *, body.app .kpi * { color: #111 !important; }
  body.app .chart rect { fill: #444 !important; }
  body.app .content-box { background: #fff !important; border: 1px solid #ddd !important; }
  a { text-decoration: none !important; }
  .tbl th:nth-child(2), .tbl td:nth-child(2) { display: table-cell !important; }
}

/* Wide admin tables scroll inside their card on phones */
.tbl-scroll { overflow-x: auto; max-width: 100%; }

/* Test checkout (no Stripe account yet) */
.demo-note { margin: 0; padding: 9px 12px; border-radius: 10px; background: #fff6d6; color: #6b4e00; border: 1px solid #f0dc9a; font-size: 13px; font-weight: 600; }
.checkout-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; border: 1px solid var(--line, #e6e6e6); border-radius: 12px; }
.checkout-sum b { font-size: 22px; white-space: nowrap; }
.checkout-sum small { font-size: 13px; font-weight: 500; color: var(--muted, #777); }
.pay-methods { text-align: center; letter-spacing: .02em; }
label.check.inline { display: inline-flex; margin-left: 8px; }
.wallets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wallet { display: block; text-align: center; padding: 11px 8px; border-radius: 10px; background: #111; color: #fff; font-weight: 600; font-size: 14px; opacity: .85; }
.or-line { display: flex; align-items: center; gap: 10px; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--line, #e6e6e6); }
.demo-card { display: flex; flex-direction: column; gap: 8px; }
.demo-card .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-card input[disabled] { background: #f6f6f6; color: #555; }

/* Plan builder (?p=plans) */
.builder-page { max-width: 1120px; }
.b-period { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line, #e6e6e6); background: #fff; margin: 0 auto 22px; }
.builder { display: flex; flex-direction: column; align-items: center; }
.b-period label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; }
.b-period label.on { background: #111; color: #fff; }
.b-period input, .b-opt input { position: absolute; opacity: 0; pointer-events: none; }
.b-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; width: 100%; align-items: start; }
.b-tools { display: flex; flex-direction: column; gap: 14px; }
.b-tool { padding: 18px 20px; transition: opacity .15s, border-color .15s; }
.b-tool.off { background: #fafafa; }
.b-tool.off .b-opts, .b-tool.off .b-title p { opacity: .55; }
.b-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.b-title { flex: 1; min-width: 0; }
.b-head h3 { margin: 0 0 2px; font-size: 17px; }
.b-head p { margin: 0; }
.b-incl { padding: 5px 10px; border-radius: 999px; background: #f1f1f1; color: #555; font-weight: 600; white-space: nowrap; }
.b-switch { display: none; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; font-weight: 600; }
.js-on .b-switch { display: inline-flex; }
.b-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.b-track { position: relative; width: 40px; height: 22px; border-radius: 999px; background: #d4d4d4; transition: background .15s; flex: none; }
.b-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.b-switch input:checked + .b-track { background: var(--brand, #e5484d); }
.b-switch input:checked + .b-track::after { transform: translateX(18px); }
.b-switch input:focus-visible + .b-track { outline: 2px solid var(--brand, #e5484d); outline-offset: 2px; }
.b-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.b-opts:has(.b-none) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.js-on .b-opts:has(.b-none) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.js-on .b-none { display: none; }
.b-opt { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1.5px solid var(--line, #e6e6e6); border-radius: 12px; cursor: pointer; background: #fff; }
.b-opt:hover { border-color: #bbb; }
.b-opt.on { border-color: var(--brand, #e5484d); box-shadow: 0 0 0 3px rgba(229, 72, 77, .12); }
.b-tool.off .b-opt.on { border-color: var(--line, #e6e6e6); box-shadow: none; }
.b-opt:focus-within { outline: 2px solid var(--brand, #e5484d); outline-offset: 2px; }
.b-name { font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.b-badge { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(229, 72, 77, .1); color: var(--brand, #e5484d); }
.b-price { font-weight: 700; font-size: 18px; }
.b-price small { font-weight: 500; color: var(--muted, #777); font-size: 12px; }
.b-blurb { line-height: 1.3; }
.b-feats { display: none; margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line, #e6e6e6); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.b-feats.on { display: grid; }
.builder .py { display: none; }
.builder.yearly .pm { display: none; }
.builder.yearly .py { display: inline; }
.b-sum { position: sticky; top: 90px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.b-save { color: #1a7f37; font-weight: 600; }
.b-save.hide { display: none; }
.b-trust { margin: 2px 0 0; display: grid; gap: 4px; }
.b-mbar { display: none; }
.b-sum h3 { margin: 0 0 4px; }
.b-lines { display: flex; flex-direction: column; gap: 6px; min-height: 20px; }
.sum-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.sum-line.total { border-top: 1px solid var(--line, #e6e6e6); padding-top: 10px; margin-top: 4px; font-size: 15px; }
.sum-line.total b { font-size: 22px; }
.sum-line.total small { font-size: 13px; font-weight: 500; color: var(--muted, #777); }
.checkout-sum { flex-direction: column; align-items: stretch; }
.bundle-cta { margin: 6px 0 10px; }
.bundle-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; margin-bottom: 18px; }
.bundle-bar p { margin: 2px 0 0; }
body.app .bundle-bar { border-color: rgba(229, 72, 77, .35); }
@media (max-width: 860px) {
  .b-grid { grid-template-columns: 1fr; }
  .b-sum { position: static; }
  .b-opts, .js-on .b-opts:has(.b-none) { grid-template-columns: 1fr; }
  .b-opts:has(.b-none) { grid-template-columns: 1fr; }
  .b-opt { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
  .b-blurb { flex-basis: 100%; }
  .b-feats { grid-template-columns: 1fr; }
  .b-mbar { display: flex; position: sticky; bottom: 0; z-index: 20; width: 100%; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; margin-top: 16px; background: #fff; border-top: 1px solid var(--line, #e6e6e6); box-shadow: 0 -6px 18px rgba(0,0,0,.06); }
  .b-mtotal { font-size: 20px; font-weight: 800; }
  .b-mper { color: var(--muted, #777); margin-left: 2px; }
  .bundle-bar { flex-direction: column; align-items: flex-start; }
}
.b-flash { max-width: 720px; margin: 0 auto 18px; }

/* Plans & billing: one overview, plans are chosen on the plan builder */
.plans-overview .card-head { gap: 12px; flex-wrap: wrap; }
.plans-overview td { vertical-align: middle; }
.po-tool { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

.po-actions { text-align: right; white-space: nowrap; }
.po-actions .btn + .btn { margin-left: 6px; }
@media (max-width: 640px) { .po-actions { white-space: normal; text-align: left; } }
.sum-remove { margin-left: 8px; color: var(--muted, #777); text-decoration: underline; }
.co-line { align-items: center; }
.co-name { min-width: 0; }
.co-right { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.co-x { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line, #e6e6e6); color: var(--muted, #777); text-decoration: none; font-size: 17px; line-height: 1; flex: none; }
.co-x:hover, .co-x:focus-visible { background: rgba(229, 72, 77, .08); border-color: var(--brand, #e5484d); color: var(--brand, #e5484d); }

/* ---------- Public pricing (home and tool pages): dark header, cards overlapping it ---------- */
.pr { background: #fafafa; border-top: 1px solid var(--line-2); padding-bottom: 72px; }
.pr-hero { position: relative; overflow: hidden; background: #111111; color: #ffffff; text-align: center; padding: 64px 0 150px; }
.pr-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 12% 0%, rgba(255,255,255,.10) 0, transparent 38%), radial-gradient(circle at 92% 100%, rgba(255,255,255,.07) 0, transparent 42%); pointer-events: none; }
.pr-hero .wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.pr-title { margin: 0 0 10px; font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1.1; color: #ffffff; }
.pr-sub { margin: 0 auto 22px; max-width: 640px; color: #c9c9c9; font-size: 16px; }
.pr-launch { margin: 0 0 20px; }
.pr-launch span { display: inline-block; padding: 8px 18px; border-radius: 999px; background: #ffd84d; color: #111111; font-weight: 700; font-size: 14px; }
.pr .tool-tabs { display: none; gap: 4px; padding: 5px; margin: 0 0 16px; border-radius: 14px; background: rgba(255,255,255,.10); max-width: 100%; overflow-x: auto; }
.pr.tabs-on .tool-tabs { display: inline-flex; }
.pr .tool-tabs button { padding: 11px 20px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: #cfcfcf; cursor: pointer; white-space: nowrap; }
.pr .tool-tabs button:hover { color: #ffffff; }
.pr .tool-tabs button.on { background: #ffffff; color: #111111; }
.pr .tool-tabs button:focus-visible { outline: 2px solid #ffd84d; outline-offset: 2px; }
.pr .period-toggle { margin: 0; }
.pr-desc { margin: 18px auto 0; max-width: 640px; color: #c9c9c9; }
.pr-desc-name { color: #ffffff; }
.pr.tabs-on .tool-pane { display: none; }
.pr.tabs-on .tool-pane.on { display: block; }
.pr.tabs-on .pr-desc-name { display: none; }
.pr-body { position: relative; margin-top: -112px; }
.pr-pane + .pr-pane { margin-top: 56px; }
.pr.tabs-on .pr-pane + .pr-pane { margin-top: 0; }
.pr-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.pr-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 26px 24px; border-radius: 20px; background: #ffffff; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 18px 48px rgba(0,0,0,.08); }
.pr-card.featured { border: 2px solid #111111; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 60px rgba(0,0,0,.14); }
.pr-card p { margin: 0; }
.pr-name { margin: 0; font-size: 21px; font-weight: 750; }
.pr-blurb { color: var(--muted); font-size: 13.5px; min-height: 20px; }
.pr-pb { margin-top: 10px; }
.pr-card .price, .pr-price { margin-top: 6px !important; font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.pr-card .price small, .pr-price small { margin-left: 3px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.pr-card .yearly { margin-top: 6px !important; font-size: 13px; }
.pr-was { margin-top: 12px !important; display: flex; align-items: center; gap: 8px; color: #9a9a9a; font-size: 15px; }
.pr-off { padding: 3px 9px; border-radius: 999px; background: var(--good-soft); color: var(--good); font-size: 12px; font-weight: 800; }
.pr-note { margin-top: 6px !important; color: var(--muted); font-size: 13px; }
.pr-key { width: 100%; margin-top: 16px !important; padding-top: 16px; border-top: 1px dashed var(--line); font-weight: 750; font-size: 15px; }
.pr-feats { flex: 1; margin: 4px 0 14px; text-align: left; }
.pr-cta { width: 100%; }
.pr-cta .btn { padding: 14px 20px; border-radius: 999px; font-size: 15.5px; font-weight: 700; }
.pr-cta .btn.primary::after { content: " →"; }
.pr-after { min-height: 20px; margin-top: 8px !important; color: var(--muted); font-size: 13px; }
.pr-after a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pr-all { max-width: 900px; margin: 40px auto 0; padding: 26px 30px; border: 1px solid var(--line); border-radius: 20px; background: #ffffff; }
.pr-all h3 { margin: 0 0 14px; text-align: center; font-size: 17px; }
.pr-all .checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; margin: 0; }
.pr-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13.5px; }
.pr-trust li::before { content: "✓"; margin-right: 6px; color: var(--good); font-weight: 800; }
.pr-bundle { display: flex; align-items: center; justify-content: space-between; gap: 22px; max-width: 980px; margin: 30px auto 0; padding: 26px 32px; border-radius: 20px; background: #111111; color: #ffffff; }
.pr-bundle h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 26px; font-weight: 600; color: #ffffff; }
.pr-bundle p { margin: 0; color: #c9c9c9; }
.pr-bundle .btn { flex: none; border-color: #ffffff; background: #ffffff; color: #111111; border-radius: 999px; font-weight: 700; }
.pr-bundle .btn:hover { background: #ececec; border-color: #ececec; }
.co-promo { margin: -2px 0 10px; color: var(--good); font-weight: 600; }
@media (max-width: 900px) {
  .pr-cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .pr-hero { padding: 46px 0 132px; }
  .pr-title { font-size: 34px; }
  .pr .tool-tabs button { padding: 9px 10px; font-size: 13px; }
  .pr-all { padding: 22px 20px; }
  .pr-all .checks { grid-template-columns: 1fr; }
  .pr-bundle { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
}

/* Plan builder: same dark header as the pricing, the form overlaps it */
.b-hero { padding: 54px 0 120px; }
.builder-page.b-over { position: relative; margin-top: -96px; padding-top: 0; }
.b-over .b-period { background: #ffffff; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
@media (max-width: 640px) { .b-hero { padding: 40px 0 110px; } }

/* ---------- Hover states: clearly visible on every page ---------- */
.btn { transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s; }
body.site .btn:hover, body.auth .btn:hover { background: #f0f0f0; border-color: #b9b9b9; color: var(--ink); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
body.site .btn.primary:hover, body.auth .btn.primary:hover { background: #2e2e2e; border-color: #2e2e2e; color: #ffffff; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
body.site .pr-bundle .btn:hover { background: #f2f2f2; border-color: #f2f2f2; color: #111111; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
body.app .btn:hover { transform: translateY(-1px); }
body.app .btn.primary:hover { box-shadow: 0 6px 16px rgba(229,72,77,.3); }
.btn:active, body.site .btn:active, body.auth .btn:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible { outline: 2px solid #111111; outline-offset: 2px; }
body.app .btn:focus-visible { outline-color: #e5484d; }
.brand { transition: opacity .15s; }
.brand:hover { opacity: .75; }
.lang-switch a { transition: background .15s, color .15s; }
.lang-switch a:not(.on):hover, .site-nav .lang-switch a:not(.btn):not(.on):hover { background: var(--line-2); color: var(--ink); }
.lang-switch a.on:hover, .site-nav .lang-switch a.on:hover { opacity: .85; }
body.app .lang-switch a:not(.on):hover { background: #1c1c24; color: #ffffff; }
.period-toggle button { transition: background .15s, color .15s; }
.period-toggle button:not(.on):hover { background: #efefef; color: var(--ink); }
.period-toggle button.on:hover { background: #2e2e2e; }
body.app .period-toggle button:not(.on):hover { background: #1c1c24; color: #ffffff; }
.pr .tool-tabs button { transition: background .15s, color .15s; }
.pr .tool-tabs button:not(.on):hover { background: rgba(255,255,255,.14); color: #ffffff; }
.pr .tool-tabs button.on:hover { background: #f2f2f2; }
.b-period label { transition: background .15s, color .15s; }
.b-period label:not(.on):hover { background: #efefef; }
.b-period label.on:hover { background: #2e2e2e; }
.b-opt { transition: border-color .15s, box-shadow .15s, transform .15s; }
.b-opt:hover { border-color: #111111; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.b-opt.on:hover { box-shadow: 0 0 0 3px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.08); }
.b-switch:hover .b-track { background: #b5b5b5; }
.b-switch:hover input:checked + .b-track { background: #3a3a3a; }
details.faq summary { transition: color .15s; }
details.faq summary:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #bdbdbd; }
.pr-card { transition: transform .2s, box-shadow .2s; }
.pr-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 28px 64px rgba(0,0,0,.14); }
.feature-grid.tools-3 .tool-link { transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature-grid.tools-3 .tool-link:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.08); }
@media (prefers-reduced-motion: reduce) {
  .btn, .pr-card, .b-opt, .feature-grid.tools-3 .tool-link { transition: none; }
  .btn:hover, .pr-card:hover, .b-opt:hover, .feature-grid.tools-3 .tool-link:hover, body.site .btn:hover, body.auth .btn:hover, body.app .btn:hover { transform: none; }
}
.b-switch:hover .b-sw-txt { text-decoration: underline; text-underline-offset: 3px; }
body.app .nav a.on:hover { background: rgba(229, 72, 77, .22); }
body.app li > a:not(.btn):hover { color: #ffffff; text-decoration-color: currentColor; }
.pad-x { padding: 0 18px; margin: -4px 0 12px; }

/* Admin: Stripe test results */
.check-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.check-list li { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line, rgba(127,127,127,.25)); border-radius: 10px; }
.check-list li.ok strong { color: var(--ok, #16a34a); }
.check-list li.bad strong { color: var(--danger, #dc2626); }

/* SiteChat: owner replies */
.chat-line.owner .content-box { border-left: 3px solid var(--brand, #e5484d); }
.visitor-card { margin: 0 0 12px; }
.kpi-link { color: inherit; text-decoration: none; }
.kpi-link:hover { border-color: var(--brand); }
body.app .kpis .kpi.attn { border-color: var(--brand); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .35); }
body.app .kpis .kpi.attn b { color: var(--brand); }
.visitor-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.visitor-cell .visitor-name { font-weight: 600; text-decoration: none; }
.visitor-cell .visitor-name:hover { text-decoration: underline; }
.visitor-cell .visitor-mail { text-decoration: none; }
.visitor-cell .chip { margin-top: 2px; }
tr.row-attn td { background: rgba(229, 72, 77, .06); }
.chip.wait { background: rgba(229, 72, 77, .16); color: var(--brand, #e5484d); font-weight: 600; }

/* Conversation view: compact chat bubbles (visitor left, assistant and you right) */
.chat-thread { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 0 0 16px; }
.chat-thread .chat-line { display: flex; flex-direction: column; align-items: flex-start; max-width: 78%; margin: 0; }
.chat-thread .chat-line.bot, .chat-thread .chat-line.owner { align-self: flex-end; align-items: flex-end; }
.chat-thread .chat-line > .muted.small { font-size: 11px; margin: 0 6px 3px; }
.chat-thread .chat-line .content-box { display: inline-block; width: auto; max-width: 100%; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; margin: 0; }
.chat-thread .chat-line.visitor .content-box { border-bottom-left-radius: 4px; }
.chat-thread .chat-line.bot .content-box { border-bottom-right-radius: 4px; }
.chat-thread .chat-line.owner .content-box { border-bottom-right-radius: 4px; border-left: 0; background: var(--brand, #e5484d); color: #fff; }
.chat-reply { max-width: 760px; }

/* Figure boxes: icon in the corner */
.kpi { position: relative; }
.kpi .kpi-ico { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(127, 127, 127, .12); color: var(--muted); }
.kpi .kpi-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kpi:has(.kpi-ico) > span { padding-right: 40px; }
body.app .kpis .kpi:first-child .kpi-ico, body.app .kpis .kpi.attn .kpi-ico { background: rgba(229, 72, 77, .14); color: var(--brand, #e5484d); }

/* Conversation view: list on the left, chat on the right */
.inbox { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.inbox-list { display: flex; flex-direction: column; gap: 4px; max-height: 720px; overflow: auto; padding-right: 12px; border-right: 1px solid var(--line); }
.inbox-back { margin: 0 0 8px; }
.inbox-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; border: 1px solid transparent; }
.inbox-item:hover { background: rgba(127, 127, 127, .08); }
.inbox-item.active { background: rgba(229, 72, 77, .12); border-color: rgba(229, 72, 77, .35); }
.inbox-item strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-item small { grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-item.waiting strong::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand, #e5484d); margin-right: 6px; vertical-align: middle; }
.inbox-thread .chat-thread { max-width: none; max-height: 560px; overflow: auto; padding-right: 6px; }
.inbox-thread .chat-reply { max-width: none; }
@media (max-width: 900px) { .inbox { grid-template-columns: 1fr; } .inbox-list { border-right: 0; max-height: 260px; padding-right: 0; } }

/* Visitor online now (like a messenger) */
.online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .22); margin-right: 7px; vertical-align: middle; }
.online-dot.off { background: #6b7280; box-shadow: none; }
.visitor-card .seen { margin-left: 6px; }
