/* =========================================================================
   Product Updates (v2)  —  layered on top of home-v2.css (Uncut Sans,
   .hv-shell, the vertical frame rails on every `main > section`, sticky nav).

   Built from Figma "Product Updates" (8C41…, desktop 176:15771 / mobile
   176:16037). Dark hero over a light body: a product tab bar and a list of
   update cards (title + date + teal arrow), with Load more. Content is inset
   to the Figma 160px rail.
   ========================================================================= */

:root {
	--pu-teal: #2ad9c4;
	--pu-ink: #111;
	--pu-line: rgba(17, 17, 17, 0.1);
}

/* -------------------------------------------------------------------------
   HERO  (dark, centered)
   ------------------------------------------------------------------------- */
.pu-hero {
	background: #0e0e0e;
	color: #fff;
}
.pu-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
	padding-block: clamp(72px, 9vw, 120px);
}
.pu-hero__title {
	margin: 0;
	font-weight: 500;
	font-size: 80px;
	line-height: 1.4;
	letter-spacing: -1.6px;
	color: #fff;
}
.pu-hero__sub {
	margin: 0;
	max-width: 672px;
	font-weight: 400;
	font-size: 24px;
	line-height: 1.4;
	letter-spacing: -0.48px;
	color: #fff;
}

/* -------------------------------------------------------------------------
   BODY
   ------------------------------------------------------------------------- */
.pu-body {
	background: #fff;
	padding-block: 100px;
}
.pu-inner {
	max-width: min(1600px, 100%);
	margin-inline: auto;
}

/* ---- Tab bar (bordered strip, equal cells, active underline) ---- */
.pu-tabs {
	display: flex;
	border: 1px solid var(--pu-line);
	overflow-x: auto;
	overflow-y: hidden;
}
.pu-tab {
	position: relative;
	flex: 1 1 0;
	padding: 24px 32px;
	background: transparent;
	border: none;
	border-left: 1px solid var(--pu-line);
	font-family: inherit;
	font-weight: 400;
	font-size: 24px;
	line-height: 1.4;
	letter-spacing: -0.48px;
	color: rgba(17, 17, 17, 0.6);
	white-space: nowrap;
	text-align: center;
	cursor: pointer;
}
.pu-tab:first-child {
	border-left: none;
}
.pu-tab[aria-selected="true"] {
	color: var(--pu-ink);
}
.pu-tab[aria-selected="true"]::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--pu-teal);
}

/* ---- Update list ---- */
.pu-list {
	display: flex;
	flex-direction: column;
	gap: 37px;
	margin-top: 40px;
}
.pu-card {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 40px;
	background: #fff;
	border: 1px solid var(--pu-line);
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pu-card:hover {
	border-color: rgba(17, 17, 17, 0.2);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.pu-card__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
}
.pu-card__title {
	margin: 0;
	font-weight: 500;
	font-size: 25px;
	line-height: 1.2;
	color: var(--pu-ink);
}
.pu-card__arrow {
	flex: none;
	width: 40px;
	height: 40px;
}
.pu-card__date {
	font-weight: 400;
	font-size: 16px;
	letter-spacing: -0.16px;
	color: rgba(17, 17, 17, 0.4);
}
.pu-empty {
	padding: 48px 0;
	font-size: 16px;
	color: rgba(17, 17, 17, 0.5);
}

/* ---- Load more ---- */
.pu-loadmore {
	margin-top: 37px;
}
.pu-loadmore__btn {
	padding: 12px 24px;
	background: var(--pu-teal);
	border: none;
	border-radius: 2px;
	font-family: inherit;
	font-weight: 500;
	font-size: 16px;
	letter-spacing: -0.16px;
	color: #0a0a0a;
	cursor: pointer;
}
.pu-loadmore__btn:hover {
	filter: brightness(0.96);
}

/* -------------------------------------------------------------------------
   MOBILE  (Figma 176:16037 — 390px frame, 20px rails, wrapping text tabs)
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
	.pu-hero__inner {
		gap: 16px;
		padding-block: 40px;
	}
	.pu-hero__title {
		font-size: 32px;
		letter-spacing: -0.64px;
	}
	.pu-hero__sub {
		font-size: 14px;
		letter-spacing: -0.28px;
	}

	.pu-body {
		padding-block: 24px 40px;
	}

	.pu-tabs {
		flex-wrap: wrap;
		gap: 8px 4px;
		border: none;
		overflow: visible;
	}
	.pu-tab {
		flex: 0 0 auto;
		padding: 4px 8px;
		border-left: none;
		font-size: 12px;
	}
	.pu-tab[aria-selected="true"]::after {
		left: 8px;
		right: 8px;
		bottom: -2px;
	}

	.pu-list {
		gap: 16px;
		margin-top: 24px;
	}
	.pu-card {
		gap: 4px;
		padding: 16px;
	}
	.pu-card__row {
		align-items: flex-start;
		gap: 12px;
	}
	.pu-card__title {
		font-size: 16px;
		line-height: 1.2;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.pu-card__arrow {
		width: 24px;
		height: 24px;
		margin-top: 2px;
	}
	.pu-card__date {
		font-size: 12px;
	}
	.pu-loadmore {
		margin-top: 24px;
		display: flex;
		justify-content: center;
	}
}

/* =========================================================================
   FLUID DESKTOP BAND (769-1919)

   Type and section rhythm were frozen at their 1920 values all the way down to
   769px, so on a laptop the copy and spacing stayed full-size while the cards
   and imagery (width-driven) shrank around them.

   Max = the 1920 design value, so 1920 and above is byte-identical. Min = this
   file's own <=768 value, so the 768/769 boundary is continuous. Coefficient is
   design/19.2vw, which resolves to exactly the design value at 1920. Tracking
   is -0.02em at both type anchors, so one em value is correct at every step.
   Body copy and small UI are deliberately left fixed.
   ========================================================================= */
@media (min-width: 769px) and (max-width: 1919px) {
	/* Hero */
	.pu-hero__title {
		font-size: clamp(32px, 4.167vw, 80px);
		letter-spacing: -0.02em;
	}
	.pu-hero__sub {
		font-size: clamp(14px, 1.25vw, 24px);
		letter-spacing: -0.02em;
	}

	/* Section rhythm */
	.pu-body { padding-block: clamp(40px, 5.208vw, 100px); }
	.pu-tab { font-size: clamp(13px, 1.25vw, 24px); }
	.pu-card__title { font-size: clamp(16px, 1.302vw, 25px); }
}
