/**
 * Flexible content block styles — loaded directly, no build step required.
 * Edit this file and refresh the browser to see changes.
 *
 * Button appearance uses global theme classes:
 * - .crunch-button.crunch-button__full-background (primary_button)
 * - .crunch-button.crunch-button__text-only (secondary_button)
 */

/* ==========================================================================
   Shared utilities
   ========================================================================== */

.flexible-block__buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
}

.flexible-block__buttons .crunch-button + .crunch-button {
	margin-left: 0;
}

/* Two-column intro + content split (FAQ Accordion, Content with Feature Grid) */
.faq-accordion__layout,
.content-feature-grid__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
	gap: clamp(2rem, 4vw, 4rem);
	align-items: start;
}

.faq-accordion__intro .entry-content > :last-child,
.content-feature-grid__intro .entry-content > :last-child {
	margin-bottom: 0;
}

@media screen and (max-width: 63.9375em) {
	.faq-accordion__layout,
	.content-feature-grid__layout {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   1. FAQ Accordion
   ========================================================================== */

.faq-accordion__item {
	border-bottom: 1px solid rgba(32, 32, 32, 0.15);
}

.faq-accordion__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 1.25rem 0;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
}

.faq-accordion__question {
	font-weight: 700;
	color: #202020;
	padding-right: 1rem;
}

.faq-accordion__icon {
	position: relative;
	flex: 0 0 1rem;
	width: 1rem;
	height: 1rem;
}

.faq-accordion__icon::before,
.faq-accordion__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.75rem;
	height: 2px;
	background: #202020;
	transform: translate(-50%, -50%);
	transition: transform 0.25s ease;
}

.faq-accordion__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.faq-accordion__item.is-open .faq-accordion__icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.faq-accordion__panel {
	padding-bottom: 1.25rem;
}

.faq-accordion__panel[hidden] {
	display: none;
}

/* ==========================================================================
   2. Content with Feature Grid
   ========================================================================== */

.content-feature-grid__layout {
	align-items: center;
}

.content-feature-grid__intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	text-align: left;
}

.content-feature-grid__features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.content-feature-grid__item {
	height: 100%;
}

.content-feature-grid__item-inner {
	height: 100%;
	padding: 1.5rem;
	border: 1px solid rgba(32, 32, 32, 0.15);
}

.content-feature-grid__item-inner > :first-child {
	margin-top: 0;
}

.content-feature-grid__item-inner > :last-child {
	margin-bottom: 0;
}

@media screen and (max-width: 39.9375em) {
	.content-feature-grid__features {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   3. Tabbed Content
   ========================================================================== */

.tabbed-content__header > :last-child {
	margin-bottom: 0;
}

.tabbed-content__tabs {
	border: 1px solid rgba(32, 32, 32, 0.15);
}

.tabbed-content__tab-nav {
	border-bottom: 1px solid rgba(32, 32, 32, 0.15);
}

.tabbed-content .tabs {
	display: flex;
	flex-wrap: nowrap;
	width: 100%;
	margin: 0;
	border: 0;
	background: transparent;
}

.tabbed-content .tabs-title {
	flex: 1 1 0;
	min-width: 0;
}

.tabbed-content .tabs-title > a {
	display: block;
	padding: 1rem 1.5rem;
	font-weight: 700;
	color: #202020;
	background: #f3f3f3;
	border-right: 1px solid rgba(32, 32, 32, 0.1);
	text-align: center;
	font-size: 1rem;
}

.tabbed-content .tabs-title.is-active > a {
	border-bottom: 1px solid #fff;
	margin-bottom: -1px;
  background: #66d836;
  color: #fff;
}

.tabbed-content__panels {
	border: 0;
	background: #fff;
}

.tabbed-content__panel {
	padding: 0;
}

.tabbed-content__panel-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 3vw, 2.5rem);
	padding: clamp(1.5rem, 3vw, 2.5rem);
}

.tabbed-content__panel-image {
	display: block;
	width: 100%;
	height: auto;
}

.tabbed-content__panel-content > :last-child {
	margin-bottom: 0;
}

@media screen and (max-width: 63.9375em) {
	.tabbed-content__tab-nav {
		border-bottom: 0;
	}

	.tabbed-content .tabs {
		flex-direction: column;
		flex-wrap: wrap;
		min-width: 0;
		width: 100%;
	}

	.tabbed-content .tabs-title {
		flex: 1 1 auto;
		width: 100%;
	}

	.tabbed-content .tabs-title > a {
		border-right: 0;
		border-bottom: 1px solid rgba(32, 32, 32, 0.1);
		white-space: normal;
	}

	.tabbed-content .tabs-title.is-active > a {
		margin-bottom: 0;
		border-bottom-color: rgba(32, 32, 32, 0.1);
	}

}

@media screen and (max-width: 39.9375em) {
	.tabbed-content .flexible-block__buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.tabbed-content .flexible-block__buttons .crunch-button {
		width: 100%;
	}
	.tabbed-content__panel-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   4. Expanding Cards (How it works)
   ========================================================================== */

.expanding-cards__header > :last-child {
	margin-bottom: 0;
}

.expanding-cards__track {
	display: flex;
	gap: 0.75rem;
	align-items: stretch;
	height: 26rem;
}

.expanding-cards__card {
	flex: 1 1 8rem;
	min-width: 0;
	height: 100%;
	border: 1px solid rgba(32, 32, 32, 0.15);
	transition: flex-grow 0.4s ease, flex-basis 0.4s ease;
	overflow: hidden;
}

.expanding-cards__card.is-active {
	flex: 3 1 24rem;
}

.expanding-cards__card-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

.expanding-cards__card-copy {
	flex: 1 1 auto;
	min-height: 0;
	padding: 1.25rem;
	overflow: hidden;
}

.expanding-cards__card-title {
	margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.expanding-cards__card-content {
	font-weight: 300;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, opacity 0.35s ease, margin 0.35s ease;
}

.expanding-cards__card-link {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, opacity 0.35s ease, margin 0.35s ease;
}

.expanding-cards__card.is-active .expanding-cards__card-content {
	max-height: 12rem;
	opacity: 1;
	margin-top: 0;
}

.expanding-cards__card.is-active .expanding-cards__card-link {
	max-height: 4rem;
	opacity: 1;
	margin-top: 0.75rem;
}

.expanding-cards__card-media {
	flex: 0 0 10rem;
	height: 12rem;
	margin-top: auto;
	background: #f3f3f3;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.expanding-cards__card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Mobile: vertical accordion stack */
@media screen and (max-width: 63.9375em) {
	.expanding-cards__track {
		flex-direction: column;
		height: auto;
	}

	.expanding-cards__card {
		flex: 1 1 auto;
		height: auto;
		cursor: pointer;
	}

	.expanding-cards__card,
	.expanding-cards__card.is-active {
		flex: 1 1 auto;
	}

	.expanding-cards__card-inner {
		min-height: 0;
	}

	.expanding-cards__card:not(.is-active) .expanding-cards__card-media {
		display: none;
	}

	.expanding-cards__card:not(.is-active) .expanding-cards__card-content,
	.expanding-cards__card:not(.is-active) .expanding-cards__card-link {
		max-height: 0;
		opacity: 0;
	}

	.expanding-cards__card.is-active .expanding-cards__card-content,
	.expanding-cards__card.is-active .expanding-cards__card-link {
		max-height: none;
		opacity: 1;
	}
}

/* ==========================================================================
   5. Three Column Journey
   ========================================================================== */

.three-column-journey__intro > :last-child {
	margin-bottom: 0;
}

.three-column-journey__table {
	border-top: 1px solid rgba(32, 32, 32, 0.15);
}

.three-column-journey__headings {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid rgba(32, 32, 32, 0.15);
}

.three-column-journey__heading {
	font-weight: 700;
	color: rgba(32, 32, 32, 0.55);
	text-transform: uppercase;
	font-size: 0.875rem;
	letter-spacing: 0.04em;
}

.three-column-journey__heading-spacer {
	width: 1.5rem;
}

.three-column-journey__row {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr;
	gap: 1rem;
	align-items: center;
	padding: 1.5rem 0;
	border-bottom: 1px solid rgba(32, 32, 32, 0.15);
}

.three-column-journey__cell-label {
	display: none;
	font-weight: 700;
	color: rgba(32, 32, 32, 0.55);
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	margin-bottom: 0.5rem;
}

.three-column-journey__cell-text {
	margin: 0;
	font-weight: 700;
	color: #202020;
}

.three-column-journey__cell--problem {
	position: relative;
	padding-left: 1rem;
}

.three-column-journey__cell--problem::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15rem;
	bottom: 0.15rem;
	width: 3px;
	background: #66d836;
}

.three-column-journey__arrow {
	width: 1.5rem;
	height: 1.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23202020' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

@media screen and (max-width: 63.9375em) {
	.three-column-journey__headings {
		display: none;
	}

	.three-column-journey__row {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.three-column-journey__arrow {
		display: none;
	}

	.three-column-journey__cell-label {
		display: block;
	}

	.three-column-journey__cell--problem {
		padding-left: 0;
	}

	.three-column-journey__cell--problem::before {
		display: none;
	}
}

/* ==========================================================================
   6. Icon Features
   ========================================================================== */

.icon-features__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
}

.icon-features__item {
	text-align: center;
}

.icon-features__icon-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 4rem;
	margin-bottom: 1rem;
}

.icon-features__icon {
	max-width: 4.5rem;
	max-height: 4cm;
	width: auto;
	height: auto;
}

.icon-features__item-title {
	margin-bottom: 0.5rem;
}

.icon-features__item-description {
	font-size: 0.9375rem;
	font-weight: 300;
	color: rgba(32, 32, 32, 0.75);
}

@media screen and (max-width: 63.9375em) {
	.icon-features__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 39.9375em) {
	.icon-features__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   7. Comparison Table
   ========================================================================== */

.comparison-table__intro > :last-child {
	margin-bottom: 0;
}

.comparison-table__scroll-hint {
	display: none;
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: rgba(32, 32, 32, 0.55);
	text-align: right;
}

.comparison-table__viewport {
	position: relative;
}

.comparison-table__viewport::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 2.5rem;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
	box-shadow: inset -1.5rem 0 1rem -0.75rem rgba(32, 32, 32, 0.12);
}

.comparison-table__scroll.is-scrollable .comparison-table__viewport::after {
	opacity: 1;
}

.comparison-table__scroll.is-at-end .comparison-table__viewport::after {
	opacity: 0;
}

.comparison-table__desktop {
	overflow-x: auto;
	font-size: 80%;
}

.comparison-table__table {
	width: 100%;
	min-width: 48rem;
	border-collapse: collapse;
}

/* Override global theme table zebra striping */
.comparison-table__table tbody tr,
.comparison-table__table tbody tr:nth-child(even) {
	background-color: transparent;
}

.comparison-table__table th,
.comparison-table__table td {
	padding: 1rem 0.75rem;
	border-bottom: 1px solid rgba(32, 32, 32, 0.12);
	vertical-align: top;
	text-align: left;
}

.comparison-table__table thead th {
	font-weight: 400;
	color: rgba(32, 32, 32, 0.55);
}

.comparison-table__table tbody th {
	font-weight: 400;
}

.comparison-table__data-row th,
.comparison-table__data-row td {
	border-bottom: 0;
}

.comparison-table__model {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 8rem;
  max-width: 14rem;
}

.comparison-table__model-image {
	display: block;
	width: 100%;
	max-width: 8rem;
	height: auto;
}

.comparison-table__model-name {
	display: block;
	margin: 0;
	font-weight: 700;
	color: #202020;
	line-height: 1.35;
  font-size: 1.1rem;
}

.comparison-table__cell > :first-child {
	margin-top: 0;
}

.comparison-table__cell > :last-child {
	margin-bottom: 0;
}
.comparison-table__cell ul {
  margon-top: 0.5rem !important;
}
.comparison-table__cell ul li {
  padding-left: 1rem !important;
}
.comparison-table__cell ul li::before {
  width: .3rem;
  height: .3rem;
  top: .5rem;
}
.comparison-table__action-row td {
	padding-top: 0;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(32, 32, 32, 0.12);
}

.comparison-table__action {
	white-space: normal;
}

@media screen and (max-width: 63.9375em) {
	.comparison-table__desktop {
		-webkit-overflow-scrolling: touch;
	}

	.comparison-table__scroll.is-scrollable .comparison-table__scroll-hint {
		display: block;
	}

	.comparison-table__scroll.is-scrolled .comparison-table__scroll-hint {
		display: none;
	}
}
