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

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

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

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

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


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

	--tri-r: 14px;
}

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

.tri-app {
	max-width: 620px;
	margin: 32px auto;
	font-family: var(--tri-font);
	color: var(--tri-ink);
	background: var(--tri-surface);
	border: 1px solid var(--tri-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. */
.tri-app button,
.tri-app input {
	font-family: inherit;
}

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

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

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

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




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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.tri-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(--tri-violet);
	color: #fff;
	font-family: var(--tri-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);
}

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

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

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


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

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

.tri-score-card {
	background: var(--tri-surface-2);
	border: 1px solid var(--tri-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); }
}

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

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

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

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

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




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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

@media (prefers-reduced-motion: reduce) {
	.tri-app *,
	.tri-app *::before,
	.tri-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 ============ */

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

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

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

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

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





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

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

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

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

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

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

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

/* reciprocity: the two-sided read */









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

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

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

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

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

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

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

/* headline: turn-toward rate against the research benchmark */






/* tick sits ABOVE the label so the ticks stay aligned no matter how many
   lines each label wraps to */





/* response mix */










/* two-sided rates */





@media (max-width: 560px) {
}

/* ============ GHOSTLIGHTING SPECIFIC ============ */

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

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

.tri-bars > p {
	font-size: 13px;
	line-height: 1.55;
	color: var(--tri-muted);
	margin-bottom: 16px;
}

.tri-bar-row { margin-bottom: 15px; }
.tri-bar-row:last-child { margin-bottom: 0; }

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

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

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

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

.tri-bar-fill.is-high { background: #e11d48; }


/* the section about the effect on you, styled to stand apart */





/* what this is not */






/* steady closing note */



/* ============ BREADCRUMBING SPECIFIC ============ */

/* the 2x2: contact against progression */
.tri-matrix {
	background: var(--tri-surface);
	border: 1px solid var(--tri-border);
	border-radius: var(--tri-r);
	padding: 20px 22px 22px;
	margin-bottom: 12px;
}

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

.tri-matrix > p {
	font-size: 13px;
	line-height: 1.55;
	color: var(--tri-muted);
	margin-bottom: 16px;
}

.tri-plot { width: 100%; max-width: 340px; margin: 0 auto; }
.tri-plot svg { width: 100%; height: auto; display: block; overflow: visible; }

.tri-quad { fill: var(--tri-surface-2); stroke: var(--tri-border); stroke-width: 1; }
.tri-quad.is-active { fill: #ede9fe; stroke: var(--tri-violet-line); }
.tri-quad.is-active-warn { fill: #fff7ed; stroke: #fed7aa; }

.tri-quad-label {
	font-size: 8.5px;
	font-weight: 600;
	fill: var(--tri-dim);
	text-anchor: middle;
}

.tri-quad-label.is-on { fill: var(--tri-ink); }

.tri-axis-label {
	font-size: 9px;
	font-weight: 600;
	fill: var(--tri-muted);
	text-anchor: middle;
}

.tri-dot-outer {
	fill: var(--tri-violet);
	opacity: .18;
	transition: cx 1.1s cubic-bezier(.4,0,.2,1), cy 1.1s cubic-bezier(.4,0,.2,1);
}

.tri-dot {
	fill: var(--tri-violet);
	stroke: #fff;
	stroke-width: 2.5;
	transition: cx 1.1s cubic-bezier(.4,0,.2,1), cy 1.1s cubic-bezier(.4,0,.2,1);
}

/* the gap readout */
.tri-gap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 12px;
}

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

.tri-gap-k {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--tri-muted);
	margin-bottom: 5px;
}

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

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

/* what it is not */
.tri-not {
	background: var(--tri-surface);
	border: 1px solid var(--tri-border);
	border-radius: var(--tri-r);
	padding: 20px 22px;
	margin-bottom: 12px;
}

.tri-not h4 {
	font-family: var(--tri-display);
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 12px;
}

.tri-not ul { list-style: none; }

.tri-not li {
	position: relative;
	padding: 8px 0 8px 24px;
	border-top: 1px solid var(--tri-border);
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--tri-ink-soft);
}

.tri-not li:first-child { border-top: none; }

.tri-not li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 16px;
	width: 8px;
	height: 2px;
	border-radius: 1px;
	background: var(--tri-dim);
}

.tri-support {
	background: var(--tri-surface-2);
	border: 1px solid var(--tri-border);
	border-left: 3px solid var(--tri-violet);
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 18px;
}

.tri-support p {
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--tri-ink-soft);
}

.tri-support strong { color: var(--tri-ink); }

@media (max-width: 560px) {
	.tri-gap { grid-template-columns: 1fr; }
}

/* ============ TRUST ISSUES SPECIFIC ============ */

.tri-section-head {
	margin: 24px 0 12px;
	padding-top: 18px;
	border-top: 1px solid var(--tri-border);
}

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

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

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

/* the two readings side by side */
.tri-reads {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 12px;
}

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

.tri-read-k {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--tri-muted);
	margin-bottom: 5px;
	line-height: 1.35;
}

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

.tri-read-d { font-size: 11.5px; color: var(--tri-dim); margin-top: 5px; line-height: 1.4; }

/* the validating / careful panel */
.tri-note-card {
	border-radius: var(--tri-r);
	padding: 20px 22px;
	margin-bottom: 12px;
	border: 1px solid var(--tri-violet-line);
	background: var(--tri-violet-soft);
}

.tri-note-card.is-grounded { border-color: #fed7aa; background: #fff7ed; }
.tri-note-card.is-calm { border-color: #a7f3d0; background: #ecfdf5; }

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

.tri-note-card.is-grounded h4 { color: #9a3412; }
.tri-note-card.is-calm h4 { color: #047857; }

.tri-note-card p {
	font-size: 14px;
	line-height: 1.65;
	color: var(--tri-ink-soft);
	margin-bottom: 10px;
}

.tri-note-card p:last-child { margin-bottom: 0; }
.tri-note-card strong { color: var(--tri-ink); }

.tri-support {
	background: var(--tri-surface-2);
	border: 1px solid var(--tri-border);
	border-left: 3px solid var(--tri-violet);
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 18px;
}

.tri-support p { font-size: 13.5px; line-height: 1.65; color: var(--tri-ink-soft); }
.tri-support strong { color: var(--tri-ink); }

@media (max-width: 560px) {
	.tri-reads { grid-template-columns: 1fr; }
}
