/* InBase - Test připravenosti firmy na prodej.
 * Scoped under .ib-readiness. Reuses theme tokens (--ib-cta-green,
 * --ib-cta-blue, --ib-border) with safe fallbacks. Full container width,
 * left-aligned. Mobile-first. */

.ib-readiness {
	--rd-green: var(--ib-cta-green, #21ac18);
	--rd-green-hover: var(--ib-cta-green-hover, #0e8f1b);
	--rd-blue: var(--ib-cta-blue, #1972b6);
	--rd-ink: #282728;
	--rd-muted: #6b7280;
	--rd-border: var(--ib-border, #dce3ef);
	--rd-bg: #f1f4f8;
	--rd-card: #ffffff;
	width: 100%;
	margin: 0;
	font-family: 'Open Sans', sans-serif;
	color: var(--rd-ink);
}

.ib-readiness *,
.ib-readiness *::before,
.ib-readiness *::after { box-sizing: border-box; }

.ib-readiness .ib-rd-noscript {
	border: 1px solid var(--rd-border);
	border-radius: 14px;
	padding: 24px;
	background: var(--rd-card);
}

/* ---- card shell ---- */
.ib-readiness .ib-rd-card {
	background: var(--rd-card);
	border: 1px solid var(--rd-border);
	border-radius: 16px;
	padding: 34px 38px;
	box-shadow: 0 14px 40px rgba(20, 33, 61, 0.06);
}

/* ---- blue tool heading + separator ---- */
.ib-readiness .ib-rd-title {
	margin: 16px 0 22px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--rd-blue);
	text-align: left;
}
.ib-readiness .ib-rd-sep {
	height: 0;
	border: 0;
	border-top: 1px solid var(--rd-border);
	margin: 0 0 34px;
}

/* ---- persistent lede above the tool box ---- */
.ib-readiness .ib-rd-lede { margin: 0 0 22px; }
.ib-readiness .ib-rd-lede__title {
	margin: 0 0 25px;
	font-size: 31px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--rd-blue);
}
.ib-readiness .ib-rd-lede__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--rd-ink);
}

/* ---- progress + step counter (muted, no uppercase) ---- */
.ib-readiness .ib-rd-progress {
	height: 6px;
	border-radius: 999px;
	background: var(--rd-bg);
	overflow: hidden;
	margin-bottom: 14px;
}
.ib-readiness .ib-rd-progress__bar {
	height: 100%;
	background: var(--rd-blue);
	border-radius: 999px;
	transition: width .35s ease;
}
.ib-readiness .ib-rd-step__meta { margin-bottom: 10px; }
.ib-readiness .ib-rd-step__count {
	font-size: 13px;
	color: var(--rd-muted);
}

/* ---- questions ---- */
.ib-readiness .ib-rd-q {
	padding: 0 0 38px;
	margin-bottom: 38px;
	border-bottom: 1px solid var(--rd-border);
}
.ib-readiness .ib-rd-q:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 6px;
}
.ib-readiness .ib-rd-q__text {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--rd-ink);
}
.ib-readiness .ib-rd-q__help {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--rd-muted);
	max-width: 92ch;
}

/* ---- options (2-up on desktop) ---- */
.ib-readiness .ib-rd-options {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}
.ib-readiness .ib-rd-opt {
	display: block;
	width: 100%;
	text-align: left;
	border: 1.5px solid var(--rd-border);
	background: #fff;
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 15px;
	font-family: inherit;
	color: var(--rd-ink);
	cursor: pointer;
	transition: border-color .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.ib-readiness .ib-rd-opt:hover {
	border-color: var(--rd-blue);
	background: #f2f8fd;
}
.ib-readiness .ib-rd-opt.is-selected {
	border-color: var(--rd-blue);
	background: #ecf5fc;
	box-shadow: inset 0 0 0 1px var(--rd-blue);
	font-weight: 600;
}

/* ---- slider ---- */
.ib-readiness .ib-rd-slider { padding: 6px 2px 4px; max-width: 920px; }
.ib-readiness .ib-rd-range {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 10px;
	border-radius: 999px;
	/* JS paints a blue fill up to the thumb; this is the unfilled base. */
	background: #d7dee8;
	outline: none;
	margin: 10px 0;
}
.ib-readiness .ib-rd-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--rd-blue);
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(20, 33, 61, 0.25);
	cursor: pointer;
}
.ib-readiness .ib-rd-range::-moz-range-thumb {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--rd-blue);
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(20, 33, 61, 0.25);
	cursor: pointer;
}
.ib-readiness .ib-rd-slider__labels {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	margin-top: 8px;
	font-size: 13px;
	color: var(--rd-muted);
}
.ib-readiness .ib-rd-slider__labels span { max-width: 46%; }
.ib-readiness .ib-rd-slider__labels span:last-child { text-align: right; }

/* ---- buttons + nav ---- */
.ib-readiness .ib-rd-btn {
	display: inline-block;
	border: 0;
	border-radius: 999px;
	padding: 14px 30px;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, opacity .15s ease, transform .05s ease;
	-webkit-appearance: none;
	appearance: none;
}
.ib-readiness .ib-rd-btn:active { transform: translateY(1px); }
.ib-readiness .ib-rd-btn--primary { background: var(--rd-green); color: #fff; }
.ib-readiness .ib-rd-btn--primary:hover { background: var(--rd-green-hover); }
.ib-readiness .ib-rd-btn--primary[disabled] { opacity: .4; cursor: not-allowed; }
.ib-readiness .ib-rd-btn--ghost {
	background: transparent;
	color: var(--rd-muted);
	padding-left: 16px;
	padding-right: 16px;
}
.ib-readiness .ib-rd-btn--ghost:hover { color: var(--rd-ink); }
.ib-readiness .ib-rd-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
}
.ib-readiness .ib-rd-nav--intro { justify-content: flex-start; }

/* ---- intro ---- */
.ib-readiness .ib-rd-intro__list {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	max-width: 92ch;
}
.ib-readiness .ib-rd-intro__list li {
	position: relative;
	padding: 10px 0 10px 34px;
	font-size: 16px;
}
.ib-readiness .ib-rd-intro__list li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 14px;
	width: 16px;
	height: 9px;
	border-left: 2.5px solid var(--rd-green);
	border-bottom: 2.5px solid var(--rd-green);
	transform: rotate(-45deg);
}
.ib-readiness .ib-rd-intro__note { margin: 0; color: var(--rd-muted); font-size: 14px; }

/* ---- result ---- */
.ib-readiness .ib-rd-kicker {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--rd-muted);
}
.ib-readiness .ib-rd-result__head {
	display: flex;
	align-items: center;
	gap: 26px;
	flex-wrap: wrap;
	padding-bottom: 28px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--rd-border);
}
.ib-readiness .ib-rd-ring {
	flex: 0 0 auto;
	width: 132px;
	height: 132px;
	border-radius: 50%;
	background: conic-gradient(var(--rd-band, #1f9d57) calc(var(--rd-pct, 0) * 1%), var(--rd-bg) 0);
	display: flex;
	align-items: center;
	justify-content: center;
}
.ib-readiness .ib-rd-ring__inner {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ib-readiness .ib-rd-ring__num { font-size: 34px; font-weight: 800; color: var(--rd-ink); line-height: 1; }
.ib-readiness .ib-rd-ring__num small { font-size: 16px; font-weight: 700; color: var(--rd-muted); }
.ib-readiness .ib-rd-result__headtext { flex: 1 1 260px; }
.ib-readiness .ib-rd-result__band { margin: 0 0 8px; font-size: 24px; font-weight: 700; line-height: 1.2; }
.ib-readiness .ib-rd-result__msg { margin: 0; font-size: 15px; line-height: 1.55; color: #444; max-width: 94ch; }

.ib-readiness .ib-rd-subtitle { margin: 0 0 16px; font-size: 18px; font-weight: 700; color: var(--rd-ink); }

/* ---- breakdown bars ---- */
.ib-readiness .ib-rd-breakdown { margin-bottom: 32px; }
.ib-readiness .ib-rd-bar { margin-bottom: 16px; }
.ib-readiness .ib-rd-bar:last-child { margin-bottom: 0; }
.ib-readiness .ib-rd-bar__top {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
	font-size: 14px;
}
.ib-readiness .ib-rd-bar__top strong { font-weight: 700; }
.ib-readiness .ib-rd-bar__track {
	height: 12px;
	border-radius: 999px;
	background: var(--rd-bg);
	overflow: hidden;
}
.ib-readiness .ib-rd-bar__fill {
	height: 100%;
	border-radius: 999px;
	transition: width .9s cubic-bezier(.22, 1, .36, 1);
}

/* ---- tips ---- */
.ib-readiness .ib-rd-tips { margin-bottom: 32px; }
.ib-readiness .ib-rd-tip {
	border: 1px solid var(--rd-border);
	border-left: 4px solid var(--rd-green);
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 12px;
	background: #fcfdfe;
}
.ib-readiness .ib-rd-tip:last-child { margin-bottom: 0; }
.ib-readiness .ib-rd-tip__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 6px;
}
.ib-readiness .ib-rd-tip__name { font-weight: 700; font-size: 16px; }
.ib-readiness .ib-rd-tip__score { font-size: 14px; font-weight: 700; color: var(--rd-muted); }
.ib-readiness .ib-rd-tip__text { margin: 0; font-size: 14px; line-height: 1.6; color: #444; max-width: 104ch; }

/* ---- strengths ---- */
.ib-readiness .ib-rd-strengths { margin-bottom: 32px; }
.ib-readiness .ib-rd-strengths__list { list-style: none; margin: 0; padding: 0; }
.ib-readiness .ib-rd-strengths__list li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 14px;
	border-radius: 10px;
	background: #f1f8ec;
	margin-bottom: 8px;
	font-size: 15px;
}
.ib-readiness .ib-rd-strengths__list li:last-child { margin-bottom: 0; }
.ib-readiness .ib-rd-strengths__name { font-weight: 600; }
.ib-readiness .ib-rd-strengths__score { font-weight: 700; color: var(--rd-green); }

/* ---- cta + disclaimer ---- */
.ib-readiness .ib-rd-cta {
	padding: 26px 24px;
	border-radius: 14px;
	background: var(--rd-bg);
	margin-bottom: 18px;
}
.ib-readiness .ib-rd-cta__lead { margin: 0 0 16px; font-size: 16px; font-weight: 600; max-width: 92ch; }
.ib-readiness .ib-rd-cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.ib-readiness .ib-rd-disclaimer { margin: 0; font-size: 12px; line-height: 1.5; color: var(--rd-muted); max-width: 90ch; }

/* ---- desktop: options 2-up ---- */
@media (min-width: 768px) {
	.ib-readiness .ib-rd-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- page-test.php: section wrapper under the jumbo hero ---- */
.ib-readiness-section { padding: 40px 0 60px; }

/* ---- responsive ---- */
@media (max-width: 600px) {
	/* Větší boční odsazení od kraje obrazovky na mobilu (celý blok i karta). */
	.ib-readiness-section { padding-left: 12px; padding-right: 12px; }
	.ib-readiness .ib-rd-card { padding: 24px 22px; border-radius: 14px; }
	.ib-readiness .ib-rd-title { font-size: 21px; }
	.ib-readiness .ib-rd-q__text { font-size: 17px; }
	.ib-readiness .ib-rd-result__head { gap: 18px; }
	.ib-readiness .ib-rd-ring { width: 112px; height: 112px; }
	.ib-readiness .ib-rd-ring__inner { width: 84px; height: 84px; }
	.ib-readiness .ib-rd-ring__num { font-size: 28px; }
	.ib-readiness .ib-rd-btn { padding: 13px 22px; font-size: 15px; }
	.ib-readiness .ib-rd-cta__btns .ib-rd-btn { width: 100%; }
}
