/* Public pages (pricing, signup, account, partner, developers, help) on the SellHQ
   design system (DESIGN.md): same neutrals, accent, type and radii as brand workspaces.
   A partner's white-label colour still replaces --accent (site.js). */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --border: #e3e6eb;
  --border-strong: #cdd2da;
  --text: #111827;
  --muted: #4b5563;
  --subtle: #6b7280;
  --accent: #3451d1;
  --accent-text: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 9%, #fff);
  --ok: #15803d; --ok-bg: #e8f6ee;
  --warn: #a15c07; --warn-bg: #fdf3e2;
  --bad: #c0362c; --bad-bg: #fdecea;
  --radius: 12px;
  --radius-sm: 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e12; --surface: #14171d; --surface-2: #1b1f27; --border: #272c36; --border-strong: #3a404c;
    --text: #eceef2; --muted: #b3b9c4; --subtle: #8b92a0; --accent: #8ea2ff; --accent-text: #0b1020; --accent-soft: color-mix(in srgb, var(--accent) 16%, #14171d);
    --ok: #6fd99a; --ok-bg: #11291b; --warn: #f2c46b; --warn-bg: #33260d; --bad: #ff8f85; --bad-bg: #3a1714;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 12px; }
header.top .logo { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; }
header.top nav { display: flex; gap: 16px; align-items: center; font-size: 14px; }
header.top nav a { text-decoration: none; color: var(--muted); }
header.top nav a:hover { color: var(--text); }
h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.15; margin: 24px 0 8px; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
h2 { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--bad); min-height: 1.2em; margin: 8px 0 0; }

button, .btn {
  font: inherit; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; text-decoration: none;
}
button:hover:not(:disabled), .btn:hover { background: var(--surface-2); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.primary:hover:not(:disabled) { background: var(--accent); filter: brightness(1.08); }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; width: 100%; }
label { display: block; margin: 12px 0; font-weight: 600; font-size: 14px; }
label > input, label > select, label > textarea { margin-top: 5px; font-weight: 400; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
label.check input { width: auto; margin-top: 3px; }

/* Pricing */
.toggles { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.seg button { border: 0; border-radius: 0; padding: 8px 14px; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }
.cur-pick { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.cur-pick select { width: auto; margin: 0; padding: 8px 12px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 36px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.plan.popular { border-color: var(--accent); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 14%, transparent); }
.plan .badge { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 10px; border-radius: 999px; }
.plan h2 { margin: 0; }
.price { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price .per { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan ul { margin: 4px 0 0; padding: 0 0 0 18px; color: var(--muted); font-size: 14px; }
.plan .cta { margin-top: auto; }
.compare { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; margin-bottom: 48px; }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
.compare th, .compare td { padding: 9px 14px; border-bottom: 1px solid var(--border); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { position: sticky; top: 0; background: var(--surface); }
.compare .mod td { background: var(--surface-2); font-weight: 700; text-transform: capitalize; text-align: left; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--muted); }
.soon { color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 1px 8px; font-size: 0.78em; font-weight: 600; white-space: nowrap; }

/* Forms / cards */
.narrow { max-width: 520px; margin: 0 auto 48px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.summary { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.meter > span { display: block; height: 100%; background: var(--accent); }
.meter.warn > span { background: #d97706; }
.meter.bad > span { background: #dc2626; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); }
.plan-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.plan-pick .plan { padding: 14px; gap: 6px; }
.plan-pick .plan.current { border-color: var(--accent); }
footer { color: var(--muted); font-size: 13px; padding: 24px 0 40px; }
.table-wrap { overflow-x: auto; }
table.team { width: 100%; border-collapse: collapse; font-size: 14px; }
table.team td { padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.team select { width: auto; padding: 5px 8px; }

/* Help centre and status page */
.help-item { display: flex; flex-direction: column; gap: 2px; text-decoration: none; padding: 14px 16px; margin-bottom: 8px; }
.help-item:hover { border-color: var(--accent); }
.help-article h2 { margin: 24px 0 8px; font-size: 19px; }
.help-article p, .help-article li { line-height: 1.65; }
.help-article a { color: var(--accent); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 2px 9px; background: var(--surface-2); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.comp { padding: 12px 0; border-bottom: 1px solid var(--border); }
.comp:last-child { border-bottom: 0; }
.comp-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ubars { display: flex; gap: 2px; margin-top: 8px; height: 28px; }
.ub { flex: 1; border-radius: 2px; background: var(--ok); opacity: .8; min-width: 1px; }
.ub.warn { background: #d97706; } .ub.bad { background: #dc2626; } .ub.none { background: var(--surface-2); opacity: 1; }
.comp-foot { display: flex; justify-content: space-between; margin-top: 4px; }

/* Design-system details */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input, select, textarea { border-color: var(--border-strong); }
button, .btn { font-weight: 500; }
.plan.popular, .plan[aria-current="true"] { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Homepage (top of /pricing) ---------- */
header.top nav .nav-cta { padding: 7px 14px; color: var(--accent-text); text-decoration: none; }
header.top nav .nav-cta:hover { color: var(--accent-text); }
.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; padding: 24px 0 8px; }
.home-hero h1 { margin-top: 0; margin-bottom: 14px; }
.home-copy .lead { margin-bottom: 20px; }
.home-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.home-cta .btn { padding: 11px 18px; }
.home-shot { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--text) 30%, transparent); overflow: hidden; min-width: 0; }
.shot-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.shot-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.shot-body { display: grid; grid-template-columns: 38% minmax(0, 1fr); min-height: 250px; }
.shot-list { border-right: 1px solid var(--border); padding: 8px; display: grid; align-content: start; gap: 2px; }
.shot-row { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: var(--radius-sm); min-width: 0; }
.shot-row.on { background: var(--accent-soft); }
.shot-row i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; line-height: 1; font-style: normal; background: var(--surface-2); color: var(--muted); }
.shot-row div { min-width: 0; display: grid; }
.shot-row b { font-size: 13px; font-weight: 600; }
.shot-row small { font-size: 12px; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-thread { background: var(--bg); padding: 16px; display: grid; align-content: start; gap: 10px; }
.bubble { max-width: 85%; padding: 8px 12px; font-size: 13.5px; line-height: 1.4; border: 1px solid var(--border); background: var(--surface); border-radius: 12px 12px 12px 4px; }
.bubble.out { justify-self: end; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 28%, var(--surface)); border-radius: 12px 12px 4px 12px; }
.shot-order { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.shot-order div { display: grid; }
.shot-order small { color: var(--subtle); font-size: 12px; }
.shot-order b { font-size: 13.5px; font-weight: 600; }
.tag { font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.home-works { color: var(--subtle); font-size: 13.5px; margin: 28px 0 8px; padding: 14px 0; border-block: 1px solid var(--border); text-align: center; }
.home-works span { color: var(--muted); font-weight: 600; margin-right: 6px; }
.home-jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 44px; }
.home-jobs article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.home-jobs svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 10px; }
.home-jobs h2 { font-size: 16px; margin: 0 0 6px; text-wrap: balance; }
.home-jobs p { margin: 0; color: var(--muted); font-size: 14px; }
.home-plans-title { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 6px; scroll-margin-top: 16px; }
#plans { scroll-margin-top: 16px; }
@media (max-width: 860px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home-jobs { grid-template-columns: minmax(0, 1fr); }
  header.top nav a:not(.nav-cta):not([href="/account"]) { display: none; }
}
@media (max-width: 420px) {
  .shot-body { grid-template-columns: minmax(0, 1fr); }
  .shot-list { display: none; }
}
