/* ==========================================================================
   LLC Beige Flag Calculator — v1.1
   Brand: #0F172A (brand + text) · #7C3AED (alternate brand)
   Built for a light background. All tokens scoped to .brd-app.
   ========================================================================== */

.brd-app {
	/* body copy inherits the Astra theme font so it never fights the site */
	--brd-font: inherit;
	--brd-display: 'Outfit', ui-sans-serif, system-ui, -apple-system, sans-serif;

	--brd-ink: #0f172a;
	--brd-ink-soft: #1e293b;

	--brd-violet: #7c3aed;
	--brd-violet-d: #6d28d9;
	--brd-violet-l: #a78bfa;
	--brd-violet-soft: #f5f3ff;
	--brd-violet-line: #ddd6fe;

	--brd-surface: #ffffff;
	--brd-surface-2: #f8fafc;
	--brd-border: #e2e8f0;
	--brd-muted: #475569;
	--brd-dim: #94a3b8;


	--brd-warn: #e11d48;
	--brd-good: #10b981;

	--brd-r: 14px;
}

.brd-app,
.brd-app *,
.brd-app *::before,
.brd-app *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.brd-app {
	max-width: 620px;
	margin: 32px auto;
	font-family: var(--brd-font);
	color: var(--brd-ink);
	background: var(--brd-surface);
	border: 1px solid var(--brd-border);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .07);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

/* Font inherits, but do NOT force color here — it would override the
   button styles below on specificity and blank out their labels. */
.brd-app button,
.brd-app input {
	font-family: inherit;
}

.brd-app input[type="text"] { color: var(--brd-ink); }

.brd-app :focus-visible {
	outline: 2px solid var(--brd-violet);
	outline-offset: 2px;
	border-radius: 6px;
}

/* ============ HEADER ============ */

.brd-header {
	padding: 34px 26px 24px;
	text-align: center;
	background: linear-gradient(180deg, var(--brd-violet-soft) 0%, var(--brd-surface) 100%);
	border-bottom: 1px solid var(--brd-border);
}




.brd-title {
	font-family: var(--brd-display);
	font-size: 32px;
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.12;
	margin-bottom: 8px;
	color: var(--brd-ink);
}

.brd-sub {
	font-size: 15px;
	color: var(--brd-muted);
	max-width: 40ch;
	margin: 0 auto;
}

/* ============ QUIZ BODY ============ */

.brd-body,
.brd-results {
	padding: 22px 26px 28px;
}

.brd-setup {
	display: grid;
	gap: 16px;
	margin-bottom: 8px;
}

.brd-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--brd-ink);
	margin-bottom: 8px;
}

.brd-input {
	width: 100%;
	padding: 12px 15px;
	font-size: 15px;
	background: var(--brd-surface-2);
	border: 1.5px solid var(--brd-border);
	border-radius: 10px;
	transition: border-color .18s, background .18s;
}

.brd-input::placeholder { color: var(--brd-dim); }

.brd-input:focus {
	border-color: var(--brd-violet);
	background: var(--brd-surface);
	outline: none;
}

.brd-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.brd-mode { cursor: pointer; }
.brd-mode input { position: absolute; opacity: 0; width: 0; height: 0; }

.brd-mode span {
	display: inline-block;
	padding: 7px 15px;
	border-radius: 50px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--brd-muted);
	background: var(--brd-surface-2);
	border: 1.5px solid var(--brd-border);
	transition: all .18s;
}

.brd-mode:hover span { border-color: var(--brd-violet-l); color: var(--brd-ink); }

.brd-mode input:checked + span {
	border-color: var(--brd-violet);
	background: var(--brd-violet-soft);
	color: var(--brd-violet-d);
}

.brd-mode input:focus-visible + span {
	outline: 2px solid var(--brd-violet);
	outline-offset: 2px;
}

/* ============ PROGRESS ============ */

.brd-progress-wrap {
	position: sticky;
	top: 0;
	z-index: 3;
	padding: 14px 0 14px;
	margin-bottom: 4px;
	background: linear-gradient(180deg, var(--brd-surface) 74%, rgba(255, 255, 255, 0) 100%);
}

.brd-progress-meta {
	display: flex;
	justify-content: space-between;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--brd-dim);
	margin-bottom: 7px;
}

.brd-progress-track {
	height: 6px;
	background: var(--brd-border);
	border-radius: 3px;
	overflow: hidden;
}

.brd-progress-fill {
	height: 100%;
	width: 0;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--brd-violet), var(--brd-violet-l));
	transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

/* ============ QUESTIONS ============ */

.brd-questions { display: grid; gap: 10px; }

.brd-q {
	background: var(--brd-surface);
	border: 1.5px solid var(--brd-border);
	border-radius: var(--brd-r);
	padding: 17px 18px 15px;
	transition: border-color .2s, background .2s;
}

.brd-q.is-done {
	border-color: var(--brd-violet-line);
	background: var(--brd-violet-soft);
}

.brd-q-num {
	font-size: 12px;
	font-weight: 600;
	color: var(--brd-dim);
	margin-bottom: 5px;
}

.brd-q-text {
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--brd-ink);
	margin-bottom: 13px;
}

.brd-opts { display: flex; flex-wrap: wrap; gap: 7px; }
.brd-opt { cursor: pointer; flex: 1 1 auto; }
.brd-opt input { position: absolute; opacity: 0; width: 0; height: 0; }

.brd-opt span {
	display: block;
	text-align: center;
	padding: 9px 12px;
	border-radius: 9px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--brd-muted);
	background: var(--brd-surface);
	border: 1.5px solid var(--brd-border);
	transition: all .16s;
	white-space: nowrap;
}

.brd-opt:hover span { border-color: var(--brd-violet-l); color: var(--brd-ink); }

.brd-opt input:checked + span {
	border-color: var(--brd-violet);
	background: var(--brd-violet);
	color: #fff;
}

.brd-opt input:focus-visible + span {
	outline: 2px solid var(--brd-violet);
	outline-offset: 2px;
}

/* ============ CTA ============ */

.brd-go {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	margin-top: 20px;
	padding: 16px;
	border: none;
	border-radius: 11px;
	background: var(--brd-violet);
	color: #fff;
	font-family: var(--brd-display);
	font-size: 16.5px;
	font-weight: 600;
	letter-spacing: -.01em;
	cursor: pointer;
	transition: background .2s, transform .2s, box-shadow .2s;
	box-shadow: 0 4px 14px rgba(124, 58, 237, .25);
}

.brd-go:hover:not(:disabled) {
	background: var(--brd-violet-d);
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(124, 58, 237, .32);
}

.brd-go:disabled {
	background: var(--brd-surface-2);
	color: var(--brd-dim);
	box-shadow: none;
	cursor: not-allowed;
	border: 1.5px solid var(--brd-border);
}

.brd-go-emoji { font-size: 19px; }

.brd-note {
	margin-top: 14px;
	text-align: center;
	font-size: 12px;
	line-height: 1.55;
	color: var(--brd-dim);
}

/* ============ RESULTS ============ */

.brd-results[hidden] { display: none; }

.brd-score-card {
	background: var(--brd-surface-2);
	border: 1px solid var(--brd-border);
	border-radius: 18px;
	padding: 28px 24px 26px;
	text-align: center;
	margin-bottom: 12px;
}






@keyframes bfcWave {
	0%, 100% { transform: translateX(-58px) skewY(0deg); }
	50%      { transform: translateX(-58px) skewY(-1.6deg); }
}

.brd-score-num {
	font-family: var(--brd-display);
	font-size: 64px;
	font-weight: 700;
	letter-spacing: -.035em;
	line-height: 1;
	color: var(--brd-ink);
}

.brd-score-pct { font-size: 30px; letter-spacing: -.02em; }

.brd-score-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--brd-dim);
	margin-top: 5px;
	margin-bottom: 16px;
}

.brd-tier {
	font-family: var(--brd-display);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--brd-violet-d);
	margin-bottom: 9px;
	line-height: 1.22;
}

.brd-verdict {
	font-size: 14.5px;
	color: var(--brd-muted);
	line-height: 1.62;
	max-width: 44ch;
	margin: 0 auto;
}




/* bars */
.brd-bars {
	background: var(--brd-surface);
	border: 1px solid var(--brd-border);
	border-radius: var(--brd-r);
	padding: 20px 22px;
	margin-bottom: 12px;
}

.brd-bars h4 {
	font-family: var(--brd-display);
	font-size: 15px;
	font-weight: 600;
	color: var(--brd-ink);
	margin-bottom: 15px;
}

.brd-bar-row { margin-bottom: 13px; }
.brd-bar-row:last-child { margin-bottom: 0; }

.brd-bar-hd {
	display: flex;
	justify-content: space-between;
	font-size: 13.5px;
	margin-bottom: 5px;
}

.brd-bar-hd span:first-child { color: var(--brd-muted); font-weight: 500; }
.brd-bar-hd span:last-child { color: var(--brd-ink); font-weight: 700; }

.brd-bar-track {
	height: 8px;
	background: var(--brd-border);
	border-radius: 4px;
	overflow: hidden;
}

.brd-bar-fill {
	height: 100%;
	width: 0;
	border-radius: 4px;
	background: var(--brd-violet);
	transition: width 1s cubic-bezier(.4, 0, .2, 1);
}

.brd-fill-warn { background: var(--brd-warn); }
.brd-fill-good { background: var(--brd-good); }

/* tip */
.brd-tip {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: var(--brd-violet-soft);
	border: 1px solid var(--brd-violet-line);
	border-radius: 12px;
	padding: 15px 16px;
	margin-bottom: 18px;
}

.brd-tip-icon { font-size: 19px; flex-shrink: 0; line-height: 1.4; }
.brd-tip p { font-size: 13.5px; line-height: 1.6; color: var(--brd-ink-soft); }

/* actions */
.brd-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.brd-btn {
	flex: 1 1 160px;
	padding: 14px;
	border-radius: 11px;
	font-family: var(--brd-display);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s;
}

.brd-btn-share {
	border: none;
	background: var(--brd-ink);
	color: #fff;
}

.brd-btn-share:hover { background: var(--brd-ink-soft); transform: translateY(-1px); }

.brd-btn-ghost {
	background: var(--brd-surface);
	border: 1.5px solid var(--brd-border);
	color: var(--brd-muted);
}

.brd-btn-ghost:hover { border-color: var(--brd-violet); color: var(--brd-violet-d); }


@keyframes bfcFall {
	to { transform: translateY(105vh) rotate(300deg); opacity: 0; }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 560px) {
	.brd-app { margin: 20px auto; border-radius: 16px; }
	.brd-header { padding: 28px 18px 20px; }
	.brd-title { font-size: 26px; }
	.brd-body, .brd-results { padding: 18px 16px 24px; }
	.brd-score-num { font-size: 54px; }
	.brd-tier { font-size: 21px; }
	.brd-opt { flex: 1 1 100%; }
	.brd-opt span { white-space: normal; }
}

/* ============ MOTION PREFERENCES ============ */

@media (prefers-reduced-motion: reduce) {
	.brd-app *,
	.brd-app *::before,
	.brd-app *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/* ============ CRUSH-SPECIFIC ============ */





/* category breakdown */






/* what to do next */




/* the honest reminder, shown at every score */




/* ============ ORANGE PEEL SPECIFIC ============ */

.brd-section-head {
	margin: 26px 0 12px;
	padding-top: 20px;
	border-top: 1px solid var(--brd-border);
}

.brd-section-head:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

.brd-section-head h3 {
	font-family: var(--brd-display);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -.01em;
	margin-bottom: 4px;
}

.brd-section-head p {
	font-size: 13px;
	line-height: 1.55;
	color: var(--brd-muted);
}

/* the orange, which fills segment by segment with the score */





/* bars */
.brd-bars {
	background: var(--brd-surface);
	border: 1px solid var(--brd-border);
	border-radius: var(--brd-r);
	padding: 20px 22px;
	margin-bottom: 12px;
}

.brd-bars h4 {
	font-family: var(--brd-display);
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 15px;
}

.brd-bar-row { margin-bottom: 13px; }
.brd-bar-row:last-child { margin-bottom: 0; }

.brd-bar-hd {
	display: flex;
	justify-content: space-between;
	font-size: 13.5px;
	margin-bottom: 5px;
}

.brd-bar-hd span:first-child { color: var(--brd-muted); font-weight: 500; }
.brd-bar-hd span:last-child { color: var(--brd-ink); font-weight: 700; }

.brd-bar-track {
	height: 8px;
	background: var(--brd-border);
	border-radius: 4px;
	overflow: hidden;
}

.brd-bar-fill {
	height: 100%;
	width: 0;
	border-radius: 4px;
	background: var(--brd-violet);
	transition: width 1s cubic-bezier(.4,0,.2,1);
}

/* reciprocity: the two-sided read */









/* advice */
.brd-next {
	background: var(--brd-violet-soft);
	border: 1px solid var(--brd-violet-line);
	border-radius: var(--brd-r);
	padding: 20px 22px;
	margin-bottom: 12px;
}

.brd-next h4 {
	font-family: var(--brd-display);
	font-size: 16px;
	font-weight: 600;
	color: var(--brd-violet-d);
	margin-bottom: 9px;
}

.brd-next p {
	font-size: 14px;
	line-height: 1.62;
	color: var(--brd-ink-soft);
}

/* honest limits */
.brd-real {
	background: var(--brd-surface-2);
	border: 1px solid var(--brd-border);
	border-left: 3px solid var(--brd-ink);
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 18px;
}

.brd-real p {
	font-size: 13.5px;
	line-height: 1.62;
	color: var(--brd-ink-soft);
}

.brd-real strong { color: var(--brd-ink); }

/* ============ BIRD TEST SPECIFIC ============ */

/* headline: turn-toward rate against the research benchmark */
.brd-benchmark {
	background: var(--brd-surface);
	border: 1px solid var(--brd-border);
	border-radius: var(--brd-r);
	padding: 20px 22px;
	margin-bottom: 12px;
}

.brd-benchmark h4 {
	font-family: var(--brd-display);
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 4px;
}

.brd-benchmark > p {
	font-size: 13px;
	line-height: 1.55;
	color: var(--brd-muted);
	margin-bottom: 18px;
}

.brd-scale-wrap { position: relative; padding: 8px 0 66px; }

.brd-scale-track {
	height: 10px;
	border-radius: 5px;
	background: linear-gradient(90deg, #fecdd3 0%, #fed7aa 33%, #bbf7d0 70%, #86efac 100%);
}

.brd-marker {
	position: absolute;
	top: 20px;
	transform: translateX(-50%);
	text-align: center;
	width: 74px;
}

/* tick sits ABOVE the label so the ticks stay aligned no matter how many
   lines each label wraps to */
.brd-marker::before {
	content: "";
	display: block;
	width: 2px;
	height: 12px;
	margin: 0 auto 4px;
	background: var(--brd-dim);
	border-radius: 1px;
}

.brd-marker span {
	display: block;
	font-size: 10.5px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--brd-dim);
}

.brd-you {
	position: absolute;
	top: -34px;
	transform: translateX(-50%);
	text-align: center;
	width: 90px;
	transition: left 1.1s cubic-bezier(.4,0,.2,1);
}

.brd-you::after {
	content: "";
	display: block;
	width: 3px;
	height: 14px;
	margin: 4px auto 0;
	background: var(--brd-violet);
	border-radius: 2px;
}

.brd-you span {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 50px;
	background: var(--brd-violet);
	color: #fff;
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
}

/* response mix */
.brd-mix {
	background: var(--brd-surface);
	border: 1px solid var(--brd-border);
	border-radius: var(--brd-r);
	padding: 20px 22px;
	margin-bottom: 12px;
}

.brd-mix h4 {
	font-family: var(--brd-display);
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 14px;
}

.brd-stack {
	display: flex;
	height: 34px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--brd-surface-2);
	margin-bottom: 14px;
}

.brd-stack div {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	width: 0;
	transition: width 1s cubic-bezier(.4,0,.2,1);
	overflow: hidden;
}

.brd-stack .brd-toward  { background: #10b981; }
.brd-stack .brd-away    { background: #f59e0b; }
.brd-stack .brd-against { background: #e11d48; }

.brd-key { display: grid; gap: 10px; }

.brd-key-row {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.55;
	color: var(--brd-ink-soft);
}

.brd-dot {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	margin-top: 5px;
}

.brd-dot.brd-toward  { background: #10b981; }
.brd-dot.brd-away    { background: #f59e0b; }
.brd-dot.brd-against { background: #e11d48; }

.brd-key-row strong { color: var(--brd-ink); }

/* two-sided rates */
.brd-sides {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 12px;
}

.brd-side {
	background: var(--brd-surface-2);
	border: 1px solid var(--brd-border);
	border-radius: var(--brd-r);
	padding: 16px 14px;
	text-align: center;
}

.brd-side-k {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--brd-muted);
	margin-bottom: 5px;
	overflow-wrap: break-word;
}

.brd-side-v {
	font-family: var(--brd-display);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -.03em;
	line-height: 1;
	color: var(--brd-ink);
}

.brd-side-d { font-size: 12px; color: var(--brd-dim); margin-top: 4px; }

@media (max-width: 560px) {
	.brd-sides { grid-template-columns: 1fr; }
	.brd-marker { width: 60px; }
	.brd-marker span { font-size: 9.5px; }
}
