/* ============================================================
   Homepage - Hebrew
   Loaded after checker-new.css and built from its parts: the same frame, frame lines, dashed bands,
   type, buttons and tokens (--acn-*). This file only adds what the homepage has and the checker does not:
   the hero photo, the contact form, the request-handling tiles, the two-way switch, the reasons grid,
   the free-scan card and the case study. Every rule is scoped under .hp (the page <main>).
   ============================================================ */

/* ---------- Shared ---------- */

/* Text links in the deeper purple: the primary purple is 4.4:1 on the soft grey, this one is 5.8:1 */
.hp .hp-faq__a a,
.hp .acn-faq__more a,
.hp .tabnav-privacy-policy-link a {
	color: var(--acn-accent-hover);
}

.hp .hp-head__lead {
	max-width: 640px;
	margin-top: 18px;
	color: var(--acn-muted);
	font-size: 1.0625rem;
	line-height: 1.65;
}

.hp .acn-head--center .hp-head__lead {
	margin-inline: auto;
}

/* The frame lines run above every panel, so a white card never hides one */
.hp .acn-sec::before {
	z-index: 3;
}

/* ============================================================
   1. HERO: text and photo, four boxes, logo band
   ============================================================ */

.hp-top {
	padding-top: 68px;
	padding-bottom: 0;
}

/* On a wide screen the photo row is sized from the screen height, so the first screen ends about halfway
   through the second row of logos: the photo gets the room, the logos show there is more below */
@media (min-width: 992px) {
	.hp-top__grid {
		min-height: calc(100svh - 378px);
	}
}

/* The photo cell is flush with the header above, the boxes below and the frame line on the left */
.hp-top__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: stretch;
	gap: clamp(32px, 5vw, 80px);
	padding-inline-end: 0;
}

.hp-top__copy {
	align-self: center;
	padding-block: clamp(32px, 4vw, 56px);
}

.hp .hp-top__standards {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin-bottom: 22px;
	color: var(--acn-ink);
	font-size: 0.9375rem;
	font-weight: 500;
}

/* A short purple line before each standard, as on the current homepage */
.hp .hp-top__standards span {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.hp .hp-top__standards span::before {
	content: "";
	width: 16px;
	height: 2px;
	border-radius: 2px;
	background: var(--acn-accent);
}

.hp .hp-top__title {
	max-width: 13em;
	color: var(--acn-ink);
	font-size: clamp(2.375rem, 1.5rem + 2.6vw, 3.625rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.hp .hp-top__title span {
	display: block;
	color: var(--acn-ink);
	font-weight: 400;
}

.hp .hp-top__lead {
	max-width: 34em;
	margin-top: 22px;
	color: var(--acn-muted);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	line-height: 1.65;
	text-wrap: pretty;
}

.hp-top__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 36px;
}

/* Photo, the Lottie card, and the cut-out figure in front of the card (both photos are 662 x 600, cropped the same way) */
.hp-visual {
	position: relative;
	min-height: 420px;
	overflow: hidden;
	border-inline-start: 1px solid var(--acn-line);
	background: #e4e5e8;
}

.hp .hp-visual__back,
.hp .hp-visual__front {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: 70% 0;
}

.hp .hp-visual__front {
	z-index: 2;
	pointer-events: none;
}

.hp-visual__lottie {
	position: absolute;
	top: 4%;
	left: -6%;
	z-index: 1;
	width: 70%;
	aspect-ratio: 198 / 173;
	pointer-events: none;
}

.hp-visual__lottie svg {
	width: 100% !important;
	height: 100% !important;
}

/* Grid version of the logo band: every logo in a cell of a ruled grid inside the frame, like the boxes above,
   under a title row with a line on each side. No motion, so no pause button.
   Remove hp-marquee--grid from the markup to go back to the moving row. */
.hp .hp-marquee.hp-marquee--grid {
	padding: 0;
}

.hp .hp-marquee--grid .hp-marquee__title {
	display: flex;
	align-items: center;
	gap: 20px;
	width: var(--acn-frame-w);
	margin: 0 auto;
	padding: 18px var(--acn-pad);
	border-inline: 1px solid var(--acn-line);
}

.hp .hp-marquee--grid .hp-marquee__title::before,
.hp .hp-marquee--grid .hp-marquee__title::after {
	content: "";
	flex: 1 1 0;
	height: 1px;
	background: var(--acn-line);
}

.hp .hp-marquee--grid .hp-marquee__window {
	width: var(--acn-frame-w);
	margin-inline: auto;
	border: 1px solid var(--acn-line);
	border-bottom: 0;
	-webkit-mask-image: none;
	mask-image: none;
}

/* A 1px gap over the line colour draws every line between the cells */
.hp .hp-marquee--grid .hp-marquee__track {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: 1px;
	width: 100%;
	margin: 0;
	padding: 0;
	background: var(--acn-line);
	animation: none;
	transform: none;
}

.hp .hp-marquee--grid .hp-marquee__track li {
	width: auto;
	height: 96px;
	padding-inline: 18px;
	background: #ffffff;
	transition: background-color 0.2s ease;
}

.hp .hp-marquee--grid .hp-marquee__track li:hover {
	background: var(--acn-soft);
}

/* A wide logo marked to grow gets its cell's full width */
.hp .hp-marquee--grid .hp-marquee__track li.is-wide {
	padding-inline: 6px;
}

.hp .hp-marquee--grid .hp-marquee__track li[aria-hidden="true"],
.hp .hp-marquee--grid .hp-marquee__pause {
	display: none;
}

.hp .hp-marquee--grid .hp-marquee__track img {
	max-width: min(100%, calc(150px * var(--s, 1)));
	max-height: min(70px, calc(52px * var(--s, 1)));
}

@media (max-width: 1199px) {
	.hp .hp-marquee--grid .hp-marquee__track {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.hp .hp-marquee--grid .hp-marquee__title {
		gap: 12px;
		padding-inline: 16px;
		font-size: 0.9375rem;
	}

	.hp .hp-marquee--grid .hp-marquee__track {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.hp .hp-marquee--grid .hp-marquee__track li {
		height: 68px;
		padding-inline: 8px;
	}

	.hp .hp-marquee--grid .hp-marquee__track img {
		max-height: calc(30px * var(--s, 1));
	}
}

/* Short laptop screens: a tighter hero, so the logo band still shows on the first screen */
@media (min-width: 992px) and (max-height: 820px) {
	.hp .hp-top__standards {
		margin-bottom: 14px;
	}

	.hp .hp-top__title {
		font-size: clamp(2.25rem, 1.4rem + 2vw, 3rem);
	}

	.hp .hp-top__lead {
		margin-top: 14px;
	}

	.hp-top__actions {
		margin-top: 24px;
	}

	.hp-top__copy {
		padding-block: 24px;
	}

	.hp-visual {
		min-height: 340px;
	}

	.hp .hp-box {
		padding-block: 14px;
	}
}

/* The four promises, in cells divided by thin lines */
.hp-boxes {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding-inline: 0;
}

.hp .hp-box {
	position: relative;
	padding: 18px clamp(20px, 2.4vw, 32px);
	border-inline-start: 1px solid var(--acn-line);
}

.hp .hp-box:first-child {
	border-inline-start: 0;
}

/* A short purple line above each title, as on the current homepage */
.hp .hp-box::before {
	content: "";
	display: block;
	width: 28px;
	height: 2px;
	margin-bottom: 14px;
	border-radius: 2px;
	background: var(--acn-accent);
}

.hp .hp-box__title {
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.35;
}

.hp .hp-box__text {
	margin-top: 6px;
	color: var(--acn-muted);
	font-size: 0.9375rem;
}

/* Logo band: logos in their own colours on white, between the dashed rules */
.hp-marquee {
	position: relative;
	z-index: 4;
	padding: 20px 0 14px;
	border-bottom: 1px dashed var(--acn-line); /* taste-skill-ignore: dashed rules from the checker */
	background: #ffffff;
}

.hp .hp-marquee__title {
	margin-bottom: 16px;
	color: var(--acn-muted);
	font-size: 1rem;
	font-weight: 400;
	text-align: center;
}

.hp .hp-marquee__title b {
	color: var(--acn-ink);
	font-weight: 500;
}

.hp-marquee__window {
	direction: ltr;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.hp-marquee__track {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 28px 56px;
	width: min(1344px, calc(100% - 32px));
	margin-inline: auto;
}

.hp .hp-marquee__track li {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	height: 60px;
}

.hp .hp-marquee__track li[aria-hidden="true"] {
	display: none;
}

.hp .hp-marquee__track img {
	display: block;
	width: auto;
	max-width: calc(132px * var(--s, 1));
	max-height: calc(44px * var(--s, 1));
	object-fit: contain;
}

.hp .hp-marquee__pause {
	display: none;
}

/* With motion allowed: one long row sliding left to right, paused on hover, focus or the button */
@media (prefers-reduced-motion: no-preference) {
	.hp-marquee__track {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 0;
		width: max-content;
		margin-inline: 0;
		animation: hp-marquee 60s linear infinite;
	}

	/* Spacing inside each logo instead of a gap, so the two sets are exactly half the track each */
	.hp .hp-marquee__track li {
		padding-inline: 28px;
	}

	.hp .hp-marquee__track li[aria-hidden="true"] {
		display: grid;
	}

	.hp-marquee:hover .hp-marquee__track,
	.hp-marquee:focus-within .hp-marquee__track,
	.hp-marquee.is-paused .hp-marquee__track {
		animation-play-state: paused;
	}

	.hp .hp-marquee__pause {
		display: block;
		margin: 4px auto 0;
		padding: 4px 12px;
		border: 0;
		background: transparent;
		color: var(--acn-muted);
		font: 400 0.875rem/1.2 inherit;
		text-decoration: underline;
		text-underline-offset: 3px;
		cursor: pointer;
	}

	@keyframes hp-marquee {
		from { transform: translateX(-50%); }
		to { transform: translateX(0); }
	}
}

/* ============================================================
   2. CONTACT FORM
   ============================================================ */

/* Contact page: the section is first, under the fixed bar */
.hp-contact--page {
	padding-top: calc(68px + clamp(48px, 6vw, 88px));
	padding-bottom: 0;
}

/* Contact page: the logo grid under the form, with the frame lines running through the space around it
   and the grid closed at the bottom */
.hp-contact-logos {
	position: relative;
	padding-block: clamp(48px, 5vw, 64px);
}

.hp-contact-logos::before {
	content: "";
	position: absolute;
	inset-block: 0;
	left: 50%;
	width: var(--acn-frame-w);
	transform: translateX(-50%);
	border-inline: 1px solid var(--acn-line);
	pointer-events: none;
}

.hp .hp-contact-logos .hp-marquee--grid .hp-marquee__window {
	border-bottom: 1px solid var(--acn-line);
}

.hp .tabnav-thank-you-actions {
	margin-top: 24px;
}

.hp-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	padding-inline: 0;
}

/* The form comes first (the right side in Hebrew); the text and contact details sit beside it */
.hp-contact__aside {
	display: flex;
	flex-direction: column;
	padding: clamp(28px, 4.5vw, 56px) var(--acn-pad);
}

.hp .hp-contact__avatars {
	width: 148px;
	height: auto;
}

.hp .hp-contact__intro {
	margin-top: 20px;
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.45;
}

.hp .hp-contact__text {
	margin-top: 12px;
	color: var(--acn-muted);
	line-height: 1.7;
}

/* Phone and email, at the foot of the column */
.hp-contact__ways {
	margin-top: 28px;
	border-bottom: 1px dashed var(--acn-line); /* taste-skill-ignore: dashed rules from the checker */
}

.hp .hp-contact__way {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-block: 16px;
	border-top: 1px dashed var(--acn-line); /* taste-skill-ignore: dashed rules from the checker */
	color: var(--acn-muted);
}

.hp .hp-contact__way a {
	color: var(--acn-ink);
	font-size: 1.125rem;
	font-weight: 500;
	text-decoration: none;
}

.hp .hp-contact__way a:hover {
	color: var(--acn-accent-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Same side spacing as the section heading above, so the heading and the first field start on one line */
.hp-contact__panel {
	padding: clamp(28px, 4.5vw, 56px) var(--acn-pad);
	border-inline-end: 1px solid var(--acn-line);
	background: #ffffff;
}

.hp .tabnav-form-title {
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.3;
}

.hp .tabnav-form-description {
	margin-top: 8px;
	color: var(--acn-muted);
}

/* Two columns of fields, the message and the consent across both */
.hp-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px 20px;
}

.hp-fields__wide {
	grid-column: 1 / -1;
}

/* Label on one line with its error message at the end of it */
.hp .tabnav-contact-label-column {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
	margin-bottom: 8px;
}

.hp .tabnav-contact-label {
	margin: 0;
	color: var(--acn-ink);
	font-size: 0.9375rem;
	font-weight: 500;
}

.hp .hp-optional {
	color: var(--acn-muted);
	font-weight: 400;
}

.hp .tabnav-contact-input input,
.hp .tabnav-contact-textarea textarea {
	display: block;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid #d4d5db;
	border-radius: 10px;
	background: #ffffff;
	color: var(--acn-ink);
	font: 400 1rem/1.4 inherit;
	box-shadow: none;
	transition: border-color 0.15s ease;
}

.hp .tabnav-contact-input input[dir="ltr"] {
	text-align: right;
}

.hp .tabnav-contact-textarea textarea {
	height: auto;
	min-height: 120px;
	padding-block: 14px;
	resize: vertical;
}

.hp .tabnav-contact-input input::placeholder,
.hp .tabnav-contact-textarea textarea::placeholder {
	color: #75747f;
	opacity: 1;
}

.hp .tabnav-contact-input input:hover,
.hp .tabnav-contact-textarea textarea:hover {
	border-color: #a9aab3;
}

.hp .tabnav-contact-input input:focus,
.hp .tabnav-contact-textarea textarea:focus {
	outline: 3px solid rgba(142, 86, 220, 0.35);
	outline-offset: 0;
	border-color: var(--acn-accent);
}

/* Fields as on the scan status page: a light tinted fill and a 3:1 border (WCAG 1.4.11) set them apart
   from the white card; they turn white with the purple ring while typing. Remove this block to go back. */
.hp .tabnav-contact-input input,
.hp .tabnav-contact-textarea textarea {
	border-color: #8b8998;
	background: #f6f5f9;
}

.hp .tabnav-contact-input input:hover,
.hp .tabnav-contact-textarea textarea:hover {
	border-color: #6c6a79;
}

.hp .tabnav-contact-input input:focus,
.hp .tabnav-contact-textarea textarea:focus {
	background: #ffffff;
}

.hp .tabnav-contact-input input::placeholder,
.hp .tabnav-contact-textarea textarea::placeholder {
	color: #6f6d7a;
}

.hp .tabnav-checkbox-row input {
	border-color: #8b8998;
}

/* Error messages: hidden until the form script adds .visible */
.hp .tabnav-error-text {
	display: none;
	align-items: center;
	gap: 6px;
	color: #b3261e;
	font-size: 0.875rem;
	font-weight: 500;
}

.hp .tabnav-error-text.visible {
	display: inline-flex;
}

.hp .tabnav-error-text.visible::before {
	content: "!";
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #b3261e;
	color: #ffffff;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1;
}

.hp .tabnav-contact-form-row:has(.tabnav-error-text.visible) input,
.hp .tabnav-contact-form-row:has(.tabnav-error-text.visible) textarea {
	border-color: #b3261e;
}

/* The script's per-field message slots are not used by the homepage form */
.hp .tabnav-error-message:empty {
	display: none;
}

.hp .tabnav-checkbox-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.hp .tabnav-checkbox-row input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--acn-accent);
	cursor: pointer;
}

.hp .tabnav-checkbox-label {
	margin: 0;
	color: var(--acn-muted);
	font-size: 0.9375rem;
	line-height: 1.55;
	cursor: pointer;
}

.hp .tabnav-unsubscribe-highlight {
	color: var(--acn-ink);
	font-weight: 500;
}

.hp .tabnav-error-text-checkbox.visible {
	margin-top: 8px;
}

.hp .tabnav-contact-submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-top: 32px;
}

.hp .tabnav-clean-button {
	min-height: 44px;
	padding: 0 4px;
	border: 0;
	background: transparent;
	color: var(--acn-muted);
	font: 400 0.9375rem/1.2 inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.hp .tabnav-clean-button:hover {
	color: var(--acn-ink);
}

.hp .tabnav-privacy-policy-link p {
	margin-top: 20px;
	color: var(--acn-muted);
	font-size: 0.875rem;
}

/* Thank-you state: the script swaps it in with display: flex */
.hp .tabnav-thank-you-container {
	flex-direction: column;
	justify-content: center;
	min-height: 460px;
	text-align: center;
}

.hp-thanks__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: var(--acn-accent);
	color: #ffffff;
}

.hp-thanks__icon svg {
	width: 26px;
	height: 26px;
}

.hp .tabnav-thank-you-title {
	font-size: 2rem;
	font-weight: 500;
}

.hp .tabnav-thank-you-title:focus {
	outline: none;
}

.hp .tabnav-thank-you-description {
	margin-top: 10px;
	color: var(--acn-muted);
	font-size: 1.0625rem;
}

/* ============================================================
   3. LEGAL (dark)
   ============================================================ */

.hp-legal .acn-tile__media {
	overflow: hidden;
	background-color: var(--acn-accent);
}

/* The tall photo tile: its title and text sit at the foot of the photo */
.hp .hp-tile__foot {
	margin-top: auto;
}

/* The request and reply, at the foot of the lawsuit tile */
.hp-chat--tile .acn-chat__msg {
	max-width: 92%;
}

/* The certificate card after the tiles, with the section's own spacing */
.hp-legal__cert {
	margin-top: clamp(56px, 6vw, 88px);
}

.hp-legal .acn-cert__title {
	max-width: 17em;
}

/* ============================================================
   5. TWO WAYS (switch)
   ============================================================ */

/* A section right after a dark block tucks under its rounded foot, like the checker's comparison */
.hp-tuck {
	margin-top: calc(-1 * clamp(20px, 3vw, 32px));
	padding-top: calc(var(--acn-gap) + clamp(20px, 3vw, 32px));
}

.hp-paths .acn-head {
	margin-bottom: 36px;
}

.hp-switch {
	display: flex;
	gap: 4px;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto 56px;
	padding: 5px;
	border: 1px solid var(--acn-line);
	border-radius: 999px;
	background: #ffffff;
}

.hp .hp-switch__tab {
	min-height: 48px;
	padding: 10px 26px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--acn-muted);
	font: 500 1rem/1.25 inherit;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.hp .hp-switch__tab:hover {
	color: var(--acn-ink);
}

.hp .hp-switch__tab[aria-selected="true"] {
	background: var(--acn-ink);
	color: #ffffff;
}

.hp-paths__frame {
	padding-inline: 0;
}

.hp-path {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	background: #ffffff;
}

.hp-path[hidden] {
	display: none;
}

.hp-path__steps {
	padding: clamp(28px, 4.5vw, 56px);
	border-inline-end: 1px solid var(--acn-line);
}

.hp .hp-path__lead {
	max-width: 46ch;
	margin-bottom: 28px;
	color: var(--acn-ink);
	font-size: 1.1875rem;
	line-height: 1.5;
}

/* Numbered steps joined by a thin line */
.hp-step {
	position: relative;
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 18px;
	padding-bottom: 28px;
}

.hp-step:last-child {
	padding-bottom: 0;
}

.hp-step:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 44px;
	bottom: 4px;
	inset-inline-start: 19.5px;
	width: 1px;
	background: var(--acn-line);
}

.hp-step__num {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--acn-line);
	border-radius: 50%;
	background: var(--acn-soft);
	color: var(--acn-muted);
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
}

.hp-step:first-child .hp-step__num {
	border-color: var(--acn-accent);
	background: var(--acn-accent);
	color: #ffffff;
}

.hp .hp-step__title {
	padding-top: 8px;
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.4;
}

.hp .hp-step__text {
	max-width: 58ch;
	margin-top: 6px;
	color: var(--acn-muted);
	line-height: 1.65;
}

.hp-path__card {
	display: flex;
	flex-direction: column;
	padding: clamp(20px, 3vw, 32px);
}

.hp-path__media {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	background: var(--acn-dark);
}

.hp .hp-path__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hp-path__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 16px;
	padding-top: 24px;
}

.hp .hp-path__tag {
	color: var(--acn-accent);
	font-size: 0.9375rem;
	font-weight: 500;
}

.hp .hp-path__title {
	margin-top: -8px;
	font-size: 1.375rem;
	font-weight: 500;
	line-height: 1.35;
}

.hp-path__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
	padding-top: 8px;
}

/* ============================================================
   5b. WHO THE SERVICE COVERS (dark carousel)
   ============================================================ */

.hp-dark2 {
	border-radius: 0 0 clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px);
}

.hp-people__frame {
	position: relative;
	padding-inline: 0;
}

.hp-person {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: 460px;
}

.hp-person[hidden] {
	display: none;
}

.hp-person__media {
	position: relative;
	overflow: hidden;
	background: var(--acn-dark-2);
}

.hp .hp-person__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: 50% 35%;
}

.hp-person__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(28px, 4.5vw, 64px);
	border-inline-start: 1px solid var(--acn-dark-line);
}

.hp .hp-person__count {
	color: var(--acn-accent-light);
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
}

.hp .hp-person__title {
	margin-top: 14px;
	color: #ffffff;
	font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
	font-weight: 500;
	line-height: 1.2;
}

.hp .hp-person__text {
	max-width: 44ch;
	margin-top: 14px;
	color: var(--acn-on-dark-muted);
	font-size: 1.0625rem;
	line-height: 1.65;
}

.hp .hp-person__label {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px dashed var(--acn-dark-line); /* taste-skill-ignore: dashed rules from the checker */
	color: #ffffff;
	font-weight: 500;
}

.hp-person__fixes {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 12px;
}

.hp .hp-person__fixes li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--acn-on-dark-muted);
}

.hp-person__fixes svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	padding: 2px;
	border-radius: 50%;
	background: var(--acn-accent);
	color: #ffffff;
}

.hp-people__nav {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 32px;
}

.hp .hp-people__btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 50%;
	background: transparent;
	color: #ffffff;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.hp .hp-people__btn:hover {
	background: rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: no-preference) {
	.hp-person:not([hidden]) {
		animation: hp-path-in 0.45s var(--acn-ease);
	}
}

/* ============================================================
   6. WHY: six reasons, cells divided by the frame's thin lines
   ============================================================ */

.hp-reasons {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-inline: 0;
}

.hp .hp-reason {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: clamp(24px, 3vw, 36px);
	border-bottom: 1px solid var(--acn-line);
	border-inline-start: 1px solid var(--acn-line);
}

.hp .hp-reason:nth-child(3n + 1) {
	border-inline-start: 0;
}

.hp .hp-reason:nth-last-child(-n + 3) {
	border-bottom: 0;
}

.hp-reason__media {
	overflow: hidden;
	aspect-ratio: 16 / 10;
	margin-bottom: 14px;
	border-radius: 10px;
	background: var(--acn-soft);
}

.hp .hp-reason__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hp .hp-reason__title {
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.4;
}

.hp .hp-reason__text {
	color: var(--acn-muted);
	line-height: 1.65;
}

/* ============================================================
   7. FREE SCAN
   ============================================================ */

.hp-scan__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px);
	border-radius: clamp(20px, 3vw, 32px);
	background: var(--acn-dark);
	color: #ffffff;
	text-align: center;
}

.hp .hp-scan__card .acn-kicker {
	color: var(--acn-accent-light);
}

.hp .hp-scan__title {
	max-width: 18em;
	font-size: clamp(2rem, 1.4rem + 1.8vw, 2.875rem);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.hp .hp-scan__lead {
	max-width: 36em;
	margin-top: 16px;
	color: var(--acn-on-dark-muted);
	font-size: 1.0625rem;
}

.hp-scan__card .acn-scan {
	margin-top: 36px;
}

.hp-scan__card :focus-visible {
	outline-color: var(--acn-accent-light);
}

/* ============================================================
   8. CASE STUDY
   ============================================================ */

.hp-story__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	padding-inline: 0;
}

.hp .hp-story__quote {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: clamp(28px, 4.5vw, 56px);
	border-inline-end: 1px solid var(--acn-line);
}

.hp-story__brands {
	display: flex;
	align-items: center;
	gap: 16px;
}

.hp .hp-story__brands img {
	width: auto;
	height: 22px;
}

.hp-story__brands span {
	width: 1px;
	height: 24px;
	background: var(--acn-line);
}

.hp .hp-story__quote blockquote {
	margin: 28px 0 0;
	padding: 0;
	border: 0;
}

.hp .hp-story__quote blockquote p {
	color: var(--acn-muted);
	line-height: 1.75;
}

.hp .hp-story__quote blockquote p + p {
	margin-top: 14px;
}

.hp .hp-story__quote blockquote p:first-child {
	color: var(--acn-ink);
	font-size: 1.125rem;
}

.hp .hp-story__person {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 32px;
	color: var(--acn-muted);
	font-size: 0.9375rem;
}

.hp .hp-story__person img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

.hp-story__person b {
	display: block;
	color: var(--acn-ink);
	font-weight: 500;
}

.hp-story__media {
	position: relative;
	min-height: 360px;
	overflow: hidden;
	background: var(--acn-dark);
}

.hp .hp-story__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

/* ============================================================
   9. FAQ answers (the homepage's, with lists and guide links)
   ============================================================ */

.hp .hp-faq__a > * + * {
	margin-top: 12px;
}

.hp .hp-faq__a p,
.hp .hp-faq__a li {
	color: var(--acn-muted);
	line-height: 1.7;
}

.hp .hp-faq__a ul {
	padding-inline-start: 20px;
	list-style: disc;
}

.hp .hp-faq__a li + li {
	margin-top: 8px;
}

.hp .hp-faq__a strong {
	color: var(--acn-ink);
	font-weight: 500;
}

/* ============================================================
   Motion
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
	.hp-path:not([hidden]) {
		animation: hp-path-in 0.45s var(--acn-ease);
	}

	@keyframes hp-path-in {
		from { opacity: 0; transform: translateY(10px); }
		to { opacity: 1; transform: none; }
	}
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1199px) {
	.hp-boxes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hp .hp-box:nth-child(3) {
		border-inline-start: 0;
	}

	.hp .hp-box:nth-child(n + 3) {
		border-top: 1px solid var(--acn-line);
	}
}

@media (max-width: 991px) {
	.hp-top__grid,
	.hp-person,
	.hp-contact__grid,
	.hp-path,
	.hp-story__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hp-contact__panel,
	.hp-path__steps,
	.hp .hp-story__quote {
		border-inline-end: 0;
		border-bottom: 1px solid var(--acn-line);
	}

	/* One column: the photo runs the full frame width under the copy */
	.hp-top__grid {
		gap: 0;
		padding-inline: 0;
	}

	.hp-top__copy {
		padding-inline: var(--acn-pad);
	}

	.hp-visual {
		border-inline-start: 0;
		border-top: 1px solid var(--acn-line);
		aspect-ratio: 662 / 600;
		max-height: 70svh;
	}

	.hp-person__media {
		min-height: 320px;
	}

	.hp-person__body {
		border-inline-start: 0;
		border-top: 1px solid var(--acn-dark-line);
	}

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

	.hp .hp-reason:nth-child(n) {
		border-bottom: 1px solid var(--acn-line);
		border-inline-start: 1px solid var(--acn-line);
	}

	.hp .hp-reason:nth-child(2n + 1) {
		border-inline-start: 0;
	}

	.hp .hp-reason:nth-last-child(-n + 2) {
		border-bottom: 0;
	}

	.hp-path__card {
		display: grid;
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		gap: 28px;
	}

	.hp-path__body {
		padding-top: 0;
	}
}

@media (max-width: 767px) {
	.hp-top__actions .acn-btn {
		flex: 1 1 100%;
	}

	.hp-visual {
		min-height: 0;
		aspect-ratio: 662 / 600;
	}

	.hp-boxes {
		grid-template-columns: minmax(0, 1fr);
	}

	.hp .hp-box:nth-child(n) {
		border-inline-start: 0;
	}

	.hp .hp-box + .hp-box {
		border-top: 1px solid var(--acn-line);
	}

	.hp .hp-box {
		padding-block: 22px;
	}

	.hp-marquee__track {
		gap: 20px 32px;
	}

	.hp .hp-marquee__track img {
		max-width: calc(104px * var(--s, 1));
		max-height: calc(36px * var(--s, 1));
	}

	.hp-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.hp .tabnav-contact-submit .acn-btn {
		flex: 1 1 100%;
	}

	.hp-switch {
		width: 100%;
	}

	.hp .hp-switch__tab {
		flex: 1 1 0;
		padding-inline: 12px;
		font-size: 0.9375rem;
	}

	.hp-path__card {
		display: flex;
	}

	.hp-path__body {
		padding-top: 22px;
	}

	.hp-path__actions .acn-btn {
		flex: 1 1 100%;
	}

	.hp-reasons {
		grid-template-columns: minmax(0, 1fr);
	}

	.hp .hp-reason:nth-child(n) {
		border-inline-start: 0;
		border-bottom: 1px solid var(--acn-line);
	}

	.hp .hp-reason:last-child {
		border-bottom: 0;
	}

	.hp-story__media {
		min-height: 260px;
	}
}

/* Contact form send button while the request runs (homepage and contact page) */
.hp .tabnav-contact-submit .acn-btn.is-loading { cursor: progress; background: var(--acn-accent-hover); pointer-events: none; }
.hp .tabnav-btn-spinner {
	width: 16px; height: 16px; flex: none;
	border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #ffffff; border-radius: 50%;
	animation: tabnav-btn-spin 0.7s linear infinite;
}
@keyframes tabnav-btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.hp .tabnav-btn-spinner { animation-duration: 1.6s; }
}
