/*--------------------------------------------------------------
# Inner Circle — The Welcome Kit (everything included)
# An open member kit: a black box with its lid leaning behind it,
# a tray of four inserts (one per item, with its monthly value) and
# the totals and join button on the box's front edge.
--------------------------------------------------------------*/

/* ── Section ──
   100px top and bottom, the same as the value breakdown it replaced, so
   the gaps to .ic-biz above and .ic-faq below are unchanged. Below 992px
   the page-level rhythm in inner-circle-rhythm.css takes over. */
.ic-kit {
	/* The theme loads no monospace font; the same system stack the other
	   concept-built sections use. */
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	/* Brushed black metal, the finish of the card in the hero */
	--ic-kit-metal: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px), linear-gradient(135deg, #3C3C3C, #151515 52%, #2B2B2B);

	background: var(--tpp-white);
	padding: 100px 0;
}

.ic-kit__container {
	width: 100%;
	max-width: var(--tpp-container-max);
	margin: 0 auto;
	padding: 0 var(--tpp-container-padding);
}

/* The page's section heading scale (see .ic-parts__heading) */
.ic-kit__heading {
	text-align: center;
	font-family: var(--tpp-font-heading);
	font-size: clamp(2rem, 4.5vw + 0.5rem, 3.5rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--tpp-black);
	margin: 0 0 56px;
}

.ic-kit__heading-accent {
	color: var(--tpp-text-light);
}


/* ──────────────────────────────────────────────
   The kit
   The top padding is the room the lid shows above the box.
   ────────────────────────────────────────────── */

.ic-kit__kit {
	position: relative;
	max-width: 1080px;
	margin: 0 auto;
	padding-top: 30px;
}

/* The lid, lifted off and leaning behind the box: it starts hidden behind
   the box's top edge and tips back into view as the kit is revealed. */
.ic-kit__lid {
	position: absolute;
	z-index: 0;
	top: 0;
	left: 4%;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	width: 44%;
	height: 150px;
	padding: 12px 22px;
	border-radius: 22px;
	background: var(--ic-kit-metal);
	box-shadow: 0 24px 40px -26px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
	transform: translateY(30px);
	transform-origin: 0 100%;
	transition: transform 1s var(--ease-out);
}

.ic-kit__kit.is-visible .ic-kit__lid {
	transform: rotate(-3.5deg);
}

/* Debossed into the lid, like the name on the card in the hero */
.ic-kit__lid-name,
.ic-kit__lid-tag {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--tpp-font-heading);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	color: #171717;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.14), 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.ic-kit__lid-tag {
	font-family: var(--mono);
	font-size: 0.5625rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.ic-kit__lid-plane {
	width: 14px;
	height: 14px;
	color: var(--tpp-accent);
	transform: rotate(45deg);
}

.ic-kit__box {
	position: relative;
	z-index: 1;
	padding: 16px;
	border-radius: 28px;
	background: linear-gradient(180deg, #262626, #121212);
	box-shadow: 0 56px 80px -52px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}


/* ──────────────────────────────────────────────
   The tray: four recessed slots, one insert standing in each
   ────────────────────────────────────────────── */

.ic-kit__tray {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 14px 14px 0;
	list-style: none;
	border-radius: 18px 18px 14px 14px;
	background: #E8E2D7;
	box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(0, 0, 0, 0.3);
}

/* Clips the insert's foot, so it stands down in the slot until it rises */
.ic-kit__slot {
	display: flex;
	overflow: hidden;
	margin: 0;
	padding: 12px 10px 0;
	border-radius: 12px 12px 0 0;
	background: #DCD5C7;
	box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.2);
}

.ic-kit__insert {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 248px;
	padding: 20px 18px 18px;
	border-radius: 10px 10px 0 0;
	background: linear-gradient(180deg, #FFFFFF, #FBF9F4);
	box-shadow: 0 14px 22px -14px rgba(0, 0, 0, 0.45);
	transform: translateY(22px);
	transition: transform 0.9s var(--ease-out);
	transition-delay: calc(0.35s + var(--insert-index, 0) * 0.1s);
}

.ic-kit__kit.is-visible .ic-kit__insert {
	transform: none;
}

.ic-kit__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--tpp-black);
	color: var(--tpp-accent);
}

.ic-kit__icon svg {
	width: 16px;
	height: 16px;
}

.ic-kit__title {
	margin: 16px 0 0;
	font-family: var(--tpp-font-heading);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.015em;
	color: var(--tpp-black);
}

.ic-kit__desc {
	margin: 6px 0 16px;
	font-family: var(--tpp-font-body);
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--tpp-text-light);
}

/* Pinned to the foot of the insert, so the four values line up */
.ic-kit__worth {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin: auto 0 0;
	padding-top: 14px;
	border-top: 1px dashed var(--tpp-border);
	font-family: var(--tpp-font-body);
	font-size: 0.75rem;
	line-height: 1.2;
	color: var(--tpp-text-light);
}

.ic-kit__amount {
	font-family: var(--tpp-font-heading);
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.035em;
	color: var(--tpp-black);
}


/* ──────────────────────────────────────────────
   The box's front edge: totals and join button
   ────────────────────────────────────────────── */

.ic-kit__lip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 28px;
	padding: 20px 6px 4px 18px;
}

.ic-kit__totals {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 40px;
	margin: 0;
}

.ic-kit__total-label {
	font-family: var(--mono);
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
}

.ic-kit__total-amount {
	margin: 4px 0 0;
	font-family: var(--tpp-font-heading);
	font-size: 1.625rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.035em;
	color: rgba(255, 255, 255, 0.62);
}

.ic-kit__total--price .ic-kit__total-amount {
	color: var(--tpp-white);
}

.ic-kit__join {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 8px 8px 22px;
	border-radius: var(--tpp-radius-pill);
	background: var(--tpp-accent);
	font-family: var(--tpp-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.25s ease;
}

/* style.css sets every link state to color: inherit, so each is restated */
.ic-kit__join,
.ic-kit__join:visited,
.ic-kit__join:hover,
.ic-kit__join:focus,
.ic-kit__join:active {
	color: var(--tpp-black);
}

.ic-kit__join:hover {
	background: var(--tpp-accent-dark);
}

/* The theme's black focus ring would vanish on the black box */
.ic-kit__join:focus-visible {
	outline: 2px solid var(--tpp-white);
	outline-offset: 3px;
}

.ic-kit__join-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--tpp-black);
	color: var(--tpp-accent);
}

.ic-kit__join-icon svg {
	width: 15px;
	height: 15px;
}


/* ──────────────────────────────────────────────
   Scroll-reveal
   .is-visible comes from js/inner-circle-welcome-kit.js: on the heading
   when it arrives, and on .ic-kit__kit, which lifts the lid and raises
   the inserts (see above).
   ────────────────────────────────────────────── */

.ic-kit__heading {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.7s var(--ease-out),
		transform 0.7s var(--ease-out);
}

.ic-kit__heading.is-visible {
	opacity: 1;
	transform: none;
}


/* ──────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────── */

/* Tablet (≤991px) — two by two */
@media screen and (max-width: 991px) {
	.ic-kit__tray {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding-bottom: 14px;
	}

	.ic-kit__lid {
		width: 60%;
	}
}

/* Mobile (≤767px) — one column, without the lid */
@media screen and (max-width: 767px) {
	.ic-kit__heading {
		font-size: clamp(1.75rem, 7vw, 2.5rem);
		margin-bottom: 36px;
	}

	.ic-kit__kit {
		padding-top: 0;
	}

	.ic-kit__lid {
		display: none;
	}

	.ic-kit__box {
		padding: 10px;
		border-radius: 22px;
	}

	.ic-kit__tray {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
		padding: 10px;
	}

	.ic-kit__slot {
		padding: 10px 8px 0;
	}

	.ic-kit__insert {
		min-height: 0;
	}

	.ic-kit__lip {
		padding: 18px 8px 6px;
	}

	.ic-kit__join {
		width: 100%;
		justify-content: space-between;
	}
}


/* ──────────────────────────────────────────────
   Reduced motion — lid off, inserts up, heading in place
   ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.ic-kit__heading,
	.ic-kit__lid,
	.ic-kit__insert {
		transition: none;
	}
}
