/*
 * Realestech · audience pages (added in 1.5.0): Real estate agents, Agencies & principals,
 * Property developers, Project sales teams & marketers.
 * Markup: template-parts/figma-audience.php. Loaded after figma-pages.css; each page's own
 * CSS (e.g. real-estate-agents.css) only sets the few sizes that differ in Figma.
 */

.au {
	--au-title-h: 94px;  /* stage column titles: fixed height in Figma so lists line up */
	--au-body-h: 106px;  /* stage column body copy */
	--au-ink: #051e4a;
}

/* Section intro: heading left, body right, bottoms aligned */
.au-intro { display: flex; align-items: flex-end; gap: 126px; }
.au-intro__head { flex: 0 1 588px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.au .au-intro__body { flex: 0 1 486px; min-width: 0; }

/* 01 HERO */
.au-hero { padding: 160px 0 100px; background: #fff; }
.au-hero__inner { display: flex; align-items: center; justify-content: space-between; gap: 74px; }
.au-hero__copy { flex: 0 1 532px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; padding-top: 40px; } /* 8px spacer + 32px gap in Figma */
.au-hero__title { color: var(--au-ink); }
.au-hero__hl { color: var(--color-text-muted); }
.au-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 40px; } /* 32px gap + 8px spacer + 32px gap in Figma */
.au-hero__media { flex: 0 1 588px; min-width: 0; aspect-ratio: 588 / 640; background: #e4e1da; }
.au-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.au-hero__media--placeholder { background: #cccccc; } /* Figma: grey "photo/meeting (stand-in)" */

/* 02 THE CHALLENGES */
.au-challenges { padding: var(--space-section) 0; background: var(--color-surface-warm); }
.au .au-challenges__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 96px 0 0; padding: 0; list-style: none; }
.au-challenge { display: flex; flex-direction: column; gap: 16px; min-height: 267px; padding-top: 32px; border-top: 1px solid var(--au-ink); }
.au .au-challenge__num { color: var(--color-text-body); }
.au-challenge__title { font: 400 24px/30px var(--font-heading); letter-spacing: -.5px; color: var(--au-ink); }
.au-answer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--color-line-default); }
.au .au-answer__label { color: var(--color-text-body); margin: 0; padding: 0; line-height: 20px; display: inline-flex; align-items: center; }
.au .au-answer__list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.au .au-answer__list > li { margin: 0; padding: 0; display: flex; align-items: center; }
.au-answer__item { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0; font: 400 14px/20px var(--font-body); color: var(--au-ink); }
a.au-answer__item { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s ease, color .5s ease; }
a.au-answer__item:hover { text-decoration-color: currentColor; color: var(--rt-link-hover, #3266a1); }
.au-dot { flex: none; display: block; width: 7px; height: 7px; margin: 0; border-radius: 50%; background: var(--au-dot); }

/* 03 HOW WE HELP */
.au-how { padding: var(--space-section) 0; background: #fff; scroll-margin-top: 80px; }

/* Journey: stage header + one timeline row per business */
.au-journey { margin-top: 96px; }
.au-journey__head { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--color-brand-navy); }
.au .au-journey__label { color: var(--color-text-body); }
.au .au-journey__stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.au-journey__stages li { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.au-journey__num { font: 500 11px/normal var(--font-heading); letter-spacing: 1.6px; color: var(--color-text-muted); }
.au-journey__name { font: 300 22px/normal var(--font-heading); letter-spacing: -.5px; color: var(--color-brand-navy); }
.au .au-journey__rows { margin: 0; padding: 0; list-style: none; }
.au-row { display: grid; grid-template-columns: 282px minmax(0, 1fr); gap: 24px; height: 133px; border-bottom: 1px solid var(--color-line-default); }
.au-row__brand { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.au-row__brand img { display: block; height: auto; margin: 3px 0 0; }
.au-row__track { position: relative; }
.au-row__track::before { content: ""; position: absolute; left: 0; right: 0; top: 80px; height: 1px; background: var(--color-line-default); }
.au-row--ongoing .au-row__track::before { display: none; }
.au-row--ongoing .au-row__track::after { content: ""; position: absolute; left: calc(var(--au-x) + var(--au-w)); right: 0; top: 80px; border-top: 2px dashed var(--au-c); opacity: .5; }
.au .au-row__label { position: absolute; left: var(--au-x); bottom: 65px; max-width: calc(100% - var(--au-x)); font: 400 14px/normal var(--font-heading); color: var(--color-brand-navy); }
.au-row__bar { position: absolute; left: var(--au-x); top: 78px; width: var(--au-w); max-width: calc(100% - var(--au-x)); height: 4px; background: var(--au-c); }
.au-row__bar::before { content: ""; position: absolute; left: -5.5px; top: -3.5px; width: 11px; height: 11px; background: var(--au-c); transform: rotate(45deg); }

/* Journey bars grow from the left when the table scrolls into view (only armed when JS runs). */
.au-journey.is-armed .au-row__bar {
	clip-path: inset(-8px 100% -8px -8px);
	transition: clip-path .7s cubic-bezier(.22, .61, .36, 1);
}
.au-journey.is-armed .au-row--ongoing .au-row__track::after {
	clip-path: inset(-4px 100% -4px 0);
	transition: clip-path .5s ease-out .65s;
}
.au-journey.is-in .au-row__bar {
	clip-path: inset(-8px 0 -8px -8px);
}
.au-journey.is-in .au-row--ongoing .au-row__track::after {
	clip-path: inset(-4px 0 -4px 0);
}
.au-journey.is-armed .au-row:nth-child(2) .au-row__bar { transition-delay: .12s; }
.au-journey.is-armed .au-row:nth-child(3) .au-row__bar { transition-delay: .24s; }
.au-journey.is-armed .au-row:nth-child(4) .au-row__bar { transition-delay: .36s; }
.au-row__ongoing { position: absolute; right: 0; top: 54px; font: 400 12px/normal var(--font-body); color: var(--color-text-body); }

/* Stage columns (last one is the key product panel) */
.au-columns { display: grid; gap: 24px; margin-top: 96px; }
.au-columns--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.au-columns--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.au-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 40px 0; border-top: 2px solid var(--au-c); }
.au-col--key { padding: 42px 36px 40px; border-top: 0; background: var(--color-surface-warm); clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 36px, 100% 100%, 0 100%); }
.au .au-col__stage { color: var(--color-text-body); }
.au .au-col--rigelnexa .au-col__stage { color: #5a3ccb; }
.au-col__logo { display: flex; align-items: center; height: 40px; }
.au-col__logo img { display: block; height: auto; }
.au-col__title { min-height: var(--au-title-h); font: 300 26px/31.2px var(--font-heading); letter-spacing: -.8px; color: var(--au-ink); }
.au-columns--3 .au-col:nth-child(1) .au-col__title { max-width: 233px; }
.au-columns--3 .au-col:nth-child(2) .au-col__title { max-width: 268px; }
.au .au-col__body { min-height: var(--au-body-h); }
.au .au-col__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-line-default); }
.au-col__list li { padding: 11px 0; border-bottom: 1px solid var(--color-line-default); font: 400 14px/17px var(--font-body); color: var(--au-ink); }
.au-col--key .au-col__list, .au-col--key .au-col__list li { border-color: #e2ded6; }
.au-col__tag .fp-tag { display: block; font-size: 11px; line-height: 15px; } /* 9.84px in Figma, raised for legibility */
.au-col__cta { display: flex; align-items: center; min-height: 52px; margin-top: auto; }
.au-col__cta .fp-link { color: var(--au-ink); }

/* Brand buttons (AgentNexa orange, RigelNexa purple) */
.au-btn { background: var(--au-c, var(--color-brand-navy)); border-color: var(--au-c, var(--color-brand-navy)); }
.au-btn--agentnexa { --au-c: #ff7439; }
.au-btn--rigelnexa { --au-c: #6d4ae8; }
.au-col--agentnexa .au-btn:hover, .au-btn--agentnexa:hover { background: #e8601f; border-color: #e8601f; }
.au-col--rigelnexa .au-btn:hover, .au-btn--rigelnexa:hover { background: #573bba; border-color: #573bba; }
.au-btn--lg { height: 56px; padding: 0 28px; gap: 14px; font-size: 16px; }
.au-btn--outline-light { height: 56px; padding: 0 28px; justify-content: center; background: transparent; border-color: rgba(255, 255, 255, .55); font-size: 16px; }
.au-btn--outline-light:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }

/* 05 CLOSING CTA */
.au-closing { padding: var(--space-section) 0; background: var(--color-brand-navy-deep); color: #fff; scroll-margin-top: 80px; }
.au-closing__inner { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.au-closing__logo { height: 34px; width: auto; margin-bottom: 40px; } /* 32px gap + 8px spacer + 32px gap in Figma */
.au-closing__title { max-width: 792px; color: #fff; }
.au .au-closing__body { max-width: 588px; font: 400 16px/26.4px var(--font-body); color: rgba(255, 255, 255, .75); }
.au-closing__tag .fp-tag { font-size: 12px; line-height: 18px; }
.au-closing__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }

/* Laptop */
@media (max-width: 1279px) {
	.au-hero__inner { gap: 48px; }
	.au-intro, .au-intro--challenges { gap: 64px; }
	.au-journey__head { grid-template-columns: 220px minmax(0, 1fr); }
	.au-row { grid-template-columns: 220px minmax(0, 1fr); }
	.au-col--key { padding-left: 28px; padding-right: 28px; }
}

/* Tablet */
@media (max-width: 1023px) {
	.au-hero { padding-top: 96px; }
	.au-hero__inner { flex-direction: column; align-items: stretch; gap: 56px; }
	.au-hero__copy { flex: none; padding-top: 0; }
	.au-hero__media { flex: none; width: 100%; max-width: 588px; }
	.au-intro, .au-intro--challenges { flex-direction: column; align-items: flex-start; gap: 24px; }
	.au-intro__head, .au .au-intro__body { flex: none; max-width: 640px; }
	.au .au-challenges__grid { grid-template-columns: 1fr; gap: 40px; margin-top: 64px; }
	.au-challenge { min-height: 0; }
	.au-answer { margin-top: 8px; }
	.au-journey { margin-top: 64px; }
	.au-journey__head, .au-row { grid-template-columns: 180px minmax(0, 1fr); }
	.au-journey__name { font-size: 18px; }
	.au-columns--3, .au-columns--2 { grid-template-columns: 1fr; max-width: 640px; margin-top: 64px; }
	.au-col__title, .au .au-col__body { min-height: 0; }
	.au-columns--3 .au-col:nth-child(n) .au-col__title { max-width: none; }
	.au-col__cta { margin-top: 0; }
}

/* Mobile */
@media (max-width: 767px) {
	.au-hero { padding: 72px 0 64px; }
	.au-hero__copy { gap: 24px; }
	.au-hero__actions { flex-direction: column; align-items: stretch; margin-top: 8px; }
	.au-hero__actions .fh-btn { width: 100%; justify-content: center; }
	.au-hero__actions .fp-link { justify-content: center; }
	.au-challenge__title { font-size: 22px; line-height: 28px; }
	.au-journey__head { grid-template-columns: 1fr; gap: 16px; }
	.au .au-journey__stages { gap: 6px; }
	.au-journey__num { font-size: 10px; letter-spacing: 1px; }
	.au-journey__name { font-size: 14px; letter-spacing: -.2px; }
	.au-row { grid-template-columns: 1fr; gap: 4px; height: auto; padding-top: 20px; }
	.au-row__brand { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
	.au-row__brand img { max-width: 120px; margin: 0; }
	.au-row__track { height: 88px; }
	.au-row__track::before, .au-row--ongoing .au-row__track::after { top: 64px; }
	.au .au-row__label { bottom: 37px; font-size: 13px; }
	.au-row__bar { top: 62px; }
	.au-row__ongoing { top: auto; bottom: 0; font-size: 11px; }
	.au-col--key { padding: 36px 24px 32px; }
	.au-col__title { font-size: 24px; line-height: 29px; }
	.au-closing__actions { flex-direction: column; align-items: stretch; width: 100%; }
	.au-closing__actions .fh-btn { justify-content: center; }
}

/* Batch 5: Solutions Overview eyebrow typography reused on audience heroes. */
.au-hero .rt-solov-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font: 500 12px/16px var(--font-heading), 'Poppins', sans-serif;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--color-text-body);
	white-space: nowrap;
}
.au-hero .rt-solov-eyebrow img { width: 6px; height: 13px; }
