/*
 * Hero.
 * Mobile: 390px frame "Mobile / Homepage > Hero". Desktop: 1440px frame "Homepage > Frame 4".
 */

.syb-hero {
	padding-block: 32px 40px;
}

/* Under a transparent header the hero starts at the very top of the page. */
.has-transparent-header .site-main > .syb-hero:first-child {
	padding-top: calc(var(--header-h) + 32px);
}

.syb-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.syb-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	width: 100%;
	max-width: 620px;
	text-align: center;
}

.syb-hero__heading {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.syb-hero__badge {
	padding: 5px 12px;
	border: 1px solid var(--c-border);
	border-radius: 20px;
	background: var(--c-tag);
	color: var(--c-blue);
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
}

.syb-hero__eyebrow {
	color: var(--c-blue);
	font-size: 18px;
	font-weight: 600;
	line-height: 26px;
}

.syb-hero__title {
	color: var(--c-ink);
}

.syb-hero__accent {
	display: block;
	color: var(--c-blue);
}

.syb-hero__text {
	color: var(--c-body);
	font-size: 16px;
	line-height: 24px;
}

.syb-hero__buttons {
	padding-top: 6px;
}

.syb-hero__stats {
	margin-top: 32px;
}

.syb-hero__media {
	width: 100%;
	margin-top: 32px;
}

.syb-hero__media img {
	width: 100%;
	border-radius: var(--radius-lg);
}

/* Headline size: large display */

.syb-hero--title-display .syb-hero__title {
	font-size: 32px;
	line-height: 40px;
}

/* Backgrounds */

.syb-hero--soft {
	background: linear-gradient(180deg, var(--c-white) 0%, var(--c-soft) 100%);
}

.syb-hero--bars {
	background: var(--c-white) url("../../img/hero-bars.webp") center top / cover no-repeat;
}

/* The image stops just short of white; blend its last pixels into the page. */
.syb-hero--bars::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 48px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--c-white) 100%);
	pointer-events: none;
}

.syb-hero--bars .syb-hero__inner {
	position: relative;
	z-index: 1;
}

.syb-hero--bars .syb-hero__title,
.syb-hero--bars .syb-hero__accent,
.syb-hero--bars .syb-hero__eyebrow,
.syb-hero--bars .syb-hero__text {
	color: var(--c-white);
}

.syb-hero--bars .syb-hero__badge {
	border-color: var(--c-white);
	background: rgba(255, 255, 255, 0.18);
	color: var(--c-white);
}

@media (min-width: 768px) {
	.syb-hero {
		padding-block: 75px 40px;
	}

	.has-transparent-header .site-main > .syb-hero:first-child {
		padding-top: calc(65px + 75px);
	}

	.syb-hero__copy {
		gap: 21px;
	}

	.syb-hero__heading {
		gap: 16px;
	}

	.syb-hero__badge {
		padding: 6px 12px;
		border-radius: 28px;
		font-size: 14px;
		font-weight: 600;
	}

	.syb-hero__eyebrow {
		font-size: 24px;
		line-height: 32px;
	}

	.syb-hero__text {
		font-size: 18px;
		font-weight: 500;
		line-height: 26px;
	}

	.syb-hero__buttons {
		padding-top: 9px;
	}

	.syb-hero__stats {
		align-content: center;
		min-height: 130px;
		margin-top: 106px;
	}

	.syb-hero--title-display .syb-hero__title {
		font-size: 46px;
		font-weight: 700;
		line-height: 58px;
		letter-spacing: -0.01em;
	}

	/* The outline is drawn inside the pill, so it stays 30px tall as in the design. */
	.syb-hero--bars .syb-hero__badge {
		border: 0;
		background: rgba(255, 255, 255, 0.28);
		box-shadow: inset 0 0 0 0.8px #3141ac;
	}
}

/* Breadcrumb above the eyebrow */

.syb-hero__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: var(--c-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}

.syb-hero__crumbs a,
.syb-hero__crumbs > span:first-child {
	color: var(--c-mute);
	text-decoration: none;
}

.syb-hero__crumbs a:hover {
	color: var(--c-blue);
}

.syb-hero__crumbs svg {
	color: var(--c-mute);
}

/* Highlights: short points with a check mark under the buttons */

.syb-hero__highlights {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	color: var(--c-body);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	list-style: none;
}

.syb-hero__highlights li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.syb-hero__highlights svg {
	flex: none;
	color: var(--c-primary);
}

/* Key numbers as a small row under the buttons */

.syb-hero__mini {
	display: flex;
	justify-content: center;
	gap: 16px;
	width: 100%;
	margin: 6px 0 0;
}

.syb-hero__mini > div {
	display: flex;
	flex-direction: column-reverse; /* the number sits above its label */
	gap: 2px;
	min-width: 0;
	text-align: left;
}

.syb-hero__mini > div + div {
	padding-left: 16px;
	border-left: 1px solid var(--c-border);
}

.syb-hero__mini dd {
	margin: 0;
	color: var(--c-blue);
	font-size: 20px;
	font-weight: 600;
	line-height: 28px;
}

.syb-hero__mini dt {
	color: var(--c-body);
	font-size: 12px;
	line-height: 16px;
}

/* Photo mosaic: one tall photo beside two stacked ones, with a floating note */

.syb-hero__mosaic {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: 220fr 240fr;
	gap: 12px;
	aspect-ratio: 620 / 480;
}

.syb-hero__photo:first-child {
	grid-row: 1 / span 2;
	margin-top: 6.45%;
}

.syb-hero__note {
	position: absolute;
	bottom: 6.25%;
	left: 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-md);
	background: var(--c-white);
	box-shadow: var(--shadow-lg);
	text-align: left;
}

.syb-hero__note-dot {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #22c55e;
}

.syb-hero__note > span:last-child {
	display: flex;
	flex-direction: column;
}

.syb-hero__note strong {
	color: var(--c-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
}

.syb-hero__note strong + span {
	color: var(--c-body);
	font-size: 12px;
	line-height: 16px;
}

@media (min-width: 768px) {
	.syb-hero__mini {
		gap: 28px;
		margin-top: 12px;
	}

	.syb-hero__mini > div + div {
		padding-left: 28px;
	}

	.syb-hero__mini dd {
		font-size: 24px;
		line-height: 32px;
	}

	.syb-hero__mini dt {
		font-size: 14px;
		line-height: 20px;
	}

	.syb-hero__mosaic {
		gap: 20px;
	}
}

/* Layout: text left, image right */

@media (min-width: 1000px) {
	.syb-hero--split {
		padding-block: 72px 80px;
	}

	.syb-hero--split .syb-hero__inner {
		display: grid;
		grid-template-columns: minmax(0, 580fr) minmax(0, 600fr);
		align-items: center;
		gap: 60px;
	}

	.syb-hero--split.syb-hero--mosaic .syb-hero__inner {
		grid-template-columns: minmax(0, 560fr) minmax(0, 620fr);
	}

	.syb-hero--split .syb-hero__media img {
		border-radius: 24px;
	}

	.syb-hero--split .syb-hero__mini,
	.syb-hero--split .syb-hero__crumbs,
	.syb-hero--split .syb-hero__highlights {
		justify-content: flex-start;
	}

	.syb-hero--split .syb-hero__highlights {
		margin-top: 4px;
	}

	.syb-hero--split .syb-hero__note {
		left: -28px;
	}

	/* The image takes the right side, so only the rings on the left stay. */
	.syb-hero--split.syb-hero--rings::before {
		display: none;
	}

	.syb-hero--split.syb-hero--rings::after {
		top: 232px;
		left: -380px;
	}

	.syb-hero--split .syb-hero__copy {
		align-items: flex-start;
		max-width: none;
		text-align: left;
	}

	.syb-hero--split .syb-hero__buttons {
		justify-content: flex-start;
	}

	.syb-hero--split .syb-hero__media {
		margin-top: 0;
	}

	.syb-hero--split .syb-hero__stats {
		grid-column: 1 / -1;
		margin-top: 24px;
	}
}

/* Text width of the centred layout */

.syb-hero--center.syb-hero--w-wide .syb-hero__copy {
	max-width: 769px;
}

@media (min-width: 768px) {
	/* On a light background the hero copy follows the page type scale (Capabilities hero). */
	.syb-hero--soft .syb-hero__copy,
	.syb-hero--white .syb-hero__copy {
		gap: 28px;
	}

	.syb-hero--soft .syb-hero__heading,
	.syb-hero--white .syb-hero__heading {
		gap: 20px;
	}

	.syb-hero--soft .syb-hero__eyebrow,
	.syb-hero--white .syb-hero__eyebrow {
		line-height: 38px;
	}

	.syb-hero--soft .syb-hero__title,
	.syb-hero--bars:not(.syb-hero--title-display) .syb-hero__title,
	.syb-hero--white .syb-hero__title {
		line-height: 38px;
	}

	.syb-hero--soft .syb-hero__text,
	.syb-hero--white .syb-hero__text {
		font-weight: 400;
	}

	.syb-hero--soft .syb-hero__buttons,
	.syb-hero--white .syb-hero__buttons {
		padding-top: 0;
	}
}

/* Background: soft gradient with ring supergraphics in two corners */

.syb-hero--rings {
	overflow: hidden;
}

.syb-hero--rings::before,
.syb-hero--rings::after {
	content: "";
	position: absolute;
	width: 680px;
	height: 680px;
	border-radius: 50%;
	background: repeating-radial-gradient(circle, rgba(36, 124, 239, 0) 0 33px, rgba(36, 124, 239, 0.16) 33px 34px);
	-webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%);
	mask-image: radial-gradient(circle, #000 20%, transparent 70%);
	pointer-events: none;
}

.syb-hero--rings::before {
	top: -300px;
	right: -350px;
}

.syb-hero--rings::after {
	top: 189px;
	left: -360px;
}

.syb-hero--rings .syb-hero__inner {
	position: relative;
	z-index: 1;
}

@media (min-width: 768px) {
	.syb-hero--soft .syb-hero__stats.syb-numbers--card,
	.syb-hero--white .syb-hero__stats.syb-numbers--card {
		min-height: 0;
		margin-top: 48px;
	}
}

/* Article search and category filter under the hero text (Insights). */

.syb-hero .article-filter {
	margin-top: 24px;
}

@media (min-width: 768px) {
	.syb-hero .article-filter {
		margin-top: 36px;
	}
}

/*
 * A hero with a background of its own (Style > Background; the layer itself is styled in
 * builder.css). The fade and the rings belong to the backgrounds the hero comes with.
 */

.syb-hero.syb-has-bg {
	overflow: hidden;
}

.syb-hero.syb-has-bg::before,
.syb-hero.syb-has-bg::after {
	display: none;
}

/*
 * While the image or video of a "Blue with bars" hero is still loading, show the same
 * blue-to-white fall as the bars picture, so white text at the top and blue numbers at
 * the bottom are readable from the first moment. Only when no colour was chosen for that.
 */
.syb-hero--bars > .syb-bg--bare {
	background-image: linear-gradient(180deg, #0067b7 0%, #0067b7 34%, #4090dd 55%, #83caff 74%, #e4f3ff 90%, #ffffff 100%);
}
/*
 * Phones: everything in the hero lines up on the left edge, the buttons sit side by
 * side at their own width, the badge is plain text and the key numbers stand in two
 * open columns (number above its label) instead of a white card.
 */

@media (max-width: 767.98px) {
	.syb-hero__inner {
		align-items: stretch;
	}

	.syb-hero__copy {
		align-items: flex-start;
		max-width: none;
		text-align: left;
	}

	.syb-hero__heading {
		align-items: flex-start;
	}

	.syb-hero__copy .syb-buttons {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 12px;
		width: auto;
	}

	.syb-hero__copy .syb-buttons .btn {
		width: auto;
	}

	/* The badge is a line of text here: its pill would wrap over two lines. */
	.syb-hero .syb-hero__badge {
		padding: 0;
		border: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	/* Key numbers: no card, two open columns, each number above what it counts. */
	.syb-hero__stats.syb-numbers {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 24px;
		overflow: visible;
		border: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
	}

	.syb-hero__stats .syb-numbers__item {
		align-items: flex-start;
		/* The item is laid out bottom-up (label, then number), so its end is the top. */
		justify-content: flex-end;
		gap: 4px;
		padding: 0;
		text-align: left;
	}

	.syb-hero__stats .syb-numbers__item:nth-child(n + 3) {
		border-top: 0;
	}

	.syb-hero__stats .syb-numbers__item:nth-child(even)::before {
		display: none;
	}

	/* 20px keeps "Rp10.3 Billion" on one line in a half-width column. */
	.syb-hero__stats .syb-numbers__value {
		font-size: 20px;
		line-height: 28px;
		white-space: nowrap;
	}

	.syb-hero__stats .syb-numbers__label {
		font-size: 14px;
		line-height: 20px;
	}
}
