/**
 * Personality app shell CSS -- the shared phone-card shell (#va-app,
 * #va-card, .va-screen, .va-primary/.va-secondary, .va-likert-*, etc.) is
 * the same structural CSS every Vitaedux test uses (see
 * eq/public/assets/css/app.css for the sibling this is adapted from),
 * reskinned dark+gold via the :root variables below rather than
 * duplicated -- the shell is fully variable-driven, so swapping the
 * palette here is enough to carry the personality brand through consent,
 * items, and the result screen alike.
 *
 * The `.vpt-*` classes below the shell section are a close, class-renamed
 * port of personality-report-dark.html's own <style> block -- same
 * colours, same layout -- so the live result screen and the static design
 * reference read as one design. Two things from that static file are
 * deliberately NOT ported: the "Review as: Free preview / Unlocked"
 * segmented toggle (a design-review affordance for comparing states in
 * one static file, not real product behaviour -- gating is server-side
 * here) and the CSS mask-based ".full.locked" preview trick (the server
 * sends either a preview or a full payload, so there's no client-side
 * partial-content masking to do).
 */

:root {
	/* Outer app-shell background -- the SAME gradient every sibling test
	   (IQ/EQ/AQ/Brain Zones/Career DNA/Skill Mapping) uses for #va-app,
	   confirmed by grepping each one's own app.css :root block. This is
	   suite-wide chrome, not part of personality's own brand -- only the
	   CARD (--va-surface and everything inside it) is personality-
	   specific dark+gold. Don't reskin this per-test again. */
	--va-bg-start: #0f2b47;
	--va-bg-end: #1bd2cc;
	--va-surface: #16181f;
	--va-text: #ecebe6;
	--va-muted: #a8a69e;
	--va-accent: #b8912e;
	--va-accent-dark: #8a6b1f;
	--va-success: #3ecf8e;
	--va-danger: #ef4444;
	--va-radius: 16px;

	--vpt-bg: #0d0e12;
	--vpt-surf: #16181f;
	--vpt-surf2: #1e2129;
	--vpt-line: #2a2d38;
	--vpt-ink: #ecebe6;
	--vpt-soft: #a8a69e;
	--vpt-faint: #75736b;
	--vpt-gold: #b8912e;
	--vpt-serif: "EB Garamond", Georgia, serif;
	--vpt-sans: "Inter", system-ui, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	color: var( --va-text );
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---- shell (see eq/public/assets/css/app.css for the full history/reasoning behind these) ---- */

/*
 * #va-app is a fixed full-viewport takeover layer, not a normally-
 * flowing block -- matches the REAL deployed mechanism every sibling
 * test actually uses (Brain Zones/Career DNA/Skill Mapping's own
 * #vbz-app/#vcd-app/#vsm-app, confirmed against the live site; the
 * "removed in favour of a normal in-flow block" docblock some local
 * copies carry describes a fix that was apparently never actually
 * deployed). This is also the real answer to "how does the header/
 * footer disappear": they don't -- position:fixed + inset:0 + a
 * z-index far above the host theme's own stacking paints over the
 * ENTIRE viewport regardless of where in the DOM this shortcode's
 * output landed, covering the header/footer in place rather than
 * requiring them to be hidden.
 */
#va-app {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	/* A thin white wash layered over the exact same shared gradient
	   every other test uses (--va-bg-start/--va-bg-end stay untouched,
	   so this is still "the same background" at the variable level) --
	   a bit brighter without diverging from the shared colour values. */
	background: linear-gradient( rgba( 255, 255, 255, 0.08 ), rgba( 255, 255, 255, 0.08 ) ), linear-gradient( 135deg, var( --va-bg-start ), var( --va-bg-end ) );
	overflow: hidden;
	color: var( --va-text ) !important;
}

#va-card {
	position: relative;
	width: min( 90vw, 420px );
	max-height: calc( 100dvh - 48px );
	background: var( --va-surface );
	border: 1px solid var( --vpt-line );
	border-radius: var( --va-radius );
	box-shadow: 0 18px 38px rgba( 0, 0, 0, 0.45 );
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: width 180ms ease;
}

#va-card-scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

#va-card-scroll::-webkit-scrollbar {
	display: none;
}

.va-screen {
	padding: 28px 24px 8px;
	animation: va-fade-in 220ms ease-out;
	overflow-wrap: break-word;
}

.va-brand-badge {
	text-align: right;
	padding: 4px 24px 18px;
	font-size: 10px;
	letter-spacing: 0.02em;
	color: var( --va-muted );
	opacity: 0.65;
}

@media ( min-width: 720px ) {
	#va-app.va-app-wide #va-card {
		width: min( 90vw, 460px );
	}
}

@media ( max-width: 768px ) {
	#va-app {
		align-items: flex-start;
		padding: max( 10px, env( safe-area-inset-top ) ) max( 10px, env( safe-area-inset-right ) ) max( 10px, env( safe-area-inset-bottom ) ) max( 10px, env( safe-area-inset-left ) );
	}

	#va-card {
		width: min( 92vw, 400px );
		max-height: calc( 100dvh - 20px );
		border-radius: 16px;
	}
}

@media ( max-width: 380px ) {
	.va-screen {
		padding: 22px 16px 8px;
	}
}

@keyframes va-fade-in {
	from { opacity: 0; transform: translateY( 6px ); }
	to { opacity: 1; transform: translateY( 0 ); }
}

h1 { font-size: 1.5rem; margin: 0 0 12px; color: var( --va-text ) !important; }
h2 { font-size: 1.25rem; margin: 0 0 12px; color: var( --va-text ) !important; }
h3 { font-size: 1rem; margin: 20px 0 8px; color: var( --va-text ) !important; }

.va-title-accent {
	text-align: center;
	color: var( --va-accent ) !important;
}

p {
	line-height: 1.5;
	color: var( --va-text ) !important;
}

.va-note,
.va-muted {
	color: var( --va-muted );
	font-size: 0.85rem;
}

.va-primary {
	background: linear-gradient( 180deg, #e6c765, var( --vpt-gold ) );
	color: #1a1405;
	border: none;
	border-radius: 12px;
	min-height: 48px;
	padding: 12px 24px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	width: 100%;
	margin-top: 12px;
	transition: filter 120ms ease;
}

/* Icon + label as one centred unit (Brain Zones' own download-button
   pattern) -- .va-primary alone has no text-align/display rule, so
   without this an <a> styled va-primary would left-align its content
   instead of centering it like a real <button> does by default. */
.vpt-btn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
	box-sizing: border-box;
}

.vpt-btn-icon svg {
	flex: 0 0 auto;
}

.va-primary:hover:not( :disabled ) {
	filter: brightness( 1.06 );
}

.va-primary:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.va-secondary {
	background: transparent;
	color: var( --va-text );
	border: 1.5px solid var( --vpt-line );
	border-radius: 12px;
	min-height: 44px;
	padding: 10px 20px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	margin-top: 8px;
}

.va-secondary:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

a.va-secondary {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-sizing: border-box;
}

label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	margin-top: 14px;
	color: var( --va-text ) !important;
}

input[type='text'],
input[type='email'],
input[type='password'],
select,
textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid var( --vpt-line );
	font-size: 1rem;
	font-family: inherit;
	background: #fff;
	color: #1c1a2e !important;
}

.va-dob-selects {
	display: flex;
	gap: 8px;
	margin-top: 6px;
}

.va-dob-selects select {
	margin-top: 0;
	padding: 10px 6px;
	min-width: 0;
}

.va-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
	font-size: 0.85rem;
	color: var( --va-text ) !important;
}

.va-checkbox input {
	margin-top: 3px;
}

.va-error {
	color: var( --va-danger );
	font-size: 0.85rem;
	min-height: 1.2em;
}

.vpt-save-panel {
	background: var( --vpt-surf2 );
	border: 1px solid var( --vpt-line );
	border-radius: 12px;
	padding: 14px 16px 6px;
	margin-top: 10px;
	text-align: left;
}

.vpt-save-panel label {
	margin-top: 10px;
}

.vpt-save-panel label:first-of-type {
	margin-top: 0;
}

.va-loading {
	text-align: center;
	color: var( --va-muted );
}

.va-intro-meta {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin: 14px 0;
	font-size: 0.85rem;
	font-weight: 600;
	color: var( --vpt-gold );
}

.va-progress-bar {
	height: 6px;
	background: var( --vpt-line );
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 18px;
}

.va-progress-fill {
	height: 100%;
	background: linear-gradient( 90deg, var( --vpt-gold ), #e6c765 );
	border-radius: 999px;
	transition: width 240ms ease;
}

.va-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: 16px;
}

.va-link-btn {
	display: block;
	margin: 14px auto 0;
	background: none;
	border: none;
	color: var( --vpt-gold );
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	padding: 6px;
}

.va-methodology-panel {
	margin-top: 10px;
	padding: 14px 16px;
	background: var( --vpt-surf2 );
	border: 1px solid var( --vpt-line );
	border-radius: 12px;
	font-size: 0.85rem;
	line-height: 1.6;
	color: var( --va-text );
}

.va-eq-demographics {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 14px;
	margin: 10px 0 6px;
	text-align: left;
}

/* [hidden] and .va-eq-demographics{display:grid} are equal specificity,
   so without this override the LATER-loaded author rule wins the
   cascade and the browser's built-in "[hidden]{display:none}" loses --
   app-pt.js's demographicsEl.hidden = true then visibly fails to hide
   the block. Higher-specificity redeclaration forces the hide back. */
.va-eq-demographics[hidden] {
	display: none;
}

.va-eq-demographics label {
	display: block;
	font-size: 0.85rem;
	color: var( --va-muted );
}

.va-item-stem {
	font-size: 1.05rem;
	font-weight: 600;
	color: var( --va-text );
	margin: 4px 0 18px;
	text-align: left;
}

.va-likert-scale {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.va-likert-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1px solid var( --vpt-line );
	background: var( --vpt-surf2 );
	font-family: inherit;
	font-size: 0.95rem;
	color: var( --va-text );
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s, background 0.15s;
}

.va-likert-btn:hover:not( :disabled ) {
	border-color: var( --vpt-gold );
}

.va-likert-btn:disabled {
	cursor: default;
	opacity: 0.55;
}

.va-likert-btn-selected {
	border-color: var( --vpt-gold );
	background: rgba( 184, 145, 46, 0.14 );
	opacity: 1 !important;
}

.va-likert-btn-value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var( --vpt-line );
	color: var( --vpt-gold );
	font-weight: 700;
	font-size: 0.85rem;
	flex-shrink: 0;
}

/* ---- round milestone screen -------------------------------------------- */

.vpt-milestone-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	margin: 4px auto 14px;
}

.vpt-milestone-label {
	text-align: center;
	font-family: var( --vpt-sans );
	font-weight: 700;
	font-size: 1.05rem;
	margin-top: -8px;
}

/* ---- the report itself -- ported from personality-report-dark.html ---- */

.vpt-theme h1,
.vpt-theme h2 {
	font-family: var( --vpt-serif );
	font-weight: 500;
}

.vpt-brand {
	font-family: var( --vpt-sans );
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var( --vpt-gold );
	margin-bottom: 14px;
}

.vpt-theme h1 {
	font-size: 30px;
	line-height: 1.08;
	margin: 0 0 6px;
}

.vpt-g {
	display: block;
	font-style: italic;
	color: var( --vpt-soft );
	font-size: 22px;
}

.vpt-person-row {
	display: flex;
	gap: 14px;
	font-family: var( --vpt-sans );
	font-size: 12px;
	color: var( --vpt-soft );
	margin-top: 4px;
}

.vpt-read {
	font-family: var( --vpt-serif );
	font-size: 17px;
	line-height: 1.5;
	color: var( --vpt-soft );
	margin: 12px 0 4px;
}

.vpt-hero-wrap {
	background: radial-gradient( 80% 70% at 50% 30%, #1a1d27 0%, var( --vpt-bg ) 75% );
	border: 1px solid var( --vpt-line );
	border-radius: 20px;
	padding: 16px 12px 10px;
	margin: 16px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.vpt-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	justify-content: center;
	margin: 6px 0 8px;
	font-family: var( --vpt-sans );
	font-size: 11px;
	color: var( --vpt-soft );
}

.vpt-legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.vpt-legend i {
	width: 9px;
	height: 9px;
	border-radius: 3px;
	display: inline-block;
}

.vpt-noscore {
	font-family: var( --vpt-serif );
	font-style: italic;
	color: var( --vpt-faint );
	font-size: 13px;
	text-align: center;
	margin: 2px 0 0;
	max-width: 32ch;
}

.vpt-domain {
	background: var( --vpt-surf );
	border: 1px solid var( --vpt-line );
	border-left: 3px solid var( --hue );
	border-radius: 16px;
	padding: 16px;
	margin: 14px 0;
}

.vpt-dhead {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
}

.vpt-dtitle {
	display: flex;
	gap: 11px;
	align-items: center;
}

.vpt-dkey {
	font-family: var( --vpt-sans );
	font-weight: 700;
	font-size: 14px;
	color: #0d0e12;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.vpt-domain h2 {
	font-size: 19px;
	font-weight: 500;
	margin: 0;
	line-height: 1.1;
}

.vpt-dsub {
	font-family: var( --vpt-sans );
	font-size: 11px;
	color: var( --vpt-faint );
	margin: 2px 0 0;
}

.vpt-ddial {
	position: relative;
	flex: 0 0 auto;
	text-align: center;
}

.vpt-dband {
	display: block;
	font-family: var( --vpt-sans );
	font-size: 10.5px;
	font-weight: 600;
	margin-top: -6px;
	letter-spacing: .03em;
}

.vpt-dread {
	font-family: var( --vpt-serif );
	font-size: 15px;
	line-height: 1.55;
	color: var( --vpt-soft );
	margin: 12px 0 4px;
}

.vpt-facets {
	margin: 12px 0 4px;
	padding: 12px 0 2px;
	border-top: 1px solid var( --vpt-line );
}

.vpt-fcap {
	font-family: var( --vpt-sans );
	font-size: 10px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var( --vpt-faint );
	margin-bottom: 11px;
}

.vpt-fac {
	margin-bottom: 12px;
}

.vpt-fac-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-family: var( --vpt-sans );
	font-size: 12.5px;
	margin-bottom: 4px;
}

.vpt-fac-top .vpt-fn { color: var( --vpt-ink ); }
.vpt-fac-top .vpt-fv { color: var( --vpt-soft ); font-size: 11.5px; }

.vpt-ftrack {
	position: relative;
	display: block;
	height: 7px;
	border-radius: 999px;
	background: var( --vpt-line );
	overflow: hidden;
}

.vpt-ffill {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	border-radius: 999px;
	display: block;
}

.vpt-fb {
	font-family: var( --vpt-sans );
	font-size: 11px;
	color: var( --vpt-faint );
	margin-top: 4px;
}

.vpt-ff {
	display: grid;
	gap: 8px;
	margin-top: 12px;
}

.vpt-ff > div {
	border-left: 2px solid var( --hue );
	padding: 2px 0 2px 11px;
}

.vpt-ff .vpt-fights {
	border-left-color: var( --vpt-line );
}

.vpt-ff .vpt-k {
	display: block;
	font-family: var( --vpt-sans );
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	margin-bottom: 3px;
}

.vpt-ff .vpt-fights .vpt-k {
	color: var( --vpt-faint );
}

.vpt-ff .vpt-t {
	font-family: var( --vpt-serif );
	font-size: 14.5px;
	color: var( --vpt-ink );
	line-height: 1.4;
}

.vpt-eyebrow {
	font-family: var( --vpt-sans );
	font-size: 11px;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var( --vpt-faint );
	margin: 24px 0 4px;
}

.vpt-big {
	font-family: var( --vpt-serif );
	font-weight: 500;
	font-size: 21px;
	margin: 0 0 8px;
}

.vpt-tax {
	background: var( --vpt-surf );
	border: 1px solid var( --vpt-line );
	border-radius: 16px;
	padding: 14px 16px 2px;
	margin: 12px 0;
}

.vpt-row {
	display: flex;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var( --vpt-line );
	align-items: flex-start;
}

.vpt-row:last-child { border-bottom: 0; }

.vpt-chip {
	font-family: var( --vpt-sans );
	font-size: 10px;
	font-weight: 600;
	color: #0d0e12;
	border-radius: 999px;
	padding: 3px 9px;
	white-space: nowrap;
	margin-top: 2px;
	flex: 0 0 auto;
}

.vpt-row p {
	margin: 0;
	font-family: var( --vpt-serif );
	font-size: 14.5px;
	color: var( --vpt-soft );
	line-height: 1.45;
}

.vpt-note {
	font-family: var( --vpt-serif );
	font-size: 15px;
	line-height: 1.5;
	color: var( --vpt-soft );
}

.vpt-note b { color: var( --vpt-ink ); }

.vpt-canvas {
	border: 1px solid var( --vpt-gold );
	border-radius: 16px;
	padding: 16px;
	margin: 14px 0;
	background: linear-gradient( 180deg, rgba( 184, 145, 46, .10 ), rgba( 184, 145, 46, .02 ) );
}

.vpt-tag {
	font-family: var( --vpt-sans );
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var( --vpt-gold );
	margin-bottom: 10px;
}

.vpt-canvas h3 {
	font-family: var( --vpt-serif );
	font-weight: 500;
	font-size: 17px;
	margin: 0 0 12px;
}

.vpt-cx {
	margin-bottom: 10px;
	border-left: 3px solid var( --cc );
	padding-left: 11px;
}

.vpt-cx .vpt-n {
	font-family: var( --vpt-sans );
	font-size: 12.5px;
	font-weight: 600;
	color: var( --vpt-ink );
}

.vpt-cx .vpt-p {
	font-family: var( --vpt-serif );
	font-size: 13.5px;
	color: var( --vpt-soft );
	margin: 3px 0 0;
	line-height: 1.4;
}

.vpt-validity {
	display: flex;
	gap: 10px;
	align-items: center;
	font-family: var( --vpt-sans );
	font-size: 12px;
	color: var( --vpt-soft );
	margin: 18px 0;
	padding: 11px 13px;
	border: 1px dashed var( --vpt-line );
	border-radius: 12px;
}

.vpt-validity .vpt-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var( --va-success );
	flex: 0 0 auto;
}

.vpt-footer {
	font-family: var( --vpt-sans );
	font-size: 10.5px;
	color: var( --vpt-faint );
	text-align: center;
	margin-top: 18px;
	line-height: 1.6;
}

.vpt-gate {
	text-align: center;
	padding: 20px 16px;
	border: 1px solid var( --vpt-line );
	border-radius: 16px;
	background: var( --vpt-surf );
	margin: 18px 0;
}

.vpt-lock {
	font-family: var( --vpt-sans );
	font-size: 11px;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var( --vpt-faint );
	margin-bottom: 8px;
}

.vpt-gate p {
	font-family: var( --vpt-serif );
	color: var( --vpt-soft );
	font-size: 15px;
	line-height: 1.45;
	margin: 0 0 14px;
}

.vpt-actions {
	display: grid;
	gap: 10px;
	margin-top: 10px;
}
