/* ==========================================================================
   LLC Zodiac Compatibility
   Brand: #0F172A · #7C3AED on a light surface. Tokens scoped to .zod-app.
   ========================================================================== */

.zod-app {
	--zod-font: inherit;
	--zod-display: 'Outfit', ui-sans-serif, system-ui, -apple-system, sans-serif;

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

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

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

	--zod-good: #10b981;
	--zod-good-soft: #ecfdf5;
	--zod-good-line: #a7f3d0;
	--zod-warn: #e11d48;
	--zod-warn-soft: #fff1f2;
	--zod-warn-line: #fecdd3;

	--zod-r: 14px;
}

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

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

/* colour deliberately not set here so button rules win on specificity */
.zod-app button,
.zod-app select { font-family: inherit; }

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

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

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

.zod-title {
	font-family: var(--zod-display);
	font-size: 31px;
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.14;
	margin-bottom: 8px;
}

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

/* ============ PICKERS ============ */

.zod-body,
.zod-results { padding: 24px 26px 28px; }

.zod-pickers {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: start;
	gap: 12px;
}

.zod-picker { min-width: 0; text-align: center; }

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

.zod-glyph {
	width: 72px;
	height: 72px;
	margin: 0 auto 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	line-height: 1;
	color: var(--zod-violet);
	background: var(--zod-violet-soft);
	border: 1.5px solid var(--zod-violet-line);
	border-radius: 50%;
	transition: transform .25s, background .25s;
}

.zod-glyph.is-set { transform: scale(1.04); }
.zod-glyph.is-empty { color: var(--zod-dim); background: var(--zod-surface-2); border-color: var(--zod-border); }

.zod-select {
	width: 100%;
	padding: 11px 12px;
	font-size: 14px;
	color: var(--zod-ink);
	background: var(--zod-surface-2);
	border: 1.5px solid var(--zod-border);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .18s;
}

.zod-select:focus { border-color: var(--zod-violet); outline: none; }
.zod-select.is-bad { border-color: var(--zod-warn); background: var(--zod-warn-soft); }

.zod-heart {
	align-self: center;
	margin-top: 46px;
	font-family: var(--zod-display);
	font-size: 22px;
	font-weight: 600;
	color: var(--zod-dim);
}

.zod-error {
	margin-top: 14px;
	padding: 11px 14px;
	border-radius: 10px;
	background: var(--zod-warn-soft);
	border: 1px solid var(--zod-warn-line);
	color: #9f1239;
	font-size: 13.5px;
	font-weight: 500;
}

.zod-error[hidden] { display: none; }

.zod-go {
	display: block;
	width: 100%;
	margin-top: 20px;
	padding: 16px;
	border: none;
	border-radius: 11px;
	background: var(--zod-violet);
	color: #fff;
	font-family: var(--zod-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);
}

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

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

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

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

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

.zod-pair-name {
	font-family: var(--zod-display);
	font-size: 17px;
	font-weight: 600;
	color: var(--zod-muted);
	margin-bottom: 14px;
}

/* score ring */
.zod-ring {
	position: relative;
	width: 168px;
	height: 168px;
	margin: 0 auto 16px;
}

.zod-ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.zod-ring-bg {
	fill: none;
	stroke: var(--zod-border);
	stroke-width: 9;
}

.zod-ring-fg {
	fill: none;
	stroke: var(--zod-violet);
	stroke-width: 9;
	stroke-linecap: round;
	stroke-dasharray: 326.7;
	stroke-dashoffset: 326.7;
	transition: stroke-dashoffset 1.2s cubic-bezier(.4, 0, .2, 1);
}

.zod-ring-num {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--zod-display);
	font-size: 46px;
	font-weight: 700;
	letter-spacing: -.03em;
	color: var(--zod-ink);
}

.zod-ring-pct { font-size: 22px; margin-left: 1px; }

.zod-tier {
	font-family: var(--zod-display);
	font-size: 23px;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--zod-violet-d);
	margin-bottom: 8px;
	line-height: 1.25;
}

.zod-tier-text {
	font-size: 14.5px;
	line-height: 1.62;
	color: var(--zod-ink-soft);
	max-width: 46ch;
	margin: 0 auto;
}

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

.zod-bars h4,
.zod-block h4 {
	font-family: var(--zod-display);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -.01em;
	margin-bottom: 14px;
}

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

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

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

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

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

/* quick facts strip */
.zod-facts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 12px;
}

.zod-fact {
	background: var(--zod-violet-soft);
	border: 1px solid var(--zod-violet-line);
	border-radius: var(--zod-r);
	padding: 13px 10px;
	text-align: center;
}

.zod-fact-k {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--zod-violet-d);
	margin-bottom: 3px;
}

.zod-fact-v {
	font-family: var(--zod-display);
	font-size: 14.5px;
	font-weight: 600;
	color: var(--zod-ink);
	line-height: 1.3;
}

/* text blocks */
.zod-block {
	background: var(--zod-surface);
	border: 1px solid var(--zod-border);
	border-radius: var(--zod-r);
	padding: 18px 22px;
	margin-bottom: 12px;
}

.zod-block h4 { margin-bottom: 7px; }

.zod-block p {
	font-size: 14px;
	line-height: 1.62;
	color: var(--zod-muted);
}

/* works / snags */
.zod-two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 16px;
}

.zod-list {
	border-radius: var(--zod-r);
	padding: 16px 18px;
	border: 1px solid;
}

.zod-list-good { background: var(--zod-good-soft); border-color: var(--zod-good-line); }
.zod-list-bad { background: var(--zod-warn-soft); border-color: var(--zod-warn-line); }

.zod-list h5 {
	font-family: var(--zod-display);
	font-size: 13.5px;
	font-weight: 600;
	margin-bottom: 9px;
}

.zod-list-good h5 { color: #047857; }
.zod-list-bad h5 { color: #9f1239; }

.zod-list ul { list-style: none; }

.zod-list li {
	position: relative;
	padding-left: 16px;
	margin-bottom: 8px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--zod-ink-soft);
}

.zod-list li:last-child { margin-bottom: 0; }

.zod-list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 8px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
}

.zod-list-good li::before { background: var(--zod-good); }
.zod-list-bad li::before { background: var(--zod-warn); }

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

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

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

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

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

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

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

@media (max-width: 560px) {
	.zod-app { margin: 20px auto; border-radius: 16px; }
	.zod-header { padding: 26px 18px 20px; }
	.zod-title { font-size: 25px; }
	.zod-body, .zod-results { padding: 20px 16px 24px; }

	.zod-pickers { grid-template-columns: 1fr; gap: 14px; }
	.zod-heart { margin-top: 0; }
	.zod-glyph { width: 62px; height: 62px; font-size: 29px; }

	.zod-ring { width: 148px; height: 148px; }
	.zod-ring-num { font-size: 40px; }
	.zod-tier { font-size: 20px; }
	.zod-two { grid-template-columns: 1fr; }
	.zod-facts { grid-template-columns: 1fr; }
}

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

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