/*
 * Realestech · Solutions - Project Sales Management
 * (Figma frame node 2193:9774). Loaded only by page-project-sales-management.php,
 * after figma-shared.css and figma-pages.css.
 */

.psm-placeholder { font: 500 16px/normal var(--font-heading); color: #ff0004; }
.psm-h3 { font: 400 40px/44px var(--font-heading); letter-spacing: -1.8px; color: var(--color-brand-navy); }

/* Split intro: C(6) headline + 126 gap + C(5) lead, bottom aligned */
.psm-stack { display: flex; flex-direction: column; gap: 96px; }
.psm-split { display: flex; align-items: flex-end; gap: 126px; }
.psm-split__head { display: flex; flex-direction: column; gap: 24px; width: 588px; flex: 0 1 588px; }
.psm-split__lead { width: 486px; flex: 0 1 486px; }

/* ---------- 01 HERO ---------- */
.psm-hero { padding-top: 160px; }
.psm-hero__inner { display: flex; align-items: center; gap: 126px; }
.psm-hero__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; width: 486px; flex: 0 0 486px; }
.psm-hero__cta { margin-top: 40px; }
.psm-hero__visual { width: 588px; flex: 0 1 588px; height: 600px; margin: 0; overflow: hidden; background: var(--color-surface-warm); }
.psm-hero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* ---------- 02 THE PROBLEM ---------- */
.psm-problems { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.psm-issue { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 1px solid var(--color-brand-navy); }
.psm-issue .fp-h4 { max-width: 265px; }
.psm-issue:nth-child(3) .fp-h4 { max-width: 233px; }
.psm-issue:nth-child(4) .fp-h4 { max-width: 172px; }

/* ---------- 03 THE SOLUTION ---------- */
.psm-solution { background: var(--color-surface-warm); }
.psm-solution__inner { display: flex; align-items: flex-start; gap: 126px; }
.psm-solution__copy { display: flex; flex-direction: column; gap: 24px; width: 486px; flex: 0 0 486px; }
.psm-solution__title { max-width: 447px; }
.psm .psm-solution__lead { max-width: 466px; min-height: 104px; }
.psm-solution__photo { height: 480px; margin: 0; overflow: hidden; }
.psm-solution__photo img { width: 100%; height: 100%; object-fit: cover; }
.psm-benefits { width: 588px; flex: 0 1 588px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-brand-navy); }
.psm-benefit { display: flex; padding: 32px 0; border-bottom: 1px solid var(--color-line-default); }
.psm-benefit:last-child { border-bottom-color: var(--color-brand-navy); }
.psm-benefit__num { flex: 0 0 72px; padding-top: 8px; }
.psm-benefit__copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.psm-benefit__title { font: 400 26px/normal var(--font-heading); letter-spacing: -0.7px; color: var(--color-brand-navy); }

/* ---------- 04 HOW IT WORKS · vertical scroll timeline ---------- */
.psm-process__inner { display: flex; align-items: flex-start; gap: 126px; }
.psm-process__head { display: flex; flex-direction: column; gap: 24px; width: 384px; flex: 0 0 384px; position: sticky; top: calc(var(--rt-subnav-top, 80px) + 40px); }
.psm-timeline { position: relative; width: 690px; flex: 0 1 690px; }
.psm-timeline__track { position: absolute; left: 23px; top: 24px; bottom: auto; width: 1px; background: #d3d9e0; }
.psm-timeline__fill { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--color-brand-navy); transition: height .3s ease-out; }
.psm-steps { margin: 0; padding: 0; list-style: none; }
.psm-step { position: relative; display: flex; gap: 48px; padding-bottom: 120px; }
.psm-step:last-child { padding-bottom: 0; }
.psm-step__marker { position: relative; width: 48px; height: 48px; flex: none; }
.psm-step__marker::before {
	content: ""; position: absolute; left: 10px; top: 10px; width: 28px; height: 28px; box-sizing: border-box;
	background: var(--color-brand-navy); transform: rotate(45deg);
	transition: background-color .3s ease, border-color .3s ease;
}
.psm-step__copy { display: flex; flex-direction: column; gap: 14px; flex: 0 1 594px; min-width: 0; transition: opacity .3s ease; }
.psm .psm-step__num { font: 500 11px/normal var(--font-heading); letter-spacing: 1.6px; text-transform: uppercase; color: var(--color-brand-navy); transition: color .3s ease; }
.psm-step__title { font: 300 36px/41.4px var(--font-heading); letter-spacing: -1.2px; color: var(--color-brand-navy); }
.psm-step__text { max-width: 480px; }
.psm .psm-step__result { margin-top: 8px; font: 500 11px/normal var(--font-heading); letter-spacing: 1.6px; text-transform: uppercase; color: #1e8f98; }

/* Live state (set by figma-pages.js): done = navy, current = aqua, upcoming = outline + 40% */
.psm-timeline--live .psm-step .psm-step__marker::before { background: #fff; border: 1px solid #c2c9d2; }
.psm-timeline--live .psm-step .psm-step__copy { opacity: .4; }
.psm-timeline--live .psm-step .psm-step__num { color: var(--color-text-muted); }
.psm-timeline--live .psm-step.is-done .psm-step__marker::before { background: var(--color-brand-navy); border-color: var(--color-brand-navy); }
.psm-timeline--live .psm-step.is-current .psm-step__marker::before { background: var(--color-brand-aqua); border-color: var(--color-brand-aqua); }
.psm-timeline--live .psm-step.is-done .psm-step__copy,
.psm-timeline--live .psm-step.is-current .psm-step__copy { opacity: 1; }
.psm-timeline--live .psm-step.is-done .psm-step__num { color: var(--color-brand-navy); }
.psm-timeline--live .psm-step.is-current .psm-step__num { color: var(--color-brand-aqua); }

/* ---------- 05 WHO BENEFITS ---------- */
.psm-who { padding-bottom: var(--space-section); }
.psm-who__inner { display: flex; flex-direction: column; gap: 72px; padding-top: var(--space-section); border-top: 1px solid var(--color-line-default); }
.psm-who__head { display: flex; flex-direction: column; gap: 24px; }
.psm-who__head .psm-h3 { max-width: 688px; }
.psm-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.psm-person { display: flex; flex-direction: column; gap: 28px; }
.psm-person__photo { position: relative; height: auto; aspect-ratio: 10 / 7; margin: 0; overflow: hidden; background: transparent; }
.psm-person__photo img { position: absolute; left: 0; top: -36px; width: 100%; height: calc(100% + 72px); object-fit: cover; object-position: center 30%; display: block; }
.psm-person__copy { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 1px solid var(--color-brand-navy); }

/* ---------- 06 INTRODUCING RIGELNEXA ---------- */
.psm-rigel { padding: 0 24px; }
.psm-rigel__panel { max-width: 1392px; margin: 0 auto; background: var(--color-brand-navy-deep); }
.psm-rigel__inner { display: flex; flex-direction: column; align-items: center; gap: 96px; padding: 140px 96px 96px; }
/* No dashboard: tighten the intro-to-features gap and even out top/bottom padding so the panel does not look like a missing frame. */
.psm-rigel__inner--no-dash { gap: 64px; padding-bottom: 140px; }
.psm-rigel__intro { width: 100%; }
.psm-rigel__head { gap: 28px; }
.psm-rigel__logo { width: 145px; height: 40px; }
.psm-rigel__title { color: #fff; max-width: 480px; }
.psm-rigel__title span { color: var(--color-text-muted); }
.psm-rigel__lead { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.psm-rigel__lead .fp-body { color: rgba(255, 255, 255, .72); }
.psm-dash { width: 996px; max-width: 100%; background: #fff; box-shadow: 0 40px 80px rgba(3, 20, 47, .22); display: flex; flex-direction: column; overflow: hidden; border-radius: 5px; }
.psm-dash__bar { display: flex; align-items: center; gap: 8px; height: 31px; flex: none; padding: 0 16px; border-bottom: 1px solid #eef1f4; }
.psm-dash__bar span { width: 9px; height: 9px; border-radius: 50%; background: #e3e7ec; }
.psm-dash__ui { width: 100%; height: auto; display: block; aspect-ratio: 996 / 576; object-fit: cover; }
.psm .psm-features { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; width: 100%; margin: 0; padding: 28px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .14); }
.psm-features li { display: flex; flex-direction: column; gap: 16px; font: 400 14px/21px var(--font-body); color: rgba(255, 255, 255, .72); }
.psm-features img { width: 28px; height: 28px; }

/* ---------- 07 FAQS ---------- */
.psm-faq__inner { display: flex; flex-direction: column; gap: 72px; }
.psm-faq__head { display: flex; flex-direction: column; gap: 24px; }
.psm-faqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; margin: 0; }
.psm-faq-item { display: flex; flex-direction: column; gap: 12px; padding: 36px 48px 36px 0; border-top: 1px solid var(--color-line-default); }
.psm-faq-item dd { margin: 0; }
.psm-faq__tag { font: 400 12px/26.4px var(--font-body); color: #6b5400; }

/* ---------- 08 CLOSING CTA ---------- */
.psm-closing { background: var(--color-surface-warm); }
.psm-closing__inner { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.psm-closing__title { width: 894px; max-width: 100%; font: 300 64px/67.2px var(--font-heading); letter-spacing: -2.4px; color: var(--color-brand-navy); }
.psm-closing__lead { width: 470px; max-width: 100%; }
.psm-closing__cta { margin-top: 40px; }

/* ================= Responsive ================= */
@media (max-width: 1279px) {
	.psm-split, .psm-hero__inner, .psm-solution__inner, .psm-process__inner { gap: 64px; }
	.psm-hero__intro { flex-basis: 440px; width: 440px; }
	.psm-solution__copy { flex-basis: 420px; width: 420px; }
	.psm-process__head { flex-basis: 320px; width: 320px; }
	.psm-rigel__inner { padding-left: 64px; padding-right: 64px; }
}

/* 768–1023: tablet (8 columns, 48 margin, 120 section padding) */
@media (max-width: 1023px) {
	.psm-hero { padding-top: 96px; }
	.psm-hero__inner, .psm-solution__inner, .psm-process__inner { flex-direction: column; align-items: stretch; gap: 56px; }
	.psm-hero__intro, .psm-solution__copy, .psm-process__head { width: 100%; flex: none; max-width: 588px; }
	.psm-hero__visual { width: 100%; flex: none; height: auto; aspect-ratio: 588 / 420; }
	.psm-stack { gap: 64px; }
	.psm-split { flex-direction: column; align-items: flex-start; gap: 24px; }
	.psm-split__head, .psm-split__lead { width: 100%; flex: none; max-width: 588px; }
	.psm-problems { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
	.psm .psm-solution__lead { min-height: 0; }
	.psm-solution__photo { height: auto; aspect-ratio: 486 / 480; max-width: 588px; }
	.psm-benefits { width: 100%; flex: none; }
	.psm-process__head { position: static; }
	.psm-timeline { width: 100%; flex: none; }
	.psm-step { padding-bottom: 80px; }
	.psm-step__copy { width: auto; flex: 1; }
	.psm-who__inner { gap: 56px; }
	.psm-people { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
	.psm-person__photo { height: auto; aspect-ratio: 10 / 7; }
	.psm-rigel__inner { gap: 64px; padding: 120px 48px 64px; }
	.psm-rigel__inner--no-dash { gap: 48px; padding-bottom: 120px; }
	.psm-dash { height: auto; }
	.psm .psm-features { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
	.psm-faqs { grid-template-columns: 1fr; }
	.psm-faq-item { padding-right: 0; }
	.psm-closing__title { font-size: 52px; line-height: 56px; letter-spacing: -2px; }
}

/* ≤767: mobile (4 columns, 24 margin, 80 section padding) */
@media (max-width: 767px) {
	.psm-h3 { font-size: 28px; line-height: 32px; letter-spacing: -1px; }
	.psm-hero { padding-top: 56px; }
	.psm-hero__inner { gap: 48px; }
	.psm-hero__intro { gap: 24px; }
	.psm-hero__cta { margin-top: 8px; }
	.psm-closing__cta { margin-top: 8px; }
	.psm-hero__visual { aspect-ratio: 342 / 300; }
	.psm-stack { gap: 48px; }
	.psm-problems { grid-template-columns: 1fr; row-gap: 32px; }
	.psm-issue { padding-top: 20px; gap: 10px; }
	.psm-issue .fp-h4 { max-width: none !important; }
	.psm-solution__inner, .psm-process__inner { gap: 48px; }
	.psm-benefit { padding: 24px 0; }
	.psm-benefit__num { flex-basis: 40px; padding-top: 6px; }
	.psm-benefit__title { font-size: 20px; line-height: 26px; letter-spacing: -0.5px; }
	.psm-step { gap: 20px; padding-bottom: 56px; }
	.psm-step__marker { width: 32px; height: 32px; }
	.psm-step__marker::before { left: 7px; top: 7px; width: 18px; height: 18px; }
	.psm-timeline__track { left: 15.5px; top: 16px; bottom: auto; }
	.psm-step__copy { gap: 10px; }
	.psm-step__title { font-size: 26px; line-height: 30px; letter-spacing: -0.8px; }
	.psm-who__inner { gap: 40px; }
	.psm-people { grid-template-columns: 1fr; row-gap: 40px; }
	.psm-person { gap: 20px; }
	.psm-person__photo { aspect-ratio: 342 / 300; }
	.psm-person__copy { padding-top: 20px; gap: 10px; }
	.psm-rigel { padding: 0 12px; }
	.psm-rigel__inner { gap: 48px; padding: 80px 24px 48px; }
	.psm-rigel__inner--no-dash { gap: 40px; padding-bottom: 80px; }
	.psm-rigel__head { gap: 20px; }
	.psm-dash { height: auto; }
	.psm-dash__bar { height: 26px; padding: 0 10px; gap: 5px; }
	.psm-dash__bar span { width: 6px; height: 6px; }
	.psm .psm-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
	.psm-faq__inner { gap: 40px; }
	.psm-faq-item { padding: 28px 0; gap: 10px; }
	.psm-closing__inner { gap: 24px; }
	.psm-closing__title { font-size: 34px; line-height: 38px; letter-spacing: -1.2px; }
	.fp-btn-rigel { width: 100%; max-width: 342px; justify-content: center; }
}
