/* ==========================================================================
   Product pages (Apply, Enroli SIS, Ediify LMS, Exam Portal, Studio).
   Measured from the Figma product frames (1512 wide).
   ========================================================================== */

/* Hero ------------------------------------------------------------------- */
.phero { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: stretch; min-height: 700px; color: #fff; }
.phero--slate { background: #2f3245; }
.phero--green { background: #0b3a2d; }
.phero--navy { background: #0b1a33; }
.phero--blue { background: linear-gradient(180deg, #3f72a8 0%, #2a5486 55%, #1d4374 100%); }
.phero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.phero__bgimg { position: absolute; left: 0; bottom: 0; width: 60%; height: 100%; object-fit: cover; opacity: .55; filter: grayscale(.4); }
.phero__shade { position: absolute; inset: 0; }
.phero--slate .phero__shade { background: linear-gradient(90deg, rgba(47, 50, 69, .55), rgba(47, 50, 69, .92) 55%); }
.phero__tri { position: absolute; width: 520px; left: -60px; top: -70px; color: rgba(34, 197, 94, .14); overflow: visible; }
.phero--blue .phero__tri { color: rgba(255, 255, 255, .08); top: auto; bottom: -260px; left: -40px; width: 420px; }
.phero--slate .phero__tri { color: rgba(255, 255, 255, .06); }
.phero__tri path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: vl-draw 3.5s var(--ease-in-out) both; }
.phero__arc { position: absolute; width: 360px; height: 360px; left: 80px; top: -230px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .05); }
.phero--green .phero__arc, .phero--blue .phero__arc { display: none; }
.phero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 120px; padding-bottom: 72px; }
.phero__copy { position: relative; z-index: 2; }
.phero__title { margin-top: 26px; font-family: var(--f-head); font-size: clamp(2.5rem, 1.2rem + 3vw, 3.5rem); font-weight: 700; line-height: 1.22; letter-spacing: .04em; }
.phero__text { max-width: 560px; margin-top: 24px; color: rgba(255, 255, 255, .88); font-size: 16px; line-height: 1.7; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.phero__actions .btn { min-height: 56px; }

.ppill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 16px 5px 10px; border-radius: 999px; font-family: var(--f-head); font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.ppill__icon { width: 24px; height: 24px; object-fit: contain; }
.ppill--light { background: #fff; color: #0f172a; }
.phero--blue .ppill--light { color: #2563eb; }
.ppill--dark { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: 18px; }
.ppill--outline { border: 1.5px solid rgba(255, 255, 255, .85); color: #fff; }

.phero__media { position: relative; align-self: stretch; }
.phero__img { display: block; }
/* Glass frame (Apply): bleeds off the right and bottom edges. */
.phero--frame .phero__media { margin-right: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--container) - var(--gutter) * 2) / 2))); margin-bottom: -72px; margin-top: -16px; }
.phero__media--frame { padding: 12px 0 0 12px; border-radius: 22px 0 0 0; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.phero__media--frame .phero__img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; border-radius: 14px 0 0 0; }
/* Full-height edge photo (Exam Portal, Ediify). */
.phero--edge .phero__inner { padding-bottom: 0; }
.phero--edge .phero__media { margin-right: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--container) - var(--gutter) * 2) / 2))); margin-top: 0; }
.phero__media--edge .phero__img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; border-radius: 14px 0 0 0; }
.phero--edge .phero__copy { padding-bottom: 72px; }
/* Cut-out with ring (Enroli). */
.phero--cutout .phero__inner { padding-bottom: 0; align-items: end; }
.phero--cutout .phero__copy { align-self: center; padding-bottom: 60px; }
.phero__media--cutout { display: flex; justify-content: center; align-items: flex-end; }
.phero__media--cutout .phero__img { position: relative; z-index: 1; width: min(880px, 125%); max-width: none; height: auto; margin-right: -12%; }
.phero__ring { position: absolute; width: 440px; height: 440px; right: 4%; bottom: 40px; border-radius: 50%; border: 34px solid rgba(255, 255, 255, .06); }
/* Video-call collage (Studio). */
.collage { position: relative; height: 560px; margin-right: calc(-1 * max(0px, (100vw - var(--container) - var(--gutter) * 2) / 2 + var(--gutter))); }
.collage__tile { position: absolute; overflow: hidden; border-radius: 10px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.collage__tile img { width: 100%; height: 100%; object-fit: cover; }
.collage__tile--1 { left: 0; top: 30px; width: 230px; height: 226px; }
.collage__tile--main { left: 145px; top: 210px; width: 420px; height: 390px; border-radius: 10px 10px 0 0; }
.collage__tile--3 { right: 120px; top: 0; width: 190px; height: 190px; }
.collage__tile--4 { right: 0; top: 220px; width: 190px; height: 180px; }
.collage__tile--5 { right: 220px; top: 380px; width: 160px; height: 220px; }
.collage__icon { position: absolute; display: grid; place-items: center; border-radius: 50%; color: #fff; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5); animation: vl-bob 5s ease-in-out infinite; }
.collage__icon .icon { width: 55%; height: 55%; }
.collage__icon--mic { width: 76px; height: 76px; left: 300px; top: 0; background: linear-gradient(135deg, #60a5fa, #2563eb); }
.collage__icon--chat { width: 64px; height: 64px; right: 270px; top: 180px; background: linear-gradient(135deg, #93c5fd, #3b82f6); border-radius: 14px; animation-delay: -2s; }
.collage__icon--play { width: 56px; height: 56px; left: -30px; top: 420px; background: linear-gradient(135deg, #60a5fa, #1d4ed8); border-radius: 12px; animation-delay: -3s; }
.collage__icon--play .icon { fill: currentColor; }

/* Features --------------------------------------------------------------- */
.pfeat { padding: 72px 0 80px; background: var(--slate-50); }
.mini-badge { display: inline-block; padding: 6px 16px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.mini-badge--green { background: var(--green); }
.mini-badge--purple { background: #9333ea; }
.mini-badge--blue { background: #2563eb; }
.mini-badge--orange { background: var(--orange); }
.pfeat__title { max-width: 640px; margin-top: 16px; font-family: var(--f-head); font-size: clamp(28px, 2.5vw, 38px); font-weight: 600; line-height: 1.22; color: var(--slate-800); }
.pfeat__lead { max-width: 820px; margin-top: 16px; color: var(--slate-600); font-size: 15px; line-height: 1.6; }
.pfeat__grid { display: grid; grid-template-columns: minmax(0, 450px) minmax(0, 790px); justify-content: center; gap: 40px; margin-top: 56px; align-items: stretch; }
.pfeat__list { display: flex; flex-direction: column; border-radius: 12px; background: rgba(255, 255, 255, .7); }
.ftab { border-bottom: 1px solid var(--slate-200); transition: background-color .4s var(--ease); }
.ftab:last-child { border-bottom: 0; }
.ftab__head { display: flex; align-items: center; gap: 18px; width: 100%; min-height: 88px; padding: 18px 16px; border: 0; background: none; text-align: left; font: inherit; color: inherit; }
button.ftab__head { cursor: pointer; }
.ftab__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff7ed; color: var(--orange); transition: transform .4s var(--ease); }
.ftab__icon .icon { width: 17px; height: 17px; }
.ftab__title { font-size: 16px; font-weight: 600; color: var(--slate-800); }
.ftab--has:hover .ftab__icon { transform: scale(1.1); }
.ftab.is-active { position: relative; background: #fff; }
.ftab.is-active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--orange); }
.ftab.is-active .ftab__head { min-height: 72px; padding-bottom: 6px; }
.ftab__body { padding: 0 16px 22px; color: var(--slate-600); font-size: 13px; line-height: 1.6; }
.pfeat__media { position: relative; border-radius: 12px; overflow: hidden; background: var(--slate-100); box-shadow: 0 20px 50px -30px rgba(15, 23, 42, .35); min-height: 480px; }
.pfeat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform 1.2s var(--ease); }
.pfeat__media:hover .pfeat__img { transform: scale(1.03); }
.pfeat__img.is-swapping { opacity: 0; }

/* Integration diagram ---------------------------------------------------- */
.psync { padding: 72px 0 72px; background: var(--slate-50); border-top: 1px solid var(--slate-200); }
.psync__card { position: relative; display: grid; grid-template-columns: 260px 1fr 260px; align-items: center; gap: 0; max-width: 900px; margin: 64px auto 0; padding: 40px; border-radius: 20px; background: #f1f2f4; box-shadow: inset 0 0 30px rgba(15, 23, 42, .08), 0 1px 0 #fff; }
.psync__tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 116px; padding: 16px; border-radius: 10px; background: #fff; box-shadow: 0 6px 16px -10px rgba(15, 23, 42, .3); }
.psync__tile--dark { background: #13183d; color: #fff; }
.psync__name { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-head); font-size: 38px; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.psync__name img { width: 40px; height: 40px; object-fit: contain; }
.psync__sub { font-size: 11px; opacity: .85; }
.psync__link { position: relative; height: 18px; margin: 0 18px; }
.psync__line { position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: repeating-linear-gradient(90deg, #22c55e 0 10px, transparent 10px 16px); background-size: 32px 2px; animation: vl-sync 1.2s linear infinite; }
.psync__line--back { top: 12px; animation-direction: reverse; opacity: .6; }
@keyframes vl-sync { to { background-position: 32px 0; } }
.psync__label { position: absolute; left: 50%; top: calc(50% + 20px); transform: translateX(-50%); color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }

/* Photo CTA -------------------------------------------------------------- */
.band--leaf { padding: 100px 0; }
.band--leaf .band__shade { background: linear-gradient(90deg, rgba(10, 58, 38, .9), rgba(26, 92, 46, .78) 55%, rgba(74, 128, 60, .6)); }
.band--leaf .band__img { filter: saturate(.8); }
.band--leaf .band__inner { gap: 24px; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
	.phero { min-height: 0; }
	.phero__inner { grid-template-columns: minmax(0, 1fr); padding-top: 120px; }
	.phero--frame .phero__media, .phero--edge .phero__media { margin-right: calc(-1 * var(--gutter)); margin-bottom: 0; }
	.phero__media--frame .phero__img, .phero__media--edge .phero__img { min-height: 0; aspect-ratio: 16 / 10; }
	.phero--edge .phero__copy { padding-bottom: 0; }
	.phero--cutout .phero__copy { padding-bottom: 0; }
	.collage { height: 460px; margin-right: 0; max-width: 640px; }
	.collage__tile--main { left: 120px; top: 170px; width: 340px; height: 290px; }
	.pfeat__grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
	.pfeat__media { min-height: 0; aspect-ratio: 16 / 10; order: -1; }
}
@media (max-width: 768px) {
	.phero__inner { padding-top: 110px; padding-bottom: 48px; }
	.phero__actions .btn { flex: 1 1 200px; }
	.phero__ring { width: 300px; height: 300px; }
	.collage { height: 360px; }
	.collage__tile--1 { width: 150px; height: 150px; top: 10px; }
	.collage__tile--main { left: 70px; top: 120px; width: 230px; height: 240px; }
	.collage__tile--3 { right: 0; top: 0; width: 120px; height: 120px; }
	.collage__tile--4 { right: 0; top: 140px; width: 110px; height: 110px; }
	.collage__tile--5 { display: none; }
	.collage__icon--mic { width: 56px; height: 56px; left: 170px; top: 20px; }
	.collage__icon--chat { right: 120px; top: 100px; width: 46px; height: 46px; }
	.collage__icon--play { left: 0; top: 280px; }
	.pfeat, .psync { padding: 56px 0; }
	.psync__card { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 24px; }
	.psync__link { height: 48px; width: 18px; margin: 0 auto; }
	.psync__line { left: 4px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #22c55e 0 10px, transparent 10px 16px); background-size: 2px 32px; animation-name: vl-sync-v; }
	.psync__line--back { left: 12px; }
	@keyframes vl-sync-v { to { background-position: 0 32px; } }
	.psync__label { top: 50%; left: calc(50% + 30px); transform: translateY(-50%); }
	.band--leaf { padding: 72px 0; }
}

/* Figma marks the Products menu item with an orange underline on product pages. */
.page-template-product .nav__list > .current-menu-item > a { box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.phero__media--frame .phero__img { object-position: 100% 50%; }

/* Compact feature tabs: hover, focus or click a tab to show its photo. */
.pfeat__grid { align-items: center; }
.pfeat__list { background: #fff; box-shadow: 0 10px 30px -24px rgba(15, 23, 42, .3); overflow: hidden; }
.ftab { position: relative; border-bottom: 1px solid var(--slate-100); }
.ftab::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--orange); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.ftab.is-active::before { transform: scaleY(1); }
.ftab.is-active { background: #fffaf5; }
.ftab__head, .ftab.is-active .ftab__head { min-height: 56px; padding: 12px 18px; gap: 14px; cursor: pointer; }
.ftab__icon { width: 30px; height: 30px; transition: transform .4s var(--ease), background-color .4s, color .4s; }
.ftab.is-active .ftab__icon { background: var(--orange); color: #fff; transform: scale(1.06); }
.ftab__title { flex: 1; font-size: 15px; transition: color .3s; }
.ftab.is-active .ftab__title { color: var(--ink); }
.ftab__arrow { flex: none; width: 16px; height: 16px; color: var(--orange); opacity: 0; translate: -8px 0; transition: opacity .35s var(--ease), translate .35s var(--ease); }
.ftab.is-active .ftab__arrow, .ftab__head:hover .ftab__arrow { opacity: 1; translate: 0 0; }
.ftab__body { display: grid; grid-template-rows: 0fr; padding: 0 18px 0 62px; transition: grid-template-rows .5s var(--ease), padding .5s var(--ease); }
.ftab__body > div { overflow: hidden; }
.ftab.is-active .ftab__body { grid-template-rows: 1fr; padding-bottom: 14px; }
.ftab__body p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--slate-600); }
.pfeat__media { min-height: 0; aspect-ratio: 790 / 480; }
.pfeat__slide { position: absolute; inset: 0; margin: 0; opacity: 0; scale: 1.06; transition: opacity .6s var(--ease), scale 1.2s var(--ease); }
.pfeat__slide.is-on { opacity: 1; scale: 1; z-index: 1; }
.pfeat__slide .pfeat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pfeat__media:hover .pfeat__img { transform: none; }

/* Feature list and photo are the same height; tabs share the space and the
   hovered tab's paragraph opens within it. */
.pfeat__grid { align-items: stretch; }
.pfeat__media { aspect-ratio: 790 / 480; height: auto; }
.pfeat__list { display: flex; flex-direction: column; }
.ftab { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 1100px) { .ftab { flex: none; } }

/* Phones: let product headings flow naturally (no forced line breaks). */
@media (max-width: 600px) {
	.phero__title br, .band__title br, .faq-hero__title br, .support__title br { display: none; }
	.phero__title { font-size: clamp(32px, 9vw, 40px); letter-spacing: .02em; }
}
.psync__label { font-size: 11px; }
