/* Unbar Leads — design tokens from the handoff package. */
.ul-root {
	--navy: #1A2F6E;
	--navy-light: #EAEEFA;
	--gold: #AD8A3C;
	--gold-light: #FBF3E4;
	--ink: #0B0E14;
	--muted: #5B606B;
	--faint: #8A8F9C;
	--bg: #F4F5F7;
	--card-border: #E6E8EC;
	--hot: #B4232A;    --hot-bg: #FCEAEA;
	--stalled: #AD8A3C; --stalled-bg: #FBF3E4;
	--repeat: #1A2F6E;  --repeat-bg: #EAEEFA;
	--cold: #5B606B;    --cold-bg: #F0F1F3;
	--closed: #1D7A46;  --closed-bg: #E7F5EC;
	font-family: 'Public Sans', -apple-system, sans-serif;
	color: var(--ink);
	background: var(--bg);
}
.ul-root * { box-sizing: border-box; }
.ul-mono { font-family: 'JetBrains Mono', monospace; }

/* Break out of whatever width the active theme constrains .entry-content
   to, regardless of theme, without needing to detect that theme. Based on
   the viewport rather than the parent, so it escapes any ancestor's
   max-width. (See class-ul-shortcodes.php print_theme_overrides() for the
   matching page-title removal — the two together are what actually fix
   "looks boxed in / has two headings".) */
/* Safe default: no CSS-only viewport math here on purpose. Every theme
   constrains its content column differently (padding, centering, RTL,
   sidebars), so a pure-CSS "break out to 100vw" formula that's correct
   for one theme overflows or misaligns on another — that's what broke
   on both mobile and desktop. app.js measures the REAL rendered position
   of .ul-fullbleed at runtime and sets an exact pixel breakout, which
   works regardless of the theme's layout. Until JS runs, this just fills
   its parent — never wider, so there's nothing to overflow. */
.ul-fullbleed {
	width: 100%;
	box-sizing: border-box;
}

/* ---------- Layout ---------- */
.ul-app { display: flex; min-height: 70vh; background: var(--bg); }
.ul-sidebar { width: 224px; flex-shrink: 0; background: var(--ink); color: #fff; padding: 24px 0; }
.ul-sidebar .ul-brand { padding: 0 24px 24px; border-bottom: 1px solid #23262F; font-weight: 800; font-size: 18px; }
.ul-sidebar .ul-brand span { color: var(--gold); }
.ul-sidebar .ul-brand small { display: block; font-size: 11px; color: var(--faint); font-weight: 500; margin-top: 2px; }
.ul-nav { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; }
.ul-nav a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #C7CAD4; text-decoration: none; }
.ul-nav a:hover { background: #181B24; color: #fff; }
.ul-nav a.active { background: var(--navy); color: #fff; }
.ul-sidebar-foot { padding: 12px 24px 0; margin-top: 12px; border-top: 1px solid #23262F; }
.ul-sidebar-foot a { font-size: 12px; color: var(--faint); text-decoration: none; }

.ul-main { flex: 1; min-width: 0; }
.ul-topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; background: #fff; border-bottom: 1px solid var(--card-border); gap: 12px; }
.ul-topbar .ul-title { font-size: 15px; font-weight: 700; }
.ul-topbar .ul-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.ul-badge-demo { font-weight: 700; color: var(--navy); background: var(--navy-light); padding: 5px 10px; border-radius: 6px; }
.ul-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.ul-content { padding: 32px; max-width: 1280px; }

/* Sidebar toggle: hidden on desktop, shown only once the sidebar goes
   off-canvas below the breakpoint. */
.ul-mobile-toggle { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 32px; height: 32px; padding: 0; border: none; background: none; cursor: pointer; flex-shrink: 0; }
.ul-mobile-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 1px; }
.ul-sidebar-backdrop { display: none; }

/* Below this width the sidebar can't sit next to the content without
   crushing it (this is exactly what was happening on your phone), so it
   goes off-canvas and slides in over the content instead, behind a
   hamburger toggle. */
@media (max-width: 880px) {
	.ul-app { position: relative; overflow: hidden; }
	.ul-mobile-toggle { display: inline-flex; }
	.ul-sidebar {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 110;
		width: 260px;
		max-width: 82vw;
		transform: translateX(-100%);
		transition: transform 0.2s ease;
		overflow-y: auto;
	}
	.ul-sidebar.ul-sidebar-open { transform: translateX(0); }
	.ul-sidebar-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(11,14,20,0.5);
		z-index: 100;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.2s ease;
	}
	.ul-sidebar-backdrop.ul-sidebar-open { opacity: 1; pointer-events: auto; }
	.ul-main { width: 100%; }
	.ul-topbar { padding: 14px 16px; }
	.ul-content { padding: 18px; }
}

/* ---------- Cards / grids ---------- */
.ul-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.ul-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
@media (max-width: 900px) { .ul-grid-3, .ul-grid-4 { grid-template-columns: 1fr; } }

.ul-card { background: #fff; border: 1px solid var(--card-border); border-radius: 12px; padding: 20px; box-shadow: 0 1px 2px rgba(11,14,20,0.04); }
.ul-card-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ul-card-value { font-size: 28px; font-weight: 700; margin-top: 8px; }
.ul-card-sub { font-size: 12px; color: var(--faint); margin-top: 4px; }

.ul-h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.ul-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- Status chips ---------- */
.ul-status { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; display: inline-block; }
.ul-status-hot { background: var(--hot-bg); color: var(--hot); }
.ul-status-stalled { background: var(--stalled-bg); color: var(--stalled); }
.ul-status-repeat { background: var(--repeat-bg); color: var(--repeat); }
.ul-status-cold { background: var(--cold-bg); color: var(--cold); }
.ul-status-closed { background: var(--closed-bg); color: var(--closed); }

/* ---------- Tabs ---------- */
.ul-tabs { display: flex; gap: 4px; background: #EBEDF0; padding: 4px; border-radius: 10px; width: fit-content; }
.ul-tabs a { padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--muted); }
.ul-tabs a.active { background: var(--navy); color: #fff; }

/* ---------- Money Map ---------- */
.ul-mm-card { background: #fff; border: 1px solid var(--card-border); border-top: 4px solid; border-radius: 12px; padding: 18px; }
.ul-mm-hot { border-top-color: var(--hot); } .ul-mm-hot .ul-mm-label { color: var(--hot); }
.ul-mm-stalled { border-top-color: var(--stalled); } .ul-mm-stalled .ul-mm-label { color: var(--stalled); }
.ul-mm-repeat { border-top-color: var(--repeat); } .ul-mm-repeat .ul-mm-label { color: var(--repeat); }
.ul-mm-cold { border-top-color: var(--cold); } .ul-mm-cold .ul-mm-label { color: var(--cold); }
.ul-mm-label { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; }
.ul-mm-count { font-size: 22px; font-weight: 800; margin-top: 10px; }
.ul-mm-value { font-size: 16px; font-weight: 700; color: var(--muted); margin-top: 4px; }

/* ---------- Priority / opportunity rows ---------- */
.ul-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid #ECEEF1; border-radius: 10px; text-decoration: none; color: inherit; }
.ul-row:hover { border-color: var(--navy); background: #FAFBFF; }
.ul-row-left { display: flex; align-items: center; gap: 12px; }
.ul-row-bar { width: 6px; height: 34px; border-radius: 3px; }
.ul-row-name { font-size: 14px; font-weight: 700; }
.ul-row-sub { font-size: 12px; color: var(--faint); }
.ul-row-right { display: flex; align-items: center; gap: 18px; }
.ul-amount { font-size: 13px; font-weight: 700; }

.ul-pq-card { background: #fff; border: 1px solid var(--card-border); border-radius: 12px; padding: 20px; margin-bottom: 14px; }
.ul-pq-head { display: flex; align-items: center; justify-content: space-between; }
.ul-pq-score { font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.ul-pq-section-title { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--faint); letter-spacing: .04em; margin-top: 14px; }
.ul-pq-section-body { font-size: 13px; color: var(--ink); margin-top: 4px; line-height: 1.5; }
.ul-pq-actions { display: flex; gap: 10px; margin-top: 16px; }

/* ---------- Buttons ---------- */
.ul-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: background .15s ease, box-shadow .15s ease, transform .05s ease; }
.ul-btn-primary { background: var(--navy); color: #fff; box-shadow: 0 1px 2px rgba(26,47,110,0.25); }
.ul-btn-primary:hover { background: #142352; box-shadow: 0 2px 6px rgba(26,47,110,0.3); }
.ul-btn:active { transform: translateY(1px); }
.ul-btn-gold { background: var(--gold); color: #fff; }
.ul-btn-ghost { background: #fff; border-color: var(--card-border); color: var(--ink); }
.ul-btn-ghost:hover { border-color: var(--navy); }
.ul-btn-sm { padding: 7px 12px; font-size: 12px; }
.ul-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Forms ---------- */
.ul-field { margin-bottom: 16px; }
.ul-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.ul-field input, .ul-field select, .ul-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--card-border); border-radius: 8px; font-size: 14px; font-family: inherit; }
.ul-field-hint { font-size: 12px; color: var(--faint); margin-top: 4px; }
.ul-form-card { background: #fff; border: 1px solid var(--card-border); border-radius: 12px; padding: 24px; max-width: 520px; }
.ul-error { background: var(--hot-bg); color: var(--hot); padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.ul-notice { background: var(--navy-light); color: var(--navy); padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.ul-success { background: var(--closed-bg); color: var(--closed); padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }

/* ---------- Table-ish list ---------- */
.ul-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; }
.ul-table th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--faint); padding: 12px 16px; border-bottom: 1px solid var(--card-border); }
.ul-table td { padding: 14px 16px; border-bottom: 1px solid #F0F1F3; font-size: 13px; }
.ul-table tr:last-child td { border-bottom: none; }
.ul-table tr:hover { background: #FAFBFF; }
.ul-filters { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; align-items: center; }

/* ---------- Timeline ---------- */
.ul-timeline { border-left: 2px solid var(--card-border); padding-left: 16px; margin: 12px 0; }
.ul-timeline-item { margin-bottom: 14px; font-size: 13px; }
.ul-timeline-date { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Chips (outcome / schedule) ---------- */
.ul-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ul-chip { padding: 8px 14px; border: 1px solid var(--card-border); border-radius: 20px; font-size: 13px; font-weight: 600; background: #fff; cursor: pointer; }
.ul-chip:hover { border-color: var(--navy); }

/* ---------- Empty states ---------- */
.ul-empty { text-align: center; padding: 64px 24px; color: var(--muted); }
.ul-empty h3 { color: var(--ink); font-size: 17px; }

/* ---------- Product nav (landing/pricing only — separate from the
   main site's own header/menu, per design intent) ---------- */
.ul-product-nav { background: #fff; border-bottom: 1px solid var(--card-border); position: sticky; top: 0; z-index: 20; }
.ul-product-nav-inner { max-width: 1080px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.ul-product-nav-brand { font-weight: 800; font-size: 16px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.ul-product-nav-brand span { color: var(--gold); }
.ul-product-nav-links { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 600; }
.ul-product-nav-links a:not(.ul-btn) { color: var(--muted); text-decoration: none; }
.ul-product-nav-links a:not(.ul-btn):hover { color: var(--ink); }
@media (max-width: 640px) { .ul-product-nav-links a:not(.ul-btn):not(:last-child) { display: none; } }

/* ---------- Landing / pricing ---------- */
.ul-landing { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.ul-hero { text-align: center; padding: 88px 0 48px; }
.ul-hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; max-width: 760px; margin: 0 auto; }
.ul-hero p { font-size: 17px; color: var(--muted); max-width: 620px; margin: 16px auto 28px; line-height: 1.6; }
.ul-hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ul-section { padding: 56px 0; border-top: 1px solid var(--card-border); }
.ul-section h2 { font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.ul-section .ul-section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.ul-pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
@media (max-width: 900px) { .ul-pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ul-pricing-grid { grid-template-columns: 1fr; } }
.ul-plan-card { background: #fff; border: 1px solid var(--card-border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; }
.ul-plan-card.featured { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.ul-plan-name { font-size: 13px; font-weight: 800; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.ul-plan-price { font-family: 'JetBrains Mono', monospace; font-size: 26px; font-weight: 700; margin: 10px 0 4px; }
.ul-plan-feat { list-style: none; padding: 0; margin: 18px 0; font-size: 13px; color: var(--muted); }
.ul-plan-feat li { padding: 6px 0; border-top: 1px solid #F0F1F3; }
.ul-faq-item { padding: 16px 0; border-top: 1px solid var(--card-border); }
.ul-faq-item h4 { margin: 0 0 6px; font-size: 15px; }

/* ---------- Auth ---------- */
.ul-auth-wrap { max-width: 420px; margin: 60px auto; }
.ul-auth-wrap h1 { font-size: 22px; font-weight: 800; text-align: center; }
.ul-auth-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; font-size: 13px; }
.ul-auth-tabs a { color: var(--muted); text-decoration: none; font-weight: 700; padding: 6px 10px; }
.ul-auth-tabs a.active { color: var(--navy); border-bottom: 2px solid var(--navy); }

/* Progress bar for scan */
.ul-progress-track { background: #EBEDF0; border-radius: 999px; height: 10px; overflow: hidden; margin: 20px 0; }
.ul-progress-bar { background: var(--navy); height: 100%; width: 0%; transition: width 1.6s ease; }
