/**
 * Public Audit — minimalne style.
 * Celowo neutralne — dopasowuje się do theme'u.
 * Kolory inspirowane aylov.pl: light editorial luxury.
 */

.kdr-audit {
	font-family: inherit;
	color: #1a1a1a;
	line-height: 1.6;
	max-width: 720px;
	margin: 0 auto;
}

.kdr-audit__intro {
	margin-bottom: 2em;
}

.kdr-audit__title {
	font-size: 2em;
	font-weight: 400;
	letter-spacing: -0.01em;
	margin-bottom: 0.5em;
}

.kdr-audit__lead {
	color: #555;
	font-size: 1.05em;
}

.kdr-audit__notice {
	padding: 1em 1.2em;
	border-radius: 4px;
	margin-bottom: 1.5em;
	font-size: 0.95em;
}

.kdr-audit__notice--error {
	background: #fdf2f2;
	border-left: 3px solid #c44;
	color: #7a1f1f;
}

.kdr-audit__form {
	background: #fafaf7;
	padding: 2em;
	border: 1px solid #e8e6e0;
	margin-bottom: 2em;
}

.kdr-audit__field {
	margin-bottom: 1.2em;
}

.kdr-audit__field--consent {
	margin-bottom: 1.8em;
}

.kdr-audit__label {
	display: block;
	font-weight: 500;
	font-size: 0.95em;
	margin-bottom: 0.4em;
	color: #2a2a2a;
}

.kdr-audit__input {
	width: 100%;
	padding: 0.8em 1em;
	border: 1px solid #c8c5be;
	background: #fff;
	font-family: inherit;
	font-size: 1em;
	box-sizing: border-box;
}

.kdr-audit__input:focus {
	outline: none;
	border-color: #8a7a4a;
	box-shadow: 0 0 0 3px rgba(138, 122, 74, 0.15);
}

.kdr-audit__hint {
	font-size: 0.85em;
	color: #777;
	margin-top: 0.4em;
}

.kdr-audit__hint--meta {
	margin-top: 1em;
	font-style: italic;
}

.kdr-audit__checkbox-label {
	display: flex;
	gap: 0.6em;
	align-items: flex-start;
	font-size: 0.9em;
	color: #555;
	cursor: pointer;
}

.kdr-audit__checkbox-label input[type="checkbox"] {
	margin-top: 0.3em;
	flex-shrink: 0;
}

.kdr-audit__button {
	background: #1a1a1a;
	color: #fff;
	border: none;
	padding: 0.9em 2em;
	font-family: inherit;
	font-size: 1em;
	font-weight: 500;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background 0.2s;
}

.kdr-audit__button:hover {
	background: #8a7a4a;
}

.kdr-audit__what-we-check {
	margin-top: 2em;
	padding-top: 2em;
	border-top: 1px solid #e8e6e0;
}

.kdr-audit__what-we-check h3 {
	font-size: 1.1em;
	font-weight: 500;
	margin-bottom: 0.8em;
}

.kdr-audit__what-we-check ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.kdr-audit__what-we-check li {
	padding: 0.4em 0 0.4em 1.5em;
	position: relative;
	color: #555;
	font-size: 0.95em;
}

.kdr-audit__what-we-check li::before {
	content: "—";
	position: absolute;
	left: 0;
	color: #8a7a4a;
}

/* === RESULT VIEW === */

.kdr-audit--result {
	max-width: 800px;
}

.kdr-audit__result-header {
	margin-bottom: 2em;
}

.kdr-audit__result-eyebrow {
	font-size: 0.85em;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #8a7a4a;
	margin-bottom: 0.3em;
}

.kdr-audit__result-url {
	font-size: 1.6em;
	font-weight: 400;
	word-break: break-all;
}

.kdr-audit__score-card {
	background: #fafaf7;
	border: 1px solid #e8e6e0;
	border-left: 5px solid #999;
	padding: 1.8em 2em;
	margin-bottom: 2em;
}

.kdr-audit__score-card--good {
	border-left-color: #4a8a4a;
}

.kdr-audit__score-card--warn {
	border-left-color: #d4a017;
}

.kdr-audit__score-card--bad {
	border-left-color: #b04040;
}

.kdr-audit__score-value {
	font-size: 3em;
	font-weight: 300;
	line-height: 1;
}

.kdr-audit__score-label {
	font-size: 1.1em;
	font-weight: 500;
	margin-top: 0.3em;
}

.kdr-audit__score-note {
	margin-top: 0.8em;
	color: #555;
	font-size: 0.95em;
}

.kdr-audit__section {
	margin: 2.5em 0;
}

.kdr-audit__section-title {
	font-size: 1.3em;
	font-weight: 400;
	letter-spacing: -0.01em;
	padding-bottom: 0.4em;
	border-bottom: 1px solid #e8e6e0;
	margin-bottom: 1em;
}

.kdr-audit__issues {
	list-style: none;
	padding: 0;
	margin: 0;
	counter-reset: kdr-issue;
}

.kdr-audit__issue {
	padding: 1.2em 0 1.2em 3em;
	border-bottom: 1px solid #f0eee8;
	position: relative;
	counter-increment: kdr-issue;
}

.kdr-audit__issue::before {
	content: counter(kdr-issue);
	position: absolute;
	left: 0;
	top: 1.2em;
	width: 2em;
	height: 2em;
	border: 1px solid #8a7a4a;
	border-radius: 50%;
	color: #8a7a4a;
	text-align: center;
	line-height: 2em;
	font-weight: 500;
}

.kdr-audit__issue:last-child {
	border-bottom: none;
}

.kdr-audit__issue-title {
	font-size: 1.05em;
	font-weight: 500;
	margin: 0 0 0.4em 0;
}

.kdr-audit__issue-detail {
	color: #555;
	margin: 0;
	font-size: 0.95em;
}

.kdr-audit__metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1em;
}

.kdr-audit__metric {
	background: #fafaf7;
	padding: 1em 1.2em;
	border: 1px solid #e8e6e0;
}

.kdr-audit__metric dt {
	font-size: 0.85em;
	color: #777;
	margin-bottom: 0.3em;
	letter-spacing: 0.02em;
}

.kdr-audit__metric dd {
	margin: 0;
	font-size: 1.05em;
}

.kdr-audit__metric-note {
	display: block;
	font-size: 0.8em;
	color: #777;
	margin-top: 0.2em;
	font-style: italic;
}

.kdr-audit__checklist {
	list-style: none;
	padding: 0;
	margin: 0;
}

.kdr-audit__checklist li {
	padding: 0.5em 0 0.5em 1.8em;
	position: relative;
	border-bottom: 1px solid #f0eee8;
}

.kdr-audit__checklist li:last-child {
	border-bottom: none;
}

.kdr-audit__checklist li::before {
	position: absolute;
	left: 0;
	top: 0.5em;
	font-weight: 700;
}

.kdr-audit__checklist li.kdr-ok::before {
	content: "✓";
	color: #4a8a4a;
}

.kdr-audit__checklist li.kdr-warn::before {
	content: "!";
	color: #d4a017;
}

.kdr-audit__checklist li.kdr-bad::before {
	content: "✗";
	color: #b04040;
}

.kdr-audit__cta {
	background: #1a1a1a;
	color: #fff;
	padding: 2em;
	margin: 3em 0 2em;
	text-align: center;
}

.kdr-audit__cta h3 {
	font-size: 1.4em;
	font-weight: 400;
	margin: 0 0 0.6em 0;
}

.kdr-audit__cta p {
	color: #c9c4b5;
	margin: 0 0 1.2em 0;
}

.kdr-audit__cta-button {
	display: inline-block;
	background: #8a7a4a;
	color: #fff;
	padding: 0.9em 2em;
	text-decoration: none;
	font-weight: 500;
	letter-spacing: 0.02em;
	transition: background 0.2s;
}

.kdr-audit__cta-button:hover,
.kdr-audit__cta-button:focus {
	background: #a09060;
	color: #fff;
}

.kdr-audit__small {
	font-size: 0.8em;
	color: #999;
	text-align: center;
	margin-top: 2em;
}

/* === LOADING OVERLAY === */

.kdr-audit__overlay {
	position: fixed;
	inset: 0;
	background: rgba(250, 250, 247, 0.98);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 2em;
	box-sizing: border-box;
	text-align: center;
}

.kdr-audit__overlay.is-visible {
	display: flex;
	animation: kdr-fade-in 0.25s ease-out;
}

@keyframes kdr-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.kdr-audit__overlay-inner {
	max-width: 480px;
	width: 100%;
}

.kdr-audit__spinner {
	width: 64px;
	height: 64px;
	border: 3px solid #e8e6e0;
	border-top-color: #8a7a4a;
	border-radius: 50%;
	margin: 0 auto 1.8em;
	animation: kdr-spin 0.9s linear infinite;
}

@keyframes kdr-spin {
	to { transform: rotate(360deg); }
}

.kdr-audit__overlay-title {
	font-size: 1.5em;
	font-weight: 400;
	letter-spacing: -0.01em;
	color: #1a1a1a;
	margin: 0 0 0.4em 0;
}

.kdr-audit__overlay-message {
	color: #8a7a4a;
	font-size: 1.05em;
	margin: 0 0 1.4em 0;
	min-height: 2.6em;
	transition: opacity 0.25s ease;
	line-height: 1.5;
}

.kdr-audit__overlay-bar {
	width: 100%;
	height: 4px;
	background: #e8e6e0;
	overflow: hidden;
	margin-bottom: 1.4em;
	border-radius: 2px;
}

.kdr-audit__overlay-bar-fill {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #8a7a4a, #c4a96a);
	transition: width 0.3s ease-out;
}

.kdr-audit__overlay-note {
	color: #777;
	font-size: 0.9em;
	margin: 0;
	line-height: 1.5;
}

.kdr-audit__overlay-note strong {
	color: #1a1a1a;
	font-weight: 600;
}

.kdr-audit__button[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

/* === LANDING "TWOJA PIERWSZA STRONA" === */

.kdr-landing {
	font-family: inherit;
	color: #1a1a1a;
	line-height: 1.65;
	max-width: 860px;
	margin: 0 auto;
}

.kdr-landing__hero {
	text-align: center;
	padding: 1em 0 2.5em;
}

.kdr-landing__eyebrow {
	font-size: 0.82em;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #8a7a4a;
	margin: 0 0 0.6em;
}

.kdr-landing__title {
	font-size: 2.6em;
	font-weight: 400;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
	line-height: 1.1;
}

.kdr-landing__lead {
	font-size: 1.15em;
	color: #555;
	max-width: 640px;
	margin: 0 auto;
}

.kdr-landing__section {
	padding: 2.5em 0;
	border-top: 1px solid #e8e6e0;
}

.kdr-landing__section--alt {
	background: #fafaf7;
	margin: 0 -2em;
	padding-left: 2em;
	padding-right: 2em;
}

.kdr-landing__section-title {
	font-size: 1.7em;
	font-weight: 400;
	letter-spacing: -0.01em;
	margin: 0 0 1.2em;
	text-align: center;
}

.kdr-landing__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.2em;
}

.kdr-landing__card {
	background: #fff;
	border: 1px solid #e8e6e0;
	padding: 1.4em 1.5em;
}

.kdr-landing__card h3 {
	font-size: 1.1em;
	font-weight: 600;
	margin: 0 0 0.5em;
	color: #1a1a1a;
}

.kdr-landing__card p {
	margin: 0;
	color: #555;
	font-size: 0.96em;
}

.kdr-landing__list {
	list-style: none;
	padding: 0;
	margin: 0;
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
}

.kdr-landing__list li {
	padding: 0.9em 0 0.9em 1.8em;
	position: relative;
	border-bottom: 1px solid #e8e6e0;
	color: #555;
}

.kdr-landing__list li:last-child {
	border-bottom: none;
}

.kdr-landing__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.35em;
	width: 8px;
	height: 8px;
	background: #8a7a4a;
	border-radius: 50%;
}

.kdr-landing__list strong {
	color: #1a1a1a;
	display: block;
	margin-bottom: 0.15em;
}

.kdr-landing__prose {
	max-width: 660px;
	margin: 0 auto;
}

.kdr-landing__prose p {
	margin: 0 0 1em;
	color: #444;
}

.kdr-landing__checklist {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	max-width: 660px;
}

.kdr-landing__checklist li {
	padding: 0.55em 0 0.55em 1.9em;
	position: relative;
	color: #444;
}

.kdr-landing__checklist li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0.55em;
	color: #8a7a4a;
	font-weight: 700;
}

.kdr-landing__note {
	max-width: 660px;
	margin: 1.4em auto 0;
	font-size: 0.9em;
	color: #777;
	font-style: italic;
}

.kdr-landing__cta {
	text-align: center;
	background: #1a1a1a;
	color: #fff;
	padding: 3em 2em;
	margin: 2.5em -2em 0;
}

.kdr-landing__cta h2 {
	font-size: 1.8em;
	font-weight: 400;
	margin: 0 0 0.6em;
}

.kdr-landing__cta p {
	color: #c9c4b5;
	max-width: 480px;
	margin: 0 auto 1.5em;
}

.kdr-landing__cta-button {
	display: inline-block;
	background: #8a7a4a;
	color: #fff;
	padding: 1em 2.4em;
	text-decoration: none;
	font-weight: 500;
	letter-spacing: 0.02em;
	transition: background 0.2s;
}

.kdr-landing__cta-button:hover,
.kdr-landing__cta-button:focus {
	background: #a09060;
	color: #fff;
}

.kdr-landing__cta-sub {
	margin-top: 1.4em !important;
	font-size: 0.9em;
}

.kdr-landing__cta-sub a {
	color: #c4a96a;
}
