/* NanoGuard AI. Everything is scoped under .ng-scan or .ng-cta. Mobile first.
   Brand: purple #6D217F, deep purple #2a0f3d (hero), Roboto (already loaded by the site).
   Status badge colors are from the plan (section 6). */

.ng-scan,
.ng-cta {
	--ng-purple: #6d217f;
	--ng-deep: #2a0f3d;
	--ng-accent: #b366f2;
	--ng-tint: #f7f5fb;
	--ng-border: #e4def2;
	--ng-text: #1b1530;
	--ng-muted: #5b5470;
	font-family: Roboto, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
	color: var(--ng-text);
	line-height: 1.5;
	box-sizing: border-box;
}

.ng-scan *,
.ng-cta * {
	box-sizing: border-box;
}

.ng-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ng-scan [hidden],
.ng-cta [hidden] {
	display: none !important;
}

/* ----- hero and form ----- */

.ng-hero,
.ng-cta {
	background: var(--ng-deep);
	color: #fff;
	padding: 32px 20px;
	border-radius: 8px;
}

.ng-title {
	margin: 0 0 8px;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.ng-tagline {
	margin: 0 0 22px;
	font-size: 1.1875rem;
	line-height: 1.35;
	color: var(--ng-accent);
}

.ng-heading {
	margin: 0 0 8px;
	font-size: 1.5rem;
	line-height: 1.25;
	color: #fff;
}

.ng-lede {
	margin: 0 0 20px;
	font-size: 1.0625rem;
	color: #eadcf2;
}

.ng-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
	color: #fff;
}

.ng-row {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ng-input {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	font: inherit;
	font-size: 1rem;
	color: var(--ng-text);
	background: #fff;
	border: 2px solid #fff;
	border-radius: 6px;
}

.ng-input:read-only {
	opacity: 0.75;
}

.ng-btn {
	min-height: 48px;
	padding: 10px 22px;
	font: inherit;
	font-weight: 500;
	color: #fff;
	background: var(--ng-purple);
	border: 2px solid #fff;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.ng-btn:hover:not(:disabled) {
	color: var(--ng-purple);
	background: #fff;
}

.ng-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ng-input:focus-visible,
.ng-btn:focus-visible,
.ng-link:focus-visible,
.ng-notice a:focus-visible {
	outline: 3px solid var(--ng-accent);
	outline-offset: 2px;
}

.ng-error {
	margin: 10px 0 0;
	padding: 10px 14px;
	color: #7a1f0d;
	background: #fdeee8;
	border-left: 4px solid #c2410c;
	border-radius: 4px;
}

.ng-notice {
	margin: 18px 0 0;
	font-size: 0.875rem;
	color: #eadcf2;
}

.ng-notice a {
	color: #fff;
	text-decoration: underline;
}

/* ----- progress ----- */

.ng-progress {
	margin-top: 20px;
	padding: 24px 20px;
	background: var(--ng-tint);
	border: 1px solid var(--ng-border);
	border-radius: 8px;
}

.ng-progress-title {
	margin: 0 0 14px;
	font-size: 1.25rem;
}

.ng-progress-domain {
	color: var(--ng-purple);
	overflow-wrap: anywhere;
}

.ng-steps {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.ng-steps li {
	position: relative;
	padding: 6px 0 6px 32px;
	color: var(--ng-muted);
}

.ng-steps li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 10px;
	width: 14px;
	height: 14px;
	border: 2px solid var(--ng-border);
	border-radius: 50%;
	background: #fff;
}

.ng-steps li.is-done {
	color: var(--ng-text);
}

.ng-steps li.is-done::before {
	background: var(--ng-purple);
	border-color: var(--ng-purple);
}

.ng-steps li.is-current {
	color: var(--ng-text);
	font-weight: 500;
}

.ng-steps li.is-current::before {
	border-color: var(--ng-purple);
	animation: ng-pulse 1.2s ease-in-out infinite;
}

.ng-progress-note {
	margin: 0;
	font-size: 0.875rem;
	color: var(--ng-muted);
}

@keyframes ng-pulse {
	50% {
		box-shadow: 0 0 0 6px rgba(109, 33, 127, 0.18);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ng-steps li.is-current::before {
		animation: none;
	}

	.ng-btn {
		transition: none;
	}
}

/* ----- results ----- */

.ng-results {
	margin-top: 20px;
}

/* Focus moves here after a scan so screen readers start at the report; a
   ring around the whole report would only be noise. */
.ng-results:focus {
	outline: none;
}

.ng-report-head {
	margin-bottom: 16px;
}

.ng-report-title {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.25;
	color: var(--ng-deep);
}

.ng-report-domain {
	margin: 4px 0 0;
	color: var(--ng-muted);
	overflow-wrap: anywhere;
}

.ng-section-title {
	margin: 28px 0 12px;
	font-size: 1.25rem;
	color: var(--ng-deep);
}

.ng-level {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px 18px;
	background: var(--ng-tint);
	border: 1px solid var(--ng-border);
	border-left-width: 8px;
	border-radius: 8px;
}

.ng-level--low { border-left-color: #6b7280; }
.ng-level--moderate { border-left-color: #3730a3; }
.ng-level--elevated { border-left-color: #c2410c; }
.ng-level--high { border-left-color: #9a1c1c; }

.ng-level-label {
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ng-muted);
}

.ng-level-value {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--ng-deep);
}

.ng-level-note {
	font-size: 0.875rem;
	color: var(--ng-muted);
}

.ng-card,
.ng-callout,
.ng-locked {
	margin: 0 0 14px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid var(--ng-border);
	border-radius: 8px;
}

.ng-callout {
	background: var(--ng-tint);
}

.ng-card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.ng-category {
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ng-muted);
}

.ng-badge {
	display: inline-block;
	padding: 3px 10px;
	font-size: 0.8125rem;
	font-weight: 500;
	border-radius: 999px;
}

.ng-badge--potential_risk { color: #9a3412; background: #fde8d8; }
.ng-badge--needs_review { color: #3730a3; background: #e0e7ff; }
.ng-badge--insufficient_evidence { color: #4a4360; background: #eeeaf4; }

.ng-card-title {
	margin: 0 0 6px;
	font-size: 1.0625rem;
	line-height: 1.3;
	color: var(--ng-deep);
}

.ng-card-sub {
	margin: 0 0 8px;
	font-size: 0.9375rem;
	color: var(--ng-muted);
}

.ng-card-text {
	margin: 0 0 8px;
}

.ng-link {
	color: var(--ng-purple);
	text-decoration: underline;
	text-underline-offset: 2px;
	word-break: break-word;
}

.ng-evidence-title {
	margin: 12px 0 4px;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ng-muted);
}

.ng-evidence {
	margin: 0;
	padding-left: 18px;
	font-size: 0.9375rem;
}

.ng-snippet,
.ng-date {
	color: var(--ng-muted);
}

/* Locked placeholders hold no real text: the server never sends any. */
.ng-locked {
	background: var(--ng-tint);
	border-style: dashed;
}

.ng-locked-tag {
	display: inline-block;
	margin-bottom: 10px;
	padding: 2px 10px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--ng-purple);
	background: #fff;
	border: 1px solid var(--ng-border);
	border-radius: 999px;
}

.ng-bars {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ng-bar {
	display: block;
	height: 10px;
	background: #ddd6fe;
	border-radius: 5px;
}

.ng-unlock {
	margin: 4px 0 18px;
	padding: 14px 18px;
	background: var(--ng-tint);
	border-radius: 8px;
}

.ng-btn--solid {
	display: inline-block;
	margin-top: 4px;
	text-align: center;
	text-decoration: none;
	color: #fff;
	background: var(--ng-purple);
	border-color: var(--ng-purple);
}

.ng-btn--solid:hover {
	color: var(--ng-purple);
	background: #fff;
}

.ng-thanks {
	background: #f1e8f5;
	margin-bottom: 16px;
}

.ng-gate {
	margin-top: 8px;
	padding: 20px;
	background: var(--ng-tint);
	border: 1px solid var(--ng-border);
	border-radius: 8px;
}

.ng-gate .ng-section-title {
	margin-top: 0;
}

/* Gravity Forms markup (legacy "gravity-theme"): bring it in line with the
   scan form above. Selectors are deliberately specific so Gravity Forms'
   own stylesheet and the Elementor widget CSS do not win. */
.ng-gate .gform_wrapper {
	margin: 0;
	font-family: inherit;
	color: var(--ng-text);
}

.ng-gate .gform_wrapper .gform_fields {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ng-gate .gform_wrapper .gfield {
	margin: 0 0 18px;
	padding: 0;
}

.ng-gate .gform_wrapper .gfield.gform_validation_container {
	display: none !important;
}

.ng-gate .gform_wrapper .gfield_label {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ng-text);
}

.ng-gate .gform_wrapper .gfield_required {
	margin-left: 6px;
	font-size: 0.8125rem;
	font-weight: 400;
	color: #9a3412;
}

.ng-gate .gform_wrapper .gfield input[type="text"],
.ng-gate .gform_wrapper .gfield input[type="email"],
.ng-gate .gform_wrapper .gfield input[type="tel"] {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 14px;
	font: inherit;
	font-size: 1rem;
	color: var(--ng-text);
	background: #fff;
	border: 1px solid #b9a9cf;
	border-radius: 6px;
	box-shadow: none;
}

.ng-gate .gform_wrapper .gfield input:focus-visible,
.ng-gate .gform_wrapper .gfield input[type="checkbox"]:focus-visible {
	outline: 3px solid var(--ng-accent);
	outline-offset: 2px;
}

.ng-gate .gform_wrapper .gfield_error input[type="text"],
.ng-gate .gform_wrapper .gfield_error input[type="email"],
.ng-gate .gform_wrapper .gfield_error input[type="tel"] {
	border-color: #c2410c;
}

.ng-gate .gform_wrapper .gfield_checkbox {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ng-gate .gform_wrapper .gfield_checkbox .gchoice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.ng-gate .gform_wrapper .gfield_checkbox input[type="checkbox"] {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin: 2px 0 0;
	accent-color: var(--ng-purple);
}

.ng-gate .gform_wrapper .gfield_checkbox label {
	max-width: none;
	margin: 0;
	padding: 0;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--ng-text);
}

.ng-gate .gform_wrapper .gfield_checkbox label a {
	color: var(--ng-purple);
}

.ng-gate .gform_wrapper .gform_footer {
	margin: 0;
	padding: 6px 0 0;
}

.ng-gate .gform_wrapper .gform_button,
.ng-gate .gform_wrapper input[type="submit"] {
	min-height: 48px;
	margin: 0;
	padding: 10px 22px;
	font: inherit;
	font-weight: 500;
	line-height: 1.2;
	color: #fff;
	background: var(--ng-purple);
	border: 2px solid var(--ng-purple);
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.ng-gate .gform_wrapper .gform_button:hover,
.ng-gate .gform_wrapper input[type="submit"]:hover {
	color: var(--ng-purple);
	background: #fff;
}

.ng-gate .gform_wrapper .gform_button:focus-visible {
	outline: 3px solid var(--ng-accent);
	outline-offset: 2px;
}

.ng-gate .gform_wrapper .gform_validation_errors,
.ng-gate .gform_wrapper .gfield_validation_message,
.ng-gate .gform_wrapper .validation_message {
	margin: 6px 0 0;
	padding: 8px 12px;
	font-size: 0.9375rem;
	color: #7a1f0d;
	background: #fdeee8;
	border: 0;
	border-left: 4px solid #c2410c;
	border-radius: 4px;
}

.ng-gate .gform_wrapper .gform_validation_errors {
	margin: 0 0 18px;
}

.ng-gate .gform_wrapper .gform_validation_errors h2 {
	margin: 0;
	font-size: 1rem;
	color: inherit;
}

@media (max-width: 639px) {
	.ng-gate .gform_wrapper .gform_button,
	.ng-gate .gform_wrapper input[type="submit"] {
		width: 100%;
	}
}

.ng-gate .gform_confirmation_message {
	font-weight: 500;
}

.ng-btn--ghost {
	margin-top: 8px;
	color: var(--ng-purple);
	background: #fff;
	border-color: var(--ng-purple);
}

.ng-btn--ghost:hover:not(:disabled) {
	color: #fff;
	background: var(--ng-purple);
}

.ng-about {
	margin-top: 28px;
	padding: 18px 20px;
	font-size: 0.875rem;
	color: var(--ng-muted);
	background: var(--ng-tint);
	border: 1px solid var(--ng-border);
	border-radius: 8px;
}

.ng-about p {
	margin: 0 0 10px;
}

.ng-about p:last-child {
	margin-bottom: 0;
}

.ng-about a {
	color: var(--ng-purple);
}

.ng-about-title {
	margin: 0 0 10px;
	font-size: 1rem;
	color: var(--ng-deep);
}

/* ----- wider screens ----- */

@media (min-width: 640px) {
	.ng-hero,
	.ng-cta {
		padding: 44px 40px;
	}

	.ng-title {
		font-size: 2.25rem;
	}

	.ng-row {
		flex-direction: row;
	}

	.ng-input {
		flex: 1;
	}

	.ng-level {
		flex-direction: row;
		align-items: baseline;
		gap: 14px;
	}
}

/* Cloudflare Turnstile: invisible unless the visitor must interact. */
.ng-turnstile {
	margin-top: 12px;
}

.ng-turnstile:empty {
	display: none;
}

/* Homepage form with no band of its own, to sit inside an Elementor hero. */
.ng-cta.ng-cta--bare {
	padding: 0;
	background: transparent;
	border-radius: 0;
}
