/*
 * Pippin Pip: the Pip™ section, made for a dark section (Section- Dark). Meet Pip (Pip and a chat bubble that types),
 * How Pip works (a paper trail of steps Pip flies along, and a scene per step), Built to assist (three cards) and the
 * partner panel (Pip at the hub of what she connects with). Colours and type follow the Kit globals.
 */
.pt-pip {
	--pt-p-white: var(--e-global-color-836a0d3, #fff);
	--pt-p-soft: var(--e-global-color-7d0cc00, rgba(255, 255, 255, 0.78));
	--pt-p-eyebrow: var(--e-global-color-5ab0002, #76d0f4);
	--pt-p-blue: var(--e-global-color-b65e592, #76d0f4);
	--pt-p-focus: var(--e-global-color-primary, #37aada);
	--pt-p-accent: var(--e-global-color-accent, #d83040);
	--pt-p-accent-hover: var(--e-global-color-e7ce58e, #b8202f);
	--pt-p-text: var(--e-global-color-text, #22294e);
	--pt-p-card: var(--e-global-color-71b1a00, #1c2541);
	--pt-p-line: rgba(255, 255, 255, 0.12);
	--pt-p-ease: cubic-bezier(0.22, 1, 0.36, 1);
	display: flex;
	flex-direction: column;
	gap: clamp(72px, 9vw, 128px);
	color: var(--pt-p-soft);
}
.pt-pip p {
	margin: 0;
}
.pt-pip .pt-pip__eyebrow {
	color: var(--pt-p-eyebrow);
	font-family: var(--e-global-typography-5ab0d00-font-family), sans-serif;
	font-size: var(--e-global-typography-5ab0d00-font-size, 0.875rem);
	font-weight: var(--e-global-typography-5ab0d00-font-weight, 700);
	letter-spacing: var(--e-global-typography-5ab0d00-letter-spacing, 0.16em);
	line-height: 1.4;
	text-transform: uppercase;
}
.pt-pip :is(.pt-pip__title, .pt-pip__subtitle, .pt-pip__step-title, .pt-pip__card-title) {
	margin: 0;
	color: var(--pt-p-white);
	text-wrap: balance;
}
/* The part headings (How Pip works, Built to assist, the partner panel) read as headings of their own. */
.pt-pip .pt-pip__subtitle {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.15;
}

/* Meet Pip */
.pt-pip__meet {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}
.pt-pip__intro {
	display: flex;
	flex-direction: column;
	gap: var(--pt-section-xs, 16px);
}
.pt-pip .pt-pip__lead {
	color: var(--pt-p-soft);
	font-size: var(--e-global-typography-3bc6d1e-font-size, 1.375rem);
	line-height: 1.5;
}
.pt-pip__stage {
	position: relative;
	display: flex;
	justify-content: center;
	min-height: 440px;
}
.pt-pip__glow {
	position: absolute;
	inset: 6% 8% 10%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(63, 134, 214, 0.45), rgba(63, 134, 214, 0) 70%);
	filter: blur(8px);
}
.pt-pip img.pt-pip__bird {
	position: relative;
	width: min(100%, 420px);
	height: auto;
	animation: pt-pip-bob 6s ease-in-out infinite;
	filter: drop-shadow(0 28px 32px rgba(0, 0, 0, 0.35));
}
@keyframes pt-pip-bob {
	50% {
		transform: translateY(-12px) rotate(-1.5deg);
	}
}

/* The chat card: her crest spins while she works, then her messages type in. */
.pt-pip__chat {
	position: absolute;
	bottom: -4%;
	left: -10%;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: min(340px, 86%);
	padding: 16px;
	border-radius: 18px;
	background: var(--e-global-color-5f0ace0, #fff);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	color: var(--pt-p-text);
}
.pt-pip .pt-pip__chat-name {
	color: var(--pt-p-text);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.pt-pip .pt-pip__status {
	display: none;
	align-items: center;
	gap: 8px;
	color: var(--e-global-color-e4427e8, #757575);
	font-size: 0.875rem;
}
.pt-pip__messages {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.pt-pip .pt-pip__message {
	padding: 10px 14px;
	border-radius: 14px 14px 14px 4px;
	background: var(--e-global-color-2c7a47e, #e4f6fe);
	color: var(--pt-p-text);
	font-size: 0.9375rem;
	line-height: 1.45;
}
/* With the script: the status shows first, then each message appears as it is typed. */
.pt-pip.is-live .pt-pip__status {
	display: flex;
}
.pt-pip.is-live .pt-pip__message:not(.is-shown) {
	display: none;
}
.pt-pip.is-live.is-said .pt-pip__status {
	display: none;
}
.pt-pip__message.is-typing::after {
	content: "";
	display: inline-block;
	width: 2px;
	height: 1em;
	margin-left: 2px;
	background: currentColor;
	vertical-align: -0.15em;
	animation: pt-pip-caret 0.8s steps(1) infinite;
}
@keyframes pt-pip-caret {
	50% {
		opacity: 0;
	}
}

/* The Pip spinner (Figma: Pip Spinner): her crest turns around her eye, fast then slow, colours chasing. */
.pt-pip__spinner {
	display: inline-flex;
	flex: none;
	width: 24px;
	height: 24px;
}
.pt-pip__spinner svg {
	width: 100%;
	height: 100%;
	overflow: visible;
}
.pt-pip__crest {
	transform-box: view-box;
	transform-origin: 12px 12px;
	animation: pt-pip-turn 1.8s cubic-bezier(0.25, 0.75, 0.55, 1) infinite;
}
.pt-pip__feather path {
	animation: pt-pip-feather 3.6s linear infinite;
}
.pt-pip__feather:nth-child(2) path {
	animation-delay: -1.2s;
}
.pt-pip__feather:nth-child(3) path {
	animation-delay: -2.4s;
}
@keyframes pt-pip-turn {
	to {
		transform: rotate(360deg);
	}
}
@keyframes pt-pip-feather {
	0%,
	100% {
		fill: #d7262b;
	}
	33% {
		fill: #131628;
	}
	66% {
		fill: #3f86d6;
	}
}

/* How Pip works */
.pt-pip__how,
.pt-pip__assist {
	display: flex;
	flex-direction: column;
	gap: clamp(28px, 3vw, 40px);
}
.pt-pip__head {
	display: flex;
	flex-direction: column;
	gap: var(--pt-section-xs, 16px);
	max-width: 760px;
}
.pt-pip .pt-pip__head-lead {
	font-size: 1.125rem;
	line-height: 1.6;
}

/* The trail: a paper path through the step dots; Pip flies to the chosen one and the path fills behind her. */
.pt-pip__trail {
	--p: 0;
	position: relative;
	padding-top: 52px;
}
.pt-pip__path {
	position: absolute;
	top: calc(52px + 21px);
	right: calc(100% / var(--pt-pip-n) / 2);
	left: calc(100% / var(--pt-pip-n) / 2);
	height: 3px;
	border-radius: 3px;
	background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 10px, transparent 10px 18px);
}
.pt-pip__path-fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: calc(var(--p) * 100%);
	border-radius: inherit;
	background: linear-gradient(90deg, var(--pt-p-blue), var(--pt-p-focus));
	transition: width 0.9s var(--pt-p-ease);
}
.pt-pip__flyer {
	position: absolute;
	top: 0;
	left: calc(100% / var(--pt-pip-n) / 2 + (100% - 100% / var(--pt-pip-n)) * var(--p));
	width: 60px;
	height: 60px;
	transform: translateX(-50%);
	transition: left 0.9s var(--pt-p-ease);
	pointer-events: none;
}
.pt-pip__flyer img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	animation: pt-pip-hover 1.6s ease-in-out infinite;
	filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35));
}
@keyframes pt-pip-hover {
	50% {
		transform: translateY(-5px);
	}
}
.pt-pip__tabs {
	position: relative;
	display: grid;
	grid-template-columns: repeat(var(--pt-pip-n), minmax(0, 1fr));
}
.pt-pip .pt-pip__tab,
.pt-pip .pt-pip__tab:is(:hover, :focus, :active) {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	min-height: 0;
	margin: 0;
	padding: 0 4px;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--pt-p-soft);
	font: inherit;
	cursor: pointer;
}
.pt-pip__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: var(--e-global-color-5ec0004, #0f1328);
	color: var(--pt-p-white);
	font-size: 0.8125rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--pt-p-ease);
}
.pt-pip__tab-label {
	font-size: 1rem;
	font-weight: 600;
	transition: color 0.3s ease;
}
.pt-pip .pt-pip__tab:hover .pt-pip__dot {
	border-color: var(--pt-p-blue);
}
.pt-pip .pt-pip__tab.is-done .pt-pip__dot {
	border-color: var(--pt-p-focus);
	background: var(--pt-p-focus);
}
.pt-pip .pt-pip__tab[aria-selected="true"] .pt-pip__dot {
	border-color: var(--pt-p-white);
	background: var(--pt-p-white);
	color: var(--e-global-color-5ec0004, #0f1328);
	transform: scale(1.1);
}
.pt-pip .pt-pip__tab[aria-selected="true"] .pt-pip__tab-label {
	color: var(--pt-p-white);
}
.pt-pip .pt-pip__tab:focus-visible {
	outline: none;
}
.pt-pip .pt-pip__tab:focus-visible .pt-pip__dot {
	outline: 2px solid var(--pt-p-blue);
	outline-offset: 3px;
}

/* Each step: its scene and what Pip does there. */
.pt-pip__panel {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: center;
	animation: pt-pip-in 0.6s var(--pt-p-ease);
}
.pt-pip__panel[hidden] {
	display: none;
}
@keyframes pt-pip-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}
.pt-pip__scene {
	overflow: hidden;
	border-radius: 20px;
	aspect-ratio: 16 / 10;
	background: var(--pt-p-card);
}
.pt-pip__scene img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.pt-pip__copy {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.pt-pip .pt-pip__step {
	color: var(--pt-p-blue);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.pt-pip .pt-pip__step-title {
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	line-height: 1.2;
}
.pt-pip .pt-pip__step-text {
	font-size: 1.0625rem;
	line-height: 1.65;
}
.pt-pip .pt-pip__says {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	margin-top: 8px;
}
.pt-pip img.pt-pip__avatar {
	flex: none;
	width: 44px;
	height: 44px;
	padding: 3px;
	border-radius: 999px;
	background: var(--e-global-color-2c7a47e, #e4f6fe);
	object-fit: contain;
}
.pt-pip__says > span {
	padding: 12px 16px;
	border-radius: 16px 16px 16px 4px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--pt-p-white);
	font-size: 1rem;
	font-style: italic;
	line-height: 1.5;
}

/* Built to assist */
.pt-pip__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--pt-columns, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.pt-pip__card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: clamp(24px, 2.5vw, 32px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	background: var(--pt-p-card);
}
.pt-pip__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 8px;
	border-radius: 12px;
	background: rgba(118, 208, 244, 0.14);
	color: var(--pt-p-blue);
}
.pt-pip__icon svg {
	width: 24px;
	height: 24px;
}
.pt-pip .pt-pip__card-label {
	color: var(--pt-p-blue);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.pt-pip .pt-pip__card-title {
	font-size: 1.25rem;
	line-height: 1.3;
}
.pt-pip .pt-pip__card-text {
	font-size: 1rem;
	line-height: 1.6;
}

/* Data promise: the shield and heading on the left, the promises on the right, in a quiet bordered panel. */
.pt-pip__trust {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: center;
	padding: clamp(28px, 4vw, 56px);
	border: 1px solid rgba(118, 208, 244, 0.2);
	border-radius: 24px;
	background: rgba(118, 208, 244, 0.05);
}
.pt-pip__trust-head {
	display: flex;
	flex-direction: column;
	gap: var(--pt-section-xs, 16px);
}
.pt-pip__shield {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 8px;
	border-radius: 18px;
	background: linear-gradient(145deg, var(--pt-p-blue), var(--pt-p-focus));
	box-shadow: 0 12px 30px rgba(55, 170, 218, 0.3);
	color: var(--e-global-color-5ec0004, #0f1328);
}
.pt-pip__shield svg {
	width: 32px;
	height: 32px;
}
.pt-pip__promises {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pt-pip__promise {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 0;
}
.pt-pip__promise .pt-pip__icon {
	flex: none;
	margin-bottom: 0;
}
.pt-pip__promise > div {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Partner panel: the copy, and Pip at the hub of what she connects with. */
.pt-pip__partner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
	overflow: hidden;
	padding: clamp(32px, 5vw, 64px);
	border: 1px solid rgba(118, 208, 244, 0.2);
	border-radius: 30px;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(63, 134, 214, 0.35), rgba(63, 134, 214, 0) 55%),
		linear-gradient(160deg, #1d2b5e, var(--e-global-color-5ec0004, #0f1328) 75%);
}
.pt-pip__partner-copy {
	display: flex;
	flex-direction: column;
	gap: var(--pt-section-xs, 16px);
}
.pt-pip .pt-pip__partner-text {
	font-size: 1.125rem;
	line-height: 1.6;
}
.pt-pip__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin-top: 8px;
}
.pt-pip a.pt-pip__button {
	display: inline-flex;
	align-items: center;
	padding: 14px 28px;
	border-radius: 999px;
	background: var(--pt-p-accent);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease;
}
.pt-pip a.pt-pip__button:hover {
	background: var(--pt-p-accent-hover);
	color: #fff;
}
.pt-pip a.pt-pip__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--pt-p-blue);
	font-weight: 600;
	text-decoration: none;
}
.pt-pip a.pt-pip__more span {
	transition: transform 0.2s ease;
}
.pt-pip a.pt-pip__more:hover {
	color: var(--pt-p-white);
}
.pt-pip a.pt-pip__more:hover span {
	transform: translateX(3px);
}
.pt-pip__hub {
	--r: 140px;
	position: relative;
	width: calc(var(--r) * 2 + 120px);
	max-width: 100%;
	aspect-ratio: 1;
	justify-self: center;
}
.pt-pip__hub-ring {
	position: absolute;
	inset: 60px;
	border: 2px dashed rgba(118, 208, 244, 0.35);
	border-radius: 50%;
	animation: pt-pip-turn 60s linear infinite;
}
.pt-pip__hub-core {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 132px;
	height: 132px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fff, var(--e-global-color-2c7a47e, #e4f6fe));
	box-shadow: 0 0 0 10px rgba(118, 208, 244, 0.12), 0 20px 40px rgba(0, 0, 0, 0.35);
	transform: translate(-50%, -50%);
}
.pt-pip__hub-core img {
	width: 88%;
	height: auto;
	margin-top: 10%;
}
.pt-pip__chip {
	position: absolute;
	top: 50%;
	left: 50%;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	background: rgba(15, 19, 40, 0.85);
	color: var(--pt-p-white);
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
	transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
}

/* Tablet: Pip under the intro, scenes above their words. */
@media (max-width: 1024px) {
	.pt-pip__meet,
	.pt-pip__panel,
	.pt-pip__trust,
	.pt-pip__partner {
		grid-template-columns: minmax(0, 1fr);
	}
	.pt-pip__stage {
		min-height: 0;
		padding-bottom: 24px;
	}
	.pt-pip__chat {
		left: auto;
		right: 0;
	}
	.pt-pip__cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}
}

/* Phone: the chat card under Pip, smaller dots and labels, one card per row, a smaller hub. */
@media (max-width: 767px) {
	.pt-pip .pt-pip__lead {
		font-size: 1.125rem;
	}
	.pt-pip__stage {
		flex-direction: column;
		align-items: center;
		padding-bottom: 0;
	}
	.pt-pip img.pt-pip__bird {
		width: min(72%, 300px);
	}
	.pt-pip__chat {
		position: relative;
		right: auto;
		bottom: auto;
		width: 100%;
		margin-top: -24px;
	}
	.pt-pip__trail {
		padding-top: 38px;
	}
	.pt-pip__path {
		top: calc(38px + 17px);
	}
	.pt-pip__flyer {
		width: 40px;
		height: 40px;
	}
	.pt-pip__dot {
		width: 36px;
		height: 36px;
		font-size: 0.75rem;
	}
	.pt-pip__tab-label {
		font-size: 0.8125rem;
	}
	.pt-pip__cards {
		grid-template-columns: minmax(0, 1fr);
	}
	.pt-pip__hub {
		--r: 104px;
	}
	.pt-pip__hub-core {
		width: 104px;
		height: 104px;
	}
	.pt-pip__chip {
		padding: 6px 10px;
		font-size: 0.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pt-pip img.pt-pip__bird,
	.pt-pip__flyer img,
	.pt-pip__hub-ring,
	.pt-pip__panel {
		animation: none;
	}
	.pt-pip__crest {
		animation: none;
	}
	.pt-pip__feather path {
		animation-duration: 7.2s;
	}
	.pt-pip__flyer,
	.pt-pip__path-fill {
		transition: none;
	}
}
