/* =========================================================
   TOSK - MEDLEMSFORDELER
   Alle regler er avgrenset til .tosk-benefits.
   ========================================================= */

.tosk-benefits {
	position: relative;
	padding: 78px 0 86px;
	color: #fafaf6;
}

.tosk-benefits__label {
	display: block;
	margin-bottom: 9px;
	color: #d69841;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.tosk-benefits__cta {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 38px;
	align-items: center;
	margin-bottom: 28px;
	padding: 38px 40px;
	overflow: hidden;
	border: 1px solid rgba(214, 152, 65, .24);
	border-radius: 24px;
	background:
		radial-gradient(circle at 92% 15%, rgba(214, 152, 65, .16), transparent 34%),
		linear-gradient(145deg, #202429 0%, #181c20 48%, #121517 100%);
	box-shadow:
		0 24px 64px rgba(0, 0, 0, .26),
		inset 0 1px 0 rgba(255, 255, 255, .035);
}

.tosk-benefits__cta::before {
	content: "";
	position: absolute;
	top: 0;
	left: 40px;
	width: 78px;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: #d69841;
}

.tosk-benefits__cta-copy,
.tosk-benefits__cta-action {
	position: relative;
	z-index: 1;
}

.tosk-benefits__cta-title {
	max-width: 820px;
	margin: 0;
	color: #fafaf6;
	font-size: clamp(27px, 3.2vw, 46px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.025em;
}

.tosk-benefits__cta-text {
	max-width: 760px;
	margin: 16px 0 0;
	color: rgba(240, 240, 236, .68);
	font-size: 15px;
	line-height: 1.7;
}

.tosk-benefits__cta-action {
	display: flex;
	justify-content: flex-end;
}

.tosk-benefits__intro-card {
	margin-bottom: 56px;
	padding: 38px 40px 40px;
	border: 1px solid rgba(255, 255, 255, .075);
	border-radius: 24px;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008)),
		#15191c;
	box-shadow: 0 20px 52px rgba(0, 0, 0, .20);
}

.tosk-benefits__heading {
	margin-bottom: 24px;
}

.tosk-benefits__title {
	margin: 0;
	color: #fafaf6;
	font-size: clamp(28px, 3.2vw, 44px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -.022em;
}

.tosk-benefits__title strong {
	font-weight: 800;
}

.tosk-benefits__divider {
	width: 54px;
	height: 3px;
	margin-top: 20px;
	background: #a71916;
}

.tosk-benefits__intro-text {
	max-width: 920px;
	color: rgba(238, 238, 234, .72);
	font-size: 15px;
	line-height: 1.82;
}

.tosk-benefits__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}

.tosk-benefits__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 44px;
	padding: 0 17px;
	border: 1px solid rgba(214, 152, 65, .38);
	border-radius: 10px;
	background: rgba(214, 152, 65, .03);
	color: #d69841 !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	transition:
		transform .2s ease,
		background-color .2s ease,
		border-color .2s ease,
		color .2s ease;
}

.tosk-benefits__social:hover {
	transform: translateY(-2px);
	border-color: #d69841;
	background: #d69841;
	color: #111416 !important;
}


/* =========================================================
   KNAPPER
   ========================================================= */

.tosk-benefits__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 45px;
	padding: 0 18px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition:
		transform .2s ease,
		background-color .2s ease,
		border-color .2s ease,
		color .2s ease,
		box-shadow .2s ease;
}

.tosk-benefits__button:hover {
	transform: translateY(-2px);
}

.tosk-benefits__button--primary {
	min-height: 52px;
	padding: 0 24px;
	border: 1px solid #d69841;
	background: #d69841;
	box-shadow: 0 10px 28px rgba(214, 152, 65, .18);
	color: #111416 !important;
	white-space: nowrap;
}

.tosk-benefits__button--primary:hover {
	border-color: #e2aa5c;
	background: #e2aa5c;
	box-shadow: 0 14px 34px rgba(214, 152, 65, .25);
}

.tosk-benefits__button--secondary {
	border: 1px solid rgba(214, 152, 65, .42);
	background: rgba(214, 152, 65, .035);
	color: #d69841 !important;
}

.tosk-benefits__button--secondary:hover {
	border-color: #d69841;
	background: #d69841;
	color: #111416 !important;
}


/* =========================================================
   SHARE50
   ========================================================= */

.tosk-benefits__campaign {
	margin: -18px 0 58px;
}


/* =========================================================
   FORDELSGRID
   ========================================================= */

.tosk-benefits__grid-heading {
	max-width: 800px;
	margin-bottom: 31px;
}

.tosk-benefits__grid-heading .tosk-benefits__title {
	font-weight: 400;
}

.tosk-benefits__grid-heading p {
	margin: 14px 0 0;
	color: rgba(238, 238, 234, .62);
	font-size: 14px;
	line-height: 1.7;
}

.tosk-benefits__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 25px;
	align-items: stretch;
}

.tosk-benefits__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .075);
	border-radius: 22px;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .006)),
		#15191c;
	box-shadow: 0 20px 48px rgba(0, 0, 0, .20);
	transition:
		transform .26s ease,
		border-color .26s ease,
		box-shadow .26s ease;
}

.tosk-benefits__card:hover {
	transform: translateY(-5px);
	border-color: rgba(214, 152, 65, .20);
	box-shadow: 0 28px 62px rgba(0, 0, 0, .27);
}

.tosk-benefits__image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 220px;
	padding: 20px;
	overflow: hidden;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
	background:
		radial-gradient(circle at center, rgba(255, 255, 255, .055), transparent 68%),
		rgba(6, 8, 9, .20);
}

.tosk-benefits__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .35s ease;
}

.tosk-benefits__card:hover .tosk-benefits__image {
	transform: scale(1.025);
}

.tosk-benefits__card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 25px 24px 24px;
}

.tosk-benefits__card-title {
	margin: 0;
	color: #fafaf6;
	font-size: 20px;
	font-weight: 750;
	line-height: 1.25;
}

.tosk-benefits__card-divider {
	width: 42px;
	height: 3px;
	margin: 18px 0;
	background: #a71916;
}

.tosk-benefits__card-text {
	--tosk-benefit-preview-lines: 9;
	margin-bottom: 0;
	color: rgba(238, 238, 234, .67);
	font-size: 14px;
	line-height: 1.68;
}

.tosk-benefits__description {
	margin-bottom: 24px;
}

.tosk-benefits__description.is-collapsible:not(.is-expanded) .tosk-benefits__card-text {
	max-height: calc(1.68em * var(--tosk-benefit-preview-lines));
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, #000 0, #000 78%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 0, #000 78%, transparent 100%);
}

.tosk-benefits__text-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #d69841;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	transition: color .2s ease;
}

.tosk-benefits__text-toggle[hidden] {
	display: none;
}

.tosk-benefits__text-toggle:hover,
.tosk-benefits__text-toggle:focus-visible {
	color: #efb35f;
}

.tosk-benefits__text-toggle:focus-visible {
	outline: 2px solid rgba(214, 152, 65, .65);
	outline-offset: 5px;
}

.tosk-benefits__text-toggle i {
	font-size: 10px;
	transition: transform .22s ease;
}

.tosk-benefits__description.is-expanded .tosk-benefits__text-toggle i {
	transform: rotate(180deg);
}

.tosk-benefits__card-action {
	margin-top: auto;
}


/* =========================================================
   RESPONSIVT
   ========================================================= */

@media (max-width: 991px) {
	.tosk-benefits {
		padding: 62px 0 72px;
	}

	.tosk-benefits__cta {
		grid-template-columns: 1fr;
		gap: 26px;
		padding: 34px;
	}

	.tosk-benefits__cta-action {
		justify-content: flex-start;
	}

	.tosk-benefits__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.tosk-benefits {
		padding: 48px 0 58px;
	}

	.tosk-benefits__cta,
	.tosk-benefits__intro-card {
		padding: 27px 22px;
		border-radius: 19px;
	}

	.tosk-benefits__cta {
		gap: 23px;
		margin-bottom: 19px;
	}

	.tosk-benefits__cta::before {
		left: 22px;
		width: 60px;
	}

	.tosk-benefits__cta-title,
	.tosk-benefits__title {
		font-size: 28px;
	}

	.tosk-benefits__cta-text,
	.tosk-benefits__intro-text {
		font-size: 14px;
		line-height: 1.72;
	}

	.tosk-benefits__intro-card {
		margin-bottom: 42px;
	}

	.tosk-benefits__socials {
		flex-direction: column;
		align-items: stretch;
	}

	.tosk-benefits__social,
	.tosk-benefits__button {
		width: 100%;
	}

	.tosk-benefits__campaign {
		margin: -5px 0 44px;
	}

	.tosk-benefits__grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.tosk-benefits__card {
		border-radius: 19px;
	}

	.tosk-benefits__image-wrap {
		height: 205px;
	}

	.tosk-benefits__card-body {
		padding: 22px 20px;
	}

	.tosk-benefits__card-text {
		--tosk-benefit-preview-lines: 11;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tosk-benefits__social,
	.tosk-benefits__button,
	.tosk-benefits__card,
	.tosk-benefits__image,
	.tosk-benefits__text-toggle i {
		transition: none;
	}
}

