/* Innuos Comparison Table */
.ict,
.ict-pillars,
.ict-modal {
	--ict-gold: #b89968;
	--ict-gold-light: #d7bf95;
	--ict-bronze: #8c6a3e;
	--ict-bg: #1a191d;
	--ict-surface: #222126;
	--ict-media: #0b0a0d;
	--ict-line: rgba(255, 255, 255, 0.08);
	--ict-text: rgba(255, 255, 255, 0.78);
	--ict-muted: rgba(255, 255, 255, 0.55);
	--ict-heading: #fff;
	--ict-font-heading: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ict-label-w: 190px;
	--ict-col-min: 180px;
	color: var(--ict-text);
	font-size: 15px;
	line-height: 1.55;
}

/* ---------- Pillars ---------- */
.ict-pillars {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) 2.4fr;
	gap: 48px;
	align-items: start;
}

.ict-eyebrow {
	margin: 0 0 14px;
	color: var(--ict-gold);
	font-family: var(--ict-font-heading);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.ict-pillars__title {
	margin: 0 0 18px;
	color: var(--ict-heading);
	font-family: var(--ict-font-heading);
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.ict-pillars__text {
	margin: 0;
	color: var(--ict-muted);
}

.ict-pillars__list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ict-pillar {
	margin: 0;
	border: 1px solid var(--ict-line);
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
	transition: border-color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.ict-pillar__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 22px 18px;
	border-radius: inherit;
	color: inherit !important;
	text-decoration: none !important;
}

.ict-pillar--link:hover,
.ict-pillar--link:focus-within {
	border-color: rgba(184, 153, 104, 0.55);
	background-color: rgba(184, 153, 104, 0.05);
	transform: translateY(-3px);
}

.ict-pillar__inner:focus-visible {
	outline: 2px solid var(--ict-gold);
	outline-offset: 2px;
}

.ict-pillar__more {
	margin-top: auto;
	padding-top: 14px;
	color: var(--ict-gold);
	font-family: var(--ict-font-heading);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ict-pillar__more span {
	display: inline-block;
	transition: transform 0.25s ease;
}

.ict-pillar--link:hover .ict-pillar__more span {
	transform: translateX(4px);
}

[id^="pillar-"] {
	scroll-margin-top: 90px;
}

.ict-pillar.is-active {
	border-color: var(--ict-gold);
	background-color: rgba(184, 153, 104, 0.08);
}

.ict-pillar__arrow {
	transition: transform 0.25s ease;
}

.ict-pillar.is-active .ict-pillar__arrow,
.ict-pillar.is-active:hover .ict-pillar__more .ict-pillar__arrow {
	transform: rotate(90deg);
}

/* Detail rows (WPBakery rows with Extra class "ict-detail"): hidden until opened */
.ict-details-ready .ict-detail:not(.is-open) {
	display: none !important;
}

.ict-detail.is-open {
	animation: ict-detail-in 0.5s ease both;
}

@keyframes ict-detail-in {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

.ict-pillar__icon {
	display: block;
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	border-radius: 11px;
	object-fit: contain;
}

.ict-pillar__title {
	margin: 0 0 8px;
	color: var(--ict-gold-light);
	font-family: var(--ict-font-heading);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ict-pillar__text {
	margin: 0;
	color: var(--ict-muted);
	font-size: 13.5px;
	line-height: 1.5;
}

/* ---------- Comparison table ---------- */
.ict {
	position: relative;
}

.ict__head {
	max-width: 640px;
	margin-bottom: 28px;
}

.ict__title {
	margin: 0 0 8px;
	color: var(--ict-heading);
	font-family: var(--ict-font-heading);
	font-size: clamp(24px, 2.6vw, 34px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.ict__subtitle {
	margin: 0;
	color: var(--ict-muted);
}

.ict__scroller {
	position: relative;
	max-width: calc(var(--ict-label-w) + var(--ict-cols, 4) * var(--ict-col-max, 270px) + 2px);
	border: 1px solid var(--ict-line);
	border-radius: 18px;
	background: var(--ict-surface);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(184, 153, 104, 0.5) transparent;
}

.ict__scroller:focus-visible {
	outline: 2px solid var(--ict-gold);
	outline-offset: 3px;
}

.ict__table {
	width: 100%;
	min-width: calc(var(--ict-label-w) + var(--ict-cols, 4) * var(--ict-col-min));
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	background: transparent;
}

.ict__table th,
.ict__table td {
	border: 0;
	background: transparent;
	vertical-align: top;
	text-align: left;
}

.ict__corner,
.ict__label {
	position: sticky;
	left: 0;
	z-index: 2;
	width: var(--ict-label-w);
	background: var(--ict-surface) !important;
}

/* Product header */
.ict__product {
	padding: 20px 10px 0 !important;
}

.ict__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	padding: 10px;
	border-radius: 12px;
	background: radial-gradient(ellipse at 50% 70%, #1c1b20 0%, var(--ict-media) 70%);
	overflow: hidden;
}

.ict__img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
	transition: transform 0.5s ease;
}

.ict__media--cover {
	padding: 0;
}

.ict__media--cover .ict__img {
	object-fit: cover;
}

.ict__product:hover .ict__img {
	transform: scale(1.04);
}

.ict__name {
	display: block;
	margin-top: 12px;
	padding: 10px 8px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff !important;
	font-family: var(--ict-font-heading);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: filter 0.2s ease;
}

a.ict__name:hover {
	filter: brightness(1.12);
}

.ict__product--gold .ict__name {
	background: linear-gradient(135deg, #d9c193 0%, var(--ict-gold) 55%, #a3835a 100%);
	color: #1a191d !important;
}

.ict__product--flagship .ict__name {
	background: linear-gradient(135deg, #b48d58 0%, var(--ict-bronze) 55%, #5f4527 100%);
	color: #fff !important;
}

/* Footer row with the "View details" buttons (after Output) */
.ict__foot,
.ict__label--foot {
	padding: 20px 14px 26px !important;
	border-top: 1px solid var(--ict-line) !important;
	text-align: center !important;
	vertical-align: middle !important;
}

.ict__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 auto;
	padding: 11px 20px;
	border: 0 !important;
	border-radius: 999px;
	background: linear-gradient(135deg, #e3cc9f 0%, var(--ict-gold) 50%, #9c7c4c 100%) !important;
	color: #1a191d !important;
	font-family: var(--ict-font-heading);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 6px 18px -8px rgba(184, 153, 104, 0.7) !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ict__more svg {
	transition: transform 0.25s ease;
}

.ict__more:hover,
.ict__more:focus-visible {
	filter: brightness(1.08);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -8px rgba(184, 153, 104, 0.9) !important;
}

.ict__more:hover svg {
	transform: rotate(90deg);
}

.ict__more:focus-visible {
	outline: 2px solid var(--ict-gold-light);
	outline-offset: 2px;
}

/* ---------- Product popup ---------- */
.ict-modal {
	width: min(980px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100vh - 48px);
	margin: auto;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	background: #1f1e23;
	color: var(--ict-text);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
	overflow: hidden;
}

.ict-modal::backdrop {
	background: rgba(8, 8, 10, 0.72);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.ict-modal[open] {
	animation: ict-modal-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.ict-modal[open]::backdrop {
	animation: ict-fade-in 0.35s ease both;
}

@keyframes ict-modal-in {
	from { opacity: 0; transform: translateY(24px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

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

.ict-modal__panel {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	max-height: calc(100vh - 50px);
}

.ict-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	border-radius: 50%;
	background: rgba(26, 25, 29, 0.85) !important;
	color: #fff !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.ict-modal__close:hover {
	background: var(--ict-gold) !important;
	color: #1a191d !important;
	transform: rotate(90deg);
}

.ict-modal__media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	padding: 40px 32px;
	background: radial-gradient(ellipse at 50% 65%, #232227 0%, #0b0a0d 72%);
}

/* Photos with a dark background: full width, edges faded into the panel instead of cropped */
.ict-modal__media--cover {
	padding: 0;
	background: #0b0a0d;
}

.ict-modal__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
}

.ict-modal__media--cover .ict-modal__img {
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.ict-modal__body {
	padding: 40px 40px 36px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ict-modal__title {
	margin: 0 0 14px;
	color: #fff;
	font-family: var(--ict-font-heading);
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 600;
	line-height: 1.15;
}

.ict-modal__desc {
	margin-bottom: 24px;
	color: var(--ict-muted);
}

.ict-modal__desc p,
.ict-modal__desc ul,
.ict-modal__desc ol {
	margin: 0 0 10px;
}

.ict-modal__desc ul,
.ict-modal__desc ol {
	padding-left: 1.2em;
}

.ict-modal__desc strong,
.ict-modal__desc b {
	color: #fff;
}

.ict-modal__desc a {
	color: var(--ict-gold-light) !important;
}

.ict-modal__specs {
	margin: 0 0 28px;
	border-top: 1px solid var(--ict-line);
}

.ict-modal__spec {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--ict-line);
}

.ict-modal__spec dt {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: #fff;
	font-family: var(--ict-font-heading);
	font-size: 14px;
	font-weight: 600;
	align-self: start;
}

.ict-modal__spec dd {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
}

.ict-modal__icon {
	width: 30px;
	height: 30px;
	border-radius: 7px;
	object-fit: contain;
}

.ict-modal__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 8px;
	/* Shorthand + !important: the theme animates links with background-size 100% 2.6px (underline) */
	background: linear-gradient(135deg, #d9c193 0%, var(--ict-gold) 55%, #a3835a 100%) 0 0 / 100% 100% no-repeat !important;
	color: #1a191d !important;
	font-family: var(--ict-font-heading);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: filter 0.2s ease;
}

.ict-modal__cta:hover {
	filter: brightness(1.1);
}

html.ict-modal-open {
	overflow: hidden;
}

/* Body */
.ict__table tbody tr:first-child > * {
	padding-top: 26px !important;
}

.ict__table tbody tr:last-child > * {
	padding-bottom: 26px !important;
}

.ict__label,
.ict__cell {
	padding: 16px 14px !important;
	border-top: 1px solid var(--ict-line) !important;
}

.ict__table tbody tr:first-child > * {
	border-top: 0 !important;
}

.ict__label {
	padding-left: 22px !important;
	color: var(--ict-heading);
	font-family: var(--ict-font-heading);
	font-size: 14px;
	font-weight: 600;
}

.ict__label > * {
	vertical-align: middle;
}

.ict__icon {
	display: inline-block;
	width: 34px;
	height: 34px;
	margin-right: 12px;
	border-radius: 8px;
	object-fit: contain;
}

.ict__cell {
	font-size: 13.5px;
	line-height: 1.5;
	transition: background-color 0.2s ease;
}

.ict__cell--flagship {
	background: rgba(184, 153, 104, 0.06) !important;
}

.ict__table tbody tr:hover > .ict__cell {
	background-color: rgba(255, 255, 255, 0.025) !important;
}

.ict__table tbody tr:hover > .ict__cell--flagship {
	background-color: rgba(184, 153, 104, 0.1) !important;
}

.ict-line {
	display: block;
}

.ict-gap {
	display: block;
	height: 0.6em;
}

.ict-empty {
	color: var(--ict-muted);
}

/* Scroll hint (set by ict.js when the table overflows) */
.ict.is-scrollable::after {
	content: "";
	position: absolute;
	right: 1px;
	left: auto;
	bottom: 1px;
	width: 48px;
	height: calc(100% - var(--ict-head-h, 0px) - 2px);
	border-radius: 0 17px 17px 0;
	background: linear-gradient(90deg, rgba(34, 33, 38, 0), var(--ict-surface));
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.ict.is-scrollable.is-end::after {
	opacity: 0;
}

.ict.is-scrolled .ict__corner,
.ict.is-scrolled .ict__label {
	box-shadow: 8px 0 16px -10px rgba(0, 0, 0, 0.8);
}

/* Reveal on scroll */
.ict-reveal {
	opacity: 1;
}

.ict-js .ict-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.ict-js .ict-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.ict-pillars {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.ict-pillars__intro {
		max-width: 680px;
	}
}

@media (max-width: 991px) {
	.ict-pillars__list {
		grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	}
}

@media (max-width: 767px) {
	.ict,
	.ict-pillars {
		--ict-label-w: 96px;
		--ict-col-min: 152px;
		font-size: 14px;
	}

	.ict-pillars__list {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.ict-pillar__inner {
		display: grid;
		grid-template-columns: 44px 1fr;
		column-gap: 16px;
		padding: 16px;
	}

	.ict-pillar__more {
		grid-column: 2;
		padding-top: 8px;
	}

	.ict-pillar__icon {
		grid-row: span 2;
		width: 44px;
		height: 44px;
		margin: 0;
	}

	.ict__head {
		margin-bottom: 20px;
	}

	.ict__scroller {
		border-radius: 14px;
		scroll-snap-type: x proximity;
	}

	.ict__product {
		scroll-snap-align: start;
		scroll-margin-left: var(--ict-label-w);
		padding: 14px 6px 0 !important;
	}

	.ict__label {
		padding-left: 12px !important;
		padding-right: 8px !important;
		font-size: 12px;
	}

	.ict__icon {
		display: block;
		width: 28px;
		height: 28px;
		margin: 0 0 6px;
	}

	.ict__cell {
		padding: 14px 10px !important;
		font-size: 13px;
	}

	.ict__name {
		font-size: 12px;
		letter-spacing: 0.06em;
	}

	.ict__more {
		font-size: 11px;
		padding: 9px 14px;
	}

	.ict__foot {
		padding: 16px 8px 20px !important;
	}

	.ict-modal {
		width: calc(100vw - 20px);
		max-height: calc(100vh - 20px);
		border-radius: 16px;
	}

	.ict-modal__panel {
		display: block;
		max-height: calc(100vh - 22px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.ict-modal__media {
		min-height: 0;
		aspect-ratio: 16 / 10;
		padding: 20px;
	}

	.ict-modal__body {
		padding: 24px 20px 28px;
		overflow: visible;
	}

	.ict-modal__spec {
		grid-template-columns: 1fr;
		gap: 6px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ict-js .ict-reveal,
	.ict-pillar,
	.ict__img {
		transition: none;
		transform: none;
	}
}
