:root {
  --bg: #f6f8fb; --surface: #fff; --surface-2: #f1f4f9; --border: #e3e8ef;
  --text: #0f1b2d; --muted: #5b6b80; --primary: #0b5cff; --primary-ink: #fff; --primary-soft: #e8efff;
  --accent: #0aa37f; --accent-soft: #e2f6f0; --warn: #b26b00; --warn-soft: #fff4e0; --danger: #c62828; --danger-soft: #fdecec;
  --star: #f5a623; --radius: 12px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 16px rgba(16,24,40,.06);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220; --surface: #121a2b; --surface-2: #19233a; --border: #26324b; --text: #e7edf7; --muted: #9aa8bf;
    --primary: #5b8cff; --primary-soft: #1b2a4d; --accent: #2bc79d; --accent-soft: #11342c; --warn: #f0b04a; --warn-soft: #3a2c10;
    --danger: #ff6b6b; --danger-soft: #3b1717; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; font-size: 15px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.02em; }
h2 { font-size: 1.5rem; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.nav { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--text); display: flex; align-items: center; gap: 8px; }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-logo-footer { height: 38px; }
@media (max-width: 860px) { .brand-logo { height: 34px; } }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: grid; place-items: center; color: #fff; font-size: .95rem; }
.nav-links { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.nav-links a { color: var(--text); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { background: var(--surface-2); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; color: var(--text); font-size: 1.2rem; }
.credit-pill { background: var(--accent-soft); color: var(--accent); font-weight: 700; padding: 4px 10px; border-radius: 999px; font-size: .85rem; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
}

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary); filter: brightness(1.08); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent); filter: brightness(1.08); }
.btn-danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; font-weight: 400; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { margin-top: 4px; width: 16px; height: 16px; flex: none; accent-color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-block; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: .88rem; font-weight: 500; background: var(--surface); }
.chip-check input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.chip-check input:focus-visible + span { outline: 2px solid var(--primary); }
.form-error { background: var(--danger-soft); color: var(--danger); padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: .9rem; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-link { color: inherit; display: block; transition: .15s; }
.card-link:hover { text-decoration: none; border-color: var(--primary); transform: translateY(-2px); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.badge-green { background: var(--accent-soft); color: var(--accent); }
.badge-blue { background: var(--primary-soft); color: var(--primary); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.stars { color: var(--star); letter-spacing: 1px; white-space: nowrap; }
.stat { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.avatar { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; flex: none; }
.avatar-lg { width: 88px; height: 88px; font-size: 2rem; border-radius: 20px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .icon { font-size: 2.2rem; margin-bottom: 8px; }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: .88rem; }
.notice-info { background: var(--primary-soft); color: var(--primary); }

/* ---------- hero / landing ---------- */
.hero { padding: 64px 0 48px; background: radial-gradient(1200px 400px at 80% -20%, var(--primary-soft), transparent), radial-gradient(800px 300px at 0% 120%, var(--accent-soft), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.lead-text { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.quick-start { padding: 24px; }
.section { padding: 56px 0; }
.container.section { padding-left: 16px; padding-right: 16px; } /* keep the 16px phone gutter when both classes are used */
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.industry-card { display: flex; gap: 14px; align-items: flex-start; }
.industry-icon { font-size: 1.6rem; width: 46px; height: 46px; display: grid; place-items: center; background: var(--surface-2); border-radius: 12px; flex: none; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 10px; }
.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .cta-split { grid-template-columns: 1fr; } }
.cta-card { padding: 32px; border-radius: 16px; }
.cta-customer { background: var(--primary); color: #fff; }
.cta-pro { background: #0f1b2d; color: #fff; }
.cta-card .btn { background: #fff; color: #0f1b2d; border-color: #fff; }

/* ---------- wizard ---------- */
.wizard { max-width: 720px; margin: 32px auto; }
.progress { display: flex; gap: 6px; margin-bottom: 20px; }
.progress div { flex: 1; height: 6px; border-radius: 3px; background: var(--border); }
.progress div.on { background: var(--primary); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.choice { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 14px; text-align: left; cursor: pointer; font: inherit; color: inherit; display: flex; gap: 10px; align-items: center; }
.choice:hover { border-color: var(--primary); }
.choice.selected { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary); }

/* ---------- app shell (dashboards) ---------- */
.app-shell { display: grid; grid-template-columns: 230px 1fr; gap: 24px; padding: 24px 0 48px; }
@media (max-width: 860px) { .app-shell { grid-template-columns: 1fr; } }
.sidebar { position: sticky; top: 88px; align-self: start; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 860px) { .sidebar { position: static; } .sidebar nav { flex-direction: row; overflow-x: auto; } }
.sidebar a { color: var(--text); padding: 9px 12px; border-radius: 8px; font-weight: 500; display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.sidebar a:hover { background: var(--surface-2); text-decoration: none; }
.sidebar a.active { background: var(--primary-soft); color: var(--primary); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 1.7rem; margin: 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pos { color: var(--accent); font-weight: 600; }
.neg { color: var(--danger); font-weight: 600; }

/* ---------- compare ---------- */
.compare-card { position: relative; display: flex; flex-direction: column; }
.compare-card.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.compare-card .ribbon { position: absolute; top: -10px; right: 16px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .9rem; align-content: start; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- packages ---------- */
.package { text-align: center; position: relative; cursor: pointer; }
.package.selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.package .price { margin: 8px 0 0; }
.package .per { font-size: .82rem; color: var(--muted); }
.payment-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.card-brand { width: 46px; height: 30px; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; font-size: .65rem; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 1; cursor: pointer; }
.switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.switch span { position: absolute; inset: 0; background: var(--border); border-radius: 999px; cursor: pointer; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(20px); }

/* ---------- lead cards ---------- */
.lead-card .locked { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 6px, var(--surface) 6px, var(--surface) 12px); border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; color: var(--muted); font-size: .88rem; }
.cost { font-weight: 800; color: var(--primary); }

/* ---------- modal & toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 18, 32, .55); display: grid; place-items: center; z-index: 2000; padding: 16px; }
.modal { background: var(--surface); border-radius: 16px; max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 3000; }
.toast { background: #0f1b2d; color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: 360px; font-size: .92rem; animation: slidein .2s ease; }
.toast.error { background: var(--danger); }
.toast.success { background: var(--accent); }
@keyframes slidein { from { transform: translateY(10px); opacity: 0; } }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- legal & footer ---------- */
.legal { max-width: 820px; margin: 32px auto 64px; }
.legal h2 { margin-top: 1.6em; font-size: 1.2rem; }
.legal .card { padding: 32px; }
.disclosure-bar { background: var(--warn-soft); color: var(--warn); font-size: .82rem; padding: 8px 0; text-align: center; }
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0 24px; margin-top: 40px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text); }
.footer-legal { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 16px; color: var(--muted); font-size: .8rem; }
.rating-bar { display: grid; grid-template-columns: 40px 1fr 30px; gap: 8px; align-items: center; font-size: .85rem; }
.rating-bar .bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.rating-bar .bar div { height: 100%; background: var(--star); }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { display: none; }
.star-input label { font-size: 1.8rem; color: var(--border); cursor: pointer; margin: 0; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--star); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: none; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- response meter (4 bars) ---------- */
.resp-meter { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.resp-meter .bars { display: inline-flex; gap: 3px; align-items: flex-end; height: 18px; }
.resp-meter .bars span { width: 7px; border-radius: 2px; background: var(--border); }
.resp-meter .bars span:nth-child(1) { height: 7px; } .resp-meter .bars span:nth-child(2) { height: 11px; }
.resp-meter .bars span:nth-child(3) { height: 15px; } .resp-meter .bars span:nth-child(4) { height: 18px; }
.resp-meter .bars span.on { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.resp-meter.full .bars span.on { background: var(--warn); box-shadow: 0 0 0 1px var(--warn); }
.resp-meter .lbl { color: var(--text); }
.card-meter { position: relative; padding-bottom: 46px; }
.card-meter > .resp-meter { position: absolute; right: 16px; bottom: 14px; }
/* ---------- contact links ---------- */
.contact-links { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: .85rem; }
.contact-links a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.contact-links a.pref { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
/* ---------- quote matrix ---------- */
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; }
.matrix th, .matrix td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.matrix th:first-child, .matrix td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 170px; }
.matrix thead th { text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--text); vertical-align: bottom; }
.matrix td.best { background: var(--accent-soft); }
.matrix td.best .amt { color: var(--accent); }
.matrix .amt { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.matrix tr.total td { font-weight: 800; border-top: 2px solid var(--border); }
.matrix .na { color: var(--muted); font-size: .85rem; }
.matrix .col-hired { background: var(--accent-soft); }
.choice .tick { margin-left: auto; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border); display: grid; place-items: center; font-size: .8rem; flex: none; }
.choice.selected .tick { background: var(--primary); border-color: var(--primary); color: #fff; }
.file-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.file-list div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: .85rem; }

/* ---------- pay-per-service picker ---------- */
.svc-list { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.svc-row { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 10px; align-items: center; padding: 9px 12px; margin: 0; font-weight: 500; font-size: .9rem; border-bottom: 1px solid var(--border); cursor: pointer; }
.svc-row input { width: 16px; height: 16px; accent-color: var(--primary); }
.svc-row.done { background: var(--accent-soft); cursor: default; } .svc-row.full { opacity: .55; cursor: not-allowed; }
.svc-check { color: var(--accent); font-weight: 800; text-align: center; }
.svc-slots { display: inline-flex; align-items: center; gap: 6px; }
.svc-slots .resp-meter .bars { height: 14px; } .svc-slots .resp-meter .bars span { width: 5px; }
.svc-cost { min-width: 64px; text-align: right; white-space: nowrap; }
.svc-foot { padding: 9px 12px; background: var(--surface-2); }
@media (max-width: 520px) { .svc-row { grid-template-columns: 22px 1fr auto; } .svc-slots { display: none; } }
/* keep the dashboard grid within the screen on phones (sidebar menu scrolls sideways instead) */
.app-shell > * { min-width: 0; }
@media (max-width: 860px) { .sidebar { max-width: 100%; } .sidebar nav { -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding-bottom: 4px; } }

/* ---------- admin & charts ---------- */
:root { --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --grid: #e8ebf0; }
@media (prefers-color-scheme: dark) { :root { --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --grid: #26324b; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.kpi { padding: 14px 16px; }
.kpi .k-label { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.kpi .k-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi .k-sub { font-size: .8rem; color: var(--muted); }
.kpi.alert { border-color: var(--warn); } .kpi.alert .k-value { color: var(--warn); }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-card h3 { margin: 0; font-size: 1rem; } .chart-card .sub { color: var(--muted); font-size: .82rem; margin: 2px 0 10px; }
.chart-box { position: relative; height: 260px; } .chart-box.tall { height: 340px; }
.chart-card details summary { cursor: pointer; font-size: .82rem; color: var(--muted); margin-top: 8px; }
.chart-card details table { font-size: .82rem; margin-top: 6px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px; margin-bottom: 16px; }
.filter-bar .f { display: flex; flex-direction: column; gap: 4px; min-width: 130px; flex: 1; }
.filter-bar .f label { margin: 0; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.filter-bar .f.wide { flex: 2; min-width: 200px; }
.filter-bar .f input, .filter-bar .f select { padding: 8px 10px; }
.presets { display: flex; gap: 4px; flex-wrap: wrap; }
.presets button { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.presets button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.data-table { font-size: .85rem; } .data-table th { white-space: nowrap; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.data-table td { white-space: nowrap; } .data-table td.wrap { white-space: normal; min-width: 180px; }
.data-table tr.clickable { cursor: pointer; } .data-table tr.clickable:hover td { background: var(--surface-2); }
.scroll-table { max-height: 640px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: .85rem; }
@media print {
  .site-header, .site-footer, .disclosure-bar, .sidebar, .no-print, .toasts { display: none !important; }
  .app-shell { grid-template-columns: 1fr !important; padding: 0 !important; }
  .card { box-shadow: none !important; break-inside: avoid; } body { background: #fff; }
  .scroll-table { max-height: none; overflow: visible; border: 0; }
}

/* ---------- company logos ---------- */
.avatar.logo { object-fit: contain; background: #fff; border: 1px solid var(--border); padding: 4px; }
.avatar-sm { width: 36px; height: 36px; border-radius: 10px; font-size: .85rem; }
.logo-editor { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.logo-editor .avatar { width: 96px; height: 96px; border-radius: 18px; font-size: 2rem; }
.matrix-pro { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.matrix td.accepted { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.matrix .cell-btn { margin-top: 6px; padding: 4px 10px; font-size: .78rem; }
/* longer Spanish labels: let side-menu items wrap on desktop (phones keep the sideways-scrolling row) */
@media (min-width: 861px) { .sidebar a { white-space: normal; line-height: 1.3; } }
.lang-toggle { white-space: nowrap; }

/* ---- installable app ---- */
.is-app .hide-in-app { display: none !important; }
/* iPhone notch / home indicator when running full-screen */
.is-app .site-header { padding-top: env(safe-area-inset-top); }
.is-app .site-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.is-app body, .is-app .toasts { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.app-page h1 { margin: 10px 0 8px; }
.app-hero { display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: start; }
.app-cta { margin-top: 18px; }
.app-cta h3 { margin-top: 0; }
.app-qr { text-align: center; }
.app-qr img { display: block; margin: 0 auto 10px; border-radius: 8px; background: #fff; padding: 6px; }
.app-steps { margin: 8px 0 0; padding-left: 20px; line-height: 1.55; }
.app-steps li { margin-bottom: 4px; }
.app-benefits { margin-top: 32px; }
.app-devices .card.selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.kbd { display: inline-block; min-width: 1.4em; padding: 0 5px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-2); font-size: .9em; text-align: center; }
@media (max-width: 760px) { .app-hero { grid-template-columns: 1fr; } .app-qr { display: none; } }
.tax-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.tax-cell { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); font-weight: 600; }
.tax-cell input { width: 70px; padding: 6px; }
/* profile completeness bar */
.meter-bar { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; margin-top: 6px; }
.meter-bar > div { height: 100%; background: var(--accent, #2bc79d); border-radius: 4px; transition: width .3s; }
.profile-card .chips a.badge { text-decoration: none; }
.preview-banner { position: sticky; top: 64px; z-index: 5; }
/* checkout order summary */
.order-summary { width: 100%; max-width: 460px; border-collapse: collapse; font-size: .92rem; }
.order-summary td { padding: 5px 0; border: 0; }
.order-summary td.num { text-align: right; font-variant-numeric: tabular-nums; }
.order-summary tr.total td { border-top: 1px solid var(--border); padding-top: 9px; font-weight: 800; font-size: 1.05rem; }
/* review reactions */
.react-bar { display: flex; gap: 6px; margin-top: 8px; }
.react-btn { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .82rem; cursor: pointer; line-height: 1.6; }
.react-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.react-btn.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.react-btn:disabled { cursor: default; opacity: .75; }
.react-btn .n:empty { display: none; }
/* review-link preview (what clients see when the link is texted or posted) */
.link-preview { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); max-width: 520px; }
.link-preview .lp-title { font-weight: 700; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-preview .lp-sub { font-size: .8rem; color: var(--muted); }
/* cookie notice (only shown when ad tags are configured) */
.consent-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1500; max-width: 760px; margin: 0 auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(16,24,40,.18); font-size: .9rem; }
.seo-content h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
