/* CCB Leak Audit - scoped styles. Brand: Sen / DM Sans, teal ink, purple CTA, coral accent. */
.ccb-la {
	--la-ink: #204147;
	--la-ink-soft: #4a6569;
	--la-cta: #5C57F2;
	--la-cta-dark: #4540d6;
	--la-coral: #F39077;
	--la-blue: #0059a3;
	--la-green: #4d940a;
	--la-bg: #F4F7F7;
	--la-card: #ffffff;
	--la-line: #dfe7e8;
	--la-red: #c8452c;
	--la-amber: #b8741a;
	--la-radius: 14px;
	font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--la-ink);
	font-size: 17px;
	line-height: 1.6;
	max-width: 820px;
	margin: 0 auto;
	padding: 8px 16px 48px;
	box-sizing: border-box;
}
.ccb-la *, .ccb-la *::before, .ccb-la *::after { box-sizing: border-box; }
.ccb-la p { margin: 0 0 12px; }
.ccb-la [hidden] { display: none !important; }

.ccb-la-h1, .ccb-la-h2, .ccb-la-h3, .ccb-la-gate-title {
	font-family: 'Sen', 'DM Sans', system-ui, sans-serif;
	color: var(--la-ink);
	line-height: 1.2;
	margin: 0 0 12px;
	letter-spacing: -0.01em;
}
.ccb-la-h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; }
.ccb-la-h2 { font-size: clamp(22px, 3.2vw, 28px); font-weight: 700; }
.ccb-la-h3 { font-size: 20px; font-weight: 700; }
.ccb-la-mt { margin-top: 28px; }
.ccb-la-small { font-size: 14px; color: var(--la-ink-soft); }

/* Hero */
.ccb-la-hero { padding: 24px 0 8px; }
.ccb-la-eyebrow {
	display: inline-block;
	font-family: 'Sen', sans-serif;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--la-ink);
	background: rgba(243, 144, 119, .22);
	border-radius: 999px;
	padding: 5px 12px;
	margin-bottom: 14px !important;
}
.ccb-la-lead { font-size: 18px; color: var(--la-ink-soft); }

/* Form */
.ccb-la-form {
	background: var(--la-ink);
	color: #fff;
	border-radius: var(--la-radius);
	padding: 22px;
	margin: 20px 0 28px;
	box-shadow: 0 12px 30px rgba(32, 65, 71, .18);
}
.ccb-la-label { display: block; font-weight: 700; margin-bottom: 10px; color: #fff; }
.ccb-la-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ccb-la-row input {
	flex: 1 1 260px;
	min-width: 0;
	font: inherit;
	font-size: 17px;
	padding: 14px 16px;
	border: 2px solid transparent;
	border-radius: 10px;
	color: var(--la-ink);
	background: #fff;
}
.ccb-la-row input:focus { outline: none; border-color: var(--la-coral); }
.ccb-la-form .ccb-la-note { font-size: 14px; color: rgba(255, 255, 255, .78); margin: 12px 0 0; }
.ccb-la-form .ccb-la-error { color: #fff; background: rgba(200, 69, 44, .9); padding: 8px 12px; border-radius: 8px; margin: 12px 0 0; }
.ccb-la-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.ccb-la-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: 'Sen', sans-serif;
	font-weight: 700;
	font-size: 17px;
	background: var(--la-cta);
	color: #fff !important;
	border: 0;
	border-radius: 10px;
	padding: 14px 22px;
	cursor: pointer;
	text-decoration: none !important;
	transition: background .15s, transform .15s;
}
.ccb-la-btn:hover { background: var(--la-cta-dark); }
.ccb-la-btn:active { transform: translateY(1px); }
.ccb-la-btn:disabled { opacity: .6; cursor: wait; }
.ccb-la-btn:focus-visible, .ccb-la-link:focus-visible { outline: 3px solid var(--la-coral); outline-offset: 2px; }
.ccb-la-btn-block { width: 100%; }
.ccb-la-link {
	background: none; border: 0; padding: 6px 0; font: inherit; font-weight: 700;
	color: var(--la-blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

/* Loading */
.ccb-la-loading { text-align: center; padding: 28px 0; }
.ccb-la-spinner {
	width: 44px; height: 44px; margin: 0 auto 12px;
	border: 4px solid var(--la-line); border-top-color: var(--la-cta);
	border-radius: 50%; animation: ccb-la-spin .9s linear infinite;
}
@keyframes ccb-la-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ccb-la-spinner { animation-duration: 3s; } }
.ccb-la-loading-text { font-weight: 700; }

/* Cards */
.ccb-la-results { display: grid; gap: 18px; margin-bottom: 36px; }
.ccb-la-card {
	background: var(--la-card);
	border: 1px solid var(--la-line);
	border-radius: var(--la-radius);
	padding: 22px;
}
.ccb-la-notice { background: #fff8f5; border-color: rgba(243, 144, 119, .6); margin: 0; }

.ccb-la-summary { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; background: var(--la-bg); }
.ccb-la-summary-text { flex: 1 1 320px; min-width: 0; }
.ccb-la-ring { position: relative; width: 140px; height: 140px; flex: 0 0 140px; margin: 0 auto; }
.ccb-la-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ccb-la-ring circle { fill: none; stroke-width: 11; }
.ccb-la-ring-bg { stroke: var(--la-line); }
.ccb-la-ring-fg { stroke-linecap: round; transition: stroke-dashoffset .9s ease; }
.ccb-la-g-A, .ccb-la-g-B { stroke: var(--la-green); }
.ccb-la-g-C { stroke: var(--la-amber); }
.ccb-la-g-D, .ccb-la-g-F { stroke: var(--la-red); }
.ccb-la-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ccb-la-ring-score { font-family: 'Sen', sans-serif; font-weight: 800; font-size: 40px; line-height: 1; }
.ccb-la-ring-of { font-size: 13px; color: var(--la-ink-soft); }

.ccb-la-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.ccb-la-chip { font-size: 14px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.ccb-la-chip.is-yes { background: rgba(77, 148, 10, .12); color: #3a700a; }
.ccb-la-chip.is-no { background: rgba(200, 69, 44, .1); color: var(--la-red); }

/* Checklist */
.ccb-la-checks { list-style: none; margin: 0; padding: 0; }
.ccb-la-check { border-top: 1px solid var(--la-line); padding: 14px 0; }
.ccb-la-check:first-child { border-top: 0; }
.ccb-la-check-head { display: flex; align-items: center; gap: 12px; }
.ccb-la-badge {
	flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 15px; color: #fff;
}
.is-pass .ccb-la-badge { background: var(--la-green); }
.is-warn .ccb-la-badge { background: var(--la-amber); }
.is-fail .ccb-la-badge { background: var(--la-red); }
.is-check .ccb-la-badge { background: var(--la-blue); }
.is-unknown .ccb-la-badge { background: #9aabad; }
.ccb-la-check-title { flex: 1; min-width: 0; font-weight: 700; }
.ccb-la-stepno { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--la-ink-soft); font-weight: 700; }
.ccb-la-status { font-size: 13px; font-weight: 700; white-space: nowrap; }
.is-pass .ccb-la-status { color: #3a700a; }
.is-warn .ccb-la-status { color: var(--la-amber); }
.is-fail .ccb-la-status { color: var(--la-red); }
.is-check .ccb-la-status { color: var(--la-blue); }
.is-unknown .ccb-la-status { color: var(--la-ink-soft); }
.ccb-la-check-body { padding: 8px 0 0 42px; }
.ccb-la-finding { margin-bottom: 8px !important; }
.ccb-la-fix { background: var(--la-bg); border-left: 4px solid var(--la-cta); padding: 10px 12px; border-radius: 0 8px 8px 0; margin: 0 !important; }

.ccb-la-gate {
	margin-top: 18px; padding: 20px; border-radius: var(--la-radius); text-align: center;
	background: linear-gradient(135deg, rgba(92, 87, 242, .08), rgba(243, 144, 119, .14));
}
.ccb-la-gate-title { font-size: 19px; font-weight: 700; }

/* Calculator */
.ccb-la-calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 8px 0 14px; }
.ccb-la-calc-field span { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.ccb-la-calc-field input {
	width: 100%; font: inherit; padding: 10px 12px; border: 2px solid var(--la-line); border-radius: 10px; color: var(--la-ink); background: #fff;
}
.ccb-la-calc-field input:focus { outline: none; border-color: var(--la-cta); }
.ccb-la-calc-out { background: var(--la-bg); border-radius: 10px; padding: 14px 16px; margin: 0 !important; }
.ccb-la-calc-out strong { color: var(--la-red); }

.ccb-la-cta { background: var(--la-ink); color: #fff; border: 0; }
.ccb-la-cta .ccb-la-h3 { color: #fff; }
.ccb-la-cta p { color: rgba(255, 255, 255, .88); }

.ccb-la-actions { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

/* Explainer */
.ccb-la-explain { border-top: 1px solid var(--la-line); padding-top: 28px; }
.ccb-la-steps { padding-left: 22px; margin: 0 0 16px; }
.ccb-la-steps li { margin-bottom: 10px; padding-left: 4px; }

/* Modal */
.ccb-la-modal {
	position: fixed; inset: 0; z-index: 999999;
	background: rgba(20, 38, 42, .62);
	display: flex; align-items: center; justify-content: center; padding: 16px;
}
.ccb-la-modal-box {
	position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: var(--la-radius);
	padding: 28px 24px 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
	font-family: 'DM Sans', system-ui, sans-serif; color: var(--la-ink);
}
.ccb-la-close {
	position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 28px; line-height: 1;
	cursor: pointer; color: var(--la-ink-soft); padding: 6px;
}
.ccb-la-unlock { display: grid; gap: 10px; margin-top: 8px; }
.ccb-la-unlock input[type=text], .ccb-la-unlock input[type=email] {
	font: inherit; padding: 12px 14px; border: 2px solid var(--la-line); border-radius: 10px; width: 100%; color: var(--la-ink);
}
.ccb-la-unlock input:focus { outline: none; border-color: var(--la-cta); }
.ccb-la-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--la-ink-soft); }
.ccb-la-consent input { margin-top: 4px; }
.ccb-la-unlock .ccb-la-error { color: var(--la-red); font-weight: 700; margin: 0; }
body.ccb-la-noscroll { overflow: hidden; }

@media (max-width: 560px) {
	.ccb-la { font-size: 16px; }
	.ccb-la-row .ccb-la-btn { width: 100%; }
	.ccb-la-check-head { flex-wrap: wrap; row-gap: 2px; }
	.ccb-la-check-title { flex: 1 1 calc(100% - 42px); }
	.ccb-la-status { margin-left: 42px; }
	.ccb-la-check-body { padding-left: 0; }
	.ccb-la-card { padding: 18px; }
}

@media print {
	.ccb-la-form, .ccb-la-actions, .ccb-la-cta, .ccb-la-explain, .ccb-la-hero .ccb-la-lead, .ccb-la-modal { display: none !important; }
	.ccb-la-card { break-inside: avoid; border-color: #ccc; }
}
.ccb-la strong { font-weight: 700; }

/* Big blue "learn the 5 steps" button under What we check */
.ccb-la-learn { margin: 28px 0 0 !important; text-align: center; }
.ccb-la-btn-blue { background: var(--la-blue); font-size: 20px; padding: 20px 32px; line-height: 1.3; box-shadow: 0 10px 24px rgba(0, 89, 163, .25); max-width: 100%; white-space: normal; }
.ccb-la-btn-blue:hover { background: #004a88; }
@media (max-width: 560px) { .ccb-la-btn-blue { display: flex; width: 100%; font-size: 18px; padding: 18px 20px; } }

.ccb-la-notice-line { margin: 2px 0 0 !important; text-align: center; }

/* Audience call-out at the top: Thrive Themes + ThriveCart */
.ccb-la-audience { text-align: center; margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--la-line); }
.ccb-la-audience img { display: block; width: 100%; max-width: 600px; height: auto; margin: 0 auto 10px; }
.ccb-la-audience-text { font-family: 'Sen', 'DM Sans', system-ui, sans-serif; font-weight: 700; font-size: 19px; color: var(--la-ink); margin: 0 !important; }

/* "What we check": 5 steps hidden behind a More link */
.ccb-la-more { margin: 0 0 16px; }
.ccb-la-more > summary { display: inline-block; cursor: pointer; list-style: none; font-weight: 700; color: var(--la-blue); text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.ccb-la-more > summary::-webkit-details-marker { display: none; }
.ccb-la-more > summary::after { content: ' \25BE'; text-decoration: none; display: inline-block; margin-left: 4px; }
.ccb-la-more[open] > summary::after { content: ' \25B4'; }
.ccb-la-more > summary:focus-visible { outline: 3px solid var(--la-coral); outline-offset: 2px; }
.ccb-la-more .ccb-la-more-close { display: none; }
.ccb-la-more[open] .ccb-la-more-open { display: none; }
.ccb-la-more[open] .ccb-la-more-close { display: inline; }
.ccb-la-more .ccb-la-steps { margin-top: 12px; }

/* Blocked by the site's own security: paste-your-source fallback (1.7.0) */
.ccb-la-paste { border-color: rgba(243, 144, 119, .6); }
.ccb-la-paste .ccb-la-h2 { margin-top: 0; }
.ccb-la-paste-steps { margin: 0 0 16px 1.2em; padding: 0; }
.ccb-la-paste-steps li { margin: 0 0 6px; }
.ccb-la-paste-form { display: grid; gap: 10px; }
.ccb-la-paste-form .ccb-la-label { color: var(--la-ink); overflow-wrap: anywhere; }
.ccb-la-paste-form textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 160px;
	padding: 12px;
	border: 1px solid var(--la-line);
	border-radius: 10px;
	font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: var(--la-ink);
	background: #fff;
	resize: vertical;
}
.ccb-la-paste-form textarea:focus { outline: 2px solid var(--la-cta); outline-offset: 1px; }
.ccb-la-paste-form .ccb-la-btn { justify-self: start; }
.ccb-la-paste-form .ccb-la-error { color: var(--la-red); font-weight: 700; margin: 0; }
