/* Home page sections for Live, DP, Pros and Virtual (views/home_app_promos.php). */
.home-app {
  --ha-navy: #0b1730;
  --ha-navy-2: #12264d;
  --ha-line: rgba(15, 23, 42, .08);
  --ha-card: #fff;
  --ha-skeleton: rgba(15, 23, 42, .1);
  --ha-tone-a: linear-gradient(160deg, #3b82f6, #1e3a8a);
  --ha-tone-b: linear-gradient(160deg, #60a5fa, #1d4ed8);
  --ha-tone-c: linear-gradient(160deg, #1e40af, #0f1f4d);
  --ha-tone-d: linear-gradient(160deg, #93c5fd, #2563eb);
  padding: 20px 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}
html.night-mode .home-app,
[data-theme="dark"] .home-app { --ha-line: rgba(255, 255, 255, .08); --ha-card: #17181c; --ha-skeleton: rgba(255, 255, 255, .12); }

.home-app h2 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 14px;
  max-width: 20ch;
  text-wrap: balance;
}
.home-app__label { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--brand); }
.home-app__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-app__points { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.home-app__points li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; }
.home-app__points svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.home-app__button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 12px; background: var(--brand-fill); color: #fff; font-weight: 500; text-decoration: none;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-fill) 28%, transparent);
  transition: transform .15s ease, background-color .2s ease;
}
.home-app__button:hover { background: var(--brand-fill-600); color: #fff; transform: translateY(-1px); }
.home-app__button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.home-app__button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-app__button--quiet { background: transparent; color: var(--text); border: 1px solid var(--ha-line); box-shadow: none; }
.home-app__button--quiet:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); color: var(--text); }

/* Shared pieces of the designs */
.home-app__art { position: relative; user-select: none; }
.home-app__art svg { display: block; }
.ha-tone-a { background: var(--ha-tone-a); }
.ha-tone-b { background: var(--ha-tone-b); }
.ha-tone-c { background: var(--ha-tone-c); }
.ha-tone-d { background: var(--ha-tone-d); }
.ha-person { width: 100%; height: 100%; fill: rgba(255, 255, 255, .82); }
.ha-bar { display: block; height: 8px; border-radius: 99px; background: var(--ha-skeleton); }
.ha-bar--soft { opacity: .6; }
.ha-dot { display: block; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; }

/* Live: navy panel, text left, event window right */
.home-app__panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 40px; align-items: center;
  padding: 28px 28px 28px 40px; border-radius: calc(var(--radius) + 6px); color: #fff;
  background: radial-gradient(120% 90% at 0% 0%, rgba(37, 99, 235, .3), transparent 60%), linear-gradient(135deg, var(--ha-navy) 0%, var(--ha-navy-2) 100%);
  box-shadow: 0 24px 60px rgba(11, 23, 48, .22);
}
.home-app--live .home-app__label { color: #ffb38a; }
.home-app--live .home-app__points li { color: rgba(255, 255, 255, .88); }
.home-app--live .home-app__points svg { stroke: #ffb38a; }
.ha-live__window {
  border-radius: 16px; padding: 10px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); backdrop-filter: blur(8px);
}
.ha-live__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ha-live__badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: #dc2626; font-size: 12px; font-weight: 500; }
.ha-live__badge span { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: ha-blink 1.6s ease-in-out infinite; }
.ha-live__dots { display: flex; gap: 5px; }
.ha-live__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.ha-live__body { display: grid; grid-template-columns: minmax(0, 1fr) 30%; gap: 10px; }
.ha-live__stage { display: grid; grid-template-rows: 1fr auto; gap: 8px; }
.ha-live__main { position: relative; aspect-ratio: 16 / 8; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(255, 179, 138, .9); }
.ha-live__main .ha-person { position: absolute; inset: 18% 0 0; height: 82%; }
.ha-live__wave { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: flex-end; gap: 3px; height: 18px; padding: 6px 8px; border-radius: 8px; background: rgba(6, 14, 32, .55); box-sizing: content-box; }
.ha-live__wave i { width: 3px; height: 100%; border-radius: 2px; background: #ffb38a; transform-origin: bottom; animation: ha-wave 1.1s ease-in-out infinite; }
.ha-live__wave i:nth-child(2) { animation-delay: -.3s; } .ha-live__wave i:nth-child(3) { animation-delay: -.6s; }
.ha-live__wave i:nth-child(4) { animation-delay: -.15s; } .ha-live__wave i:nth-child(5) { animation-delay: -.45s; }
.ha-live__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ha-live__tile { position: relative; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; }
.ha-live__tile .ha-person { position: absolute; inset: 22% 0 0; height: 78%; }
.ha-live__mic { position: absolute; right: 6px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.ha-live__chat { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.ha-live__msg { display: flex; align-items: center; gap: 8px; }
.ha-live__chat .ha-bar { background: rgba(255, 255, 255, .22); height: 7px; }
.ha-live__input { margin-top: auto; height: 26px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .14); }
.ha-live__controls { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.ha-live__ctl { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.ha-live__ctl svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ha-live__ctl--rec svg { fill: #ef4444; stroke: none; }

/* DP: phone with a framed profile picture */
.home-app__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 40px; align-items: center; padding: 0 0 0 40px; border-radius: calc(var(--radius) + 6px); background: linear-gradient(120deg, var(--surface-alt), color-mix(in srgb, var(--brand) 9%, var(--surface-alt))); border: 1px solid var(--ha-line); overflow: hidden; }
.ha-dp { height: 320px; display: grid; place-items: center; overflow: hidden; }
.ha-dp__glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 28%, transparent), transparent 70%); }
.ha-dp__phone { position: relative; width: 190px; margin-top: 90px; aspect-ratio: 9 / 17; padding: 7px; border-radius: 30px; box-sizing: border-box; background: #0b1220; box-shadow: 0 30px 60px rgba(2, 6, 23, .28); }
.ha-dp__screen { display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; padding: 14px 12px; border-radius: 24px; background: var(--ha-card); box-sizing: border-box; }
.ha-dp__head { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.ha-dp__head .ha-bar { flex: 0 0 auto; }
.ha-dp__close { width: 14px; height: 14px; border-radius: 50%; background: var(--ha-skeleton); }
.ha-dp__frame { position: relative; aspect-ratio: 1; border-radius: 50%; padding: 6px; background: conic-gradient(from 210deg, var(--brand-fill), #ffb38a, var(--brand-fill) 60%, #b84f08, var(--brand-fill)); }
.ha-dp__frame--main { width: 82%; margin-top: 6px; }
.ha-dp__photo { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 4px solid var(--ha-card); box-sizing: border-box; display: flex; align-items: flex-end; }
.ha-dp__photo .ha-person { height: 82%; }
.ha-dp__ribbon { position: absolute; left: 50%; bottom: -4px; width: 64%; height: 18%; transform: translateX(-50%); border-radius: 99px; background: linear-gradient(90deg, #0b1730, #1d4ed8); border: 3px solid var(--ha-card); }
.ha-dp__lines { display: grid; justify-items: center; gap: 8px; width: 100%; }
.ha-dp__actions { display: flex; gap: 10px; margin-top: auto; width: 100%; }
.ha-dp__btn { display: grid; place-items: center; flex: 1; height: 38px; border-radius: 12px; background: var(--ha-skeleton); }
.ha-dp__btn--primary { flex: 2; background: var(--brand-fill); }
.ha-dp__btn svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ha-dp__btn--primary svg { stroke: #fff; }
.ha-dp__frame--float { position: absolute; width: 84px; padding: 4px; box-shadow: 0 16px 30px rgba(2, 6, 23, .2); animation: ha-float 6s ease-in-out infinite; }
.ha-dp__frame--float .ha-dp__photo { border-width: 3px; }
.ha-dp__frame--float .ha-dp__ribbon { border-width: 2px; }
.ha-dp__frame--one { left: 12%; top: 18%; }
.ha-dp__frame--two { right: 12%; top: 46%; animation-delay: -3s; }
.ha-dp__chip { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ha-card); box-shadow: 0 12px 24px rgba(2, 6, 23, .14); }
.ha-dp__chip svg { width: 20px; height: 20px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ha-dp__chip--like { right: 20%; top: 12%; }
.ha-dp__chip--like svg { fill: #ef4444; stroke: #ef4444; }
.ha-dp__chip--share { left: 16%; bottom: 14%; }
.ha-dp__chip--share svg { stroke: var(--brand); }

/* Pros: stage with offer and agreement, two choices beside it */
.home-app__pros { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 40px; align-items: stretch; padding: 20px; border-radius: calc(var(--radius) + 6px); background: var(--surface-alt); border: 1px solid var(--ha-line); }
.home-app__pros-text { align-self: center; padding: 8px 20px 8px 0; }
.home-app__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-app__choice { display: flex; flex-direction: column; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--ha-card); border: 1px solid var(--ha-line); }
.home-app__choice--primary { border-color: color-mix(in srgb, var(--brand) 35%, transparent); box-shadow: 0 18px 40px rgba(2, 6, 23, .08); }
.home-app__choice-title { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.home-app__choice .home-app__points { margin-bottom: 16px; }
.home-app__choice .home-app__button { margin-top: auto; }
.ha-pros { min-height: 320px; }
.ha-pros__stage { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; background: radial-gradient(70% 60% at 50% 100%, rgba(37, 99, 235, .45), transparent 70%), linear-gradient(180deg, #050b1a, #0b1730 70%, #12264d); }
.ha-pros__beam { position: absolute; top: -10%; width: 34%; height: 95%; clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); opacity: .55; filter: blur(2px); transform-origin: top center; animation: ha-sweep 7s ease-in-out infinite alternate; }
.ha-pros__beam--l { left: 14%; background: linear-gradient(180deg, rgba(147, 197, 253, .9), rgba(147, 197, 253, 0)); }
.ha-pros__beam--r { right: 14%; background: linear-gradient(180deg, rgba(255, 160, 100, .85), rgba(255, 160, 100, 0)); animation-delay: -3.5s; }
.ha-pros__performer { position: absolute; left: 58%; bottom: 14%; width: 17%; transform: translateX(-50%); fill: #020617; filter: drop-shadow(0 0 1px rgba(255, 196, 150, .9)) drop-shadow(0 0 14px rgba(147, 197, 253, .45)); }
.ha-pros__halo { position: absolute; left: 58%; bottom: 10%; width: 40%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 150, 90, .55), rgba(37, 99, 235, .2) 45%, transparent 70%); }
.ha-pros__crowd { position: absolute; left: 0; bottom: 0; width: 100%; height: 12%; fill: #020617; }
.ha-pros__hands { fill: none; stroke: #020617; stroke-width: 7; stroke-linecap: round; }
.ha-pros__mic { fill: none; stroke: #020617; stroke-width: 5; stroke-linecap: round; }
.ha-pros__mic-head { fill: #020617; }
.ha-pros__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 15%; background: linear-gradient(180deg, #1e3a8a, #0b1730); box-shadow: 0 -2px 0 rgba(147, 197, 253, .35); }
.ha-pros__offer, .ha-pros__contract { position: absolute; padding: 14px; border-radius: 18px; background: var(--ha-card); box-shadow: 0 24px 50px rgba(2, 6, 23, .3); }
.ha-pros__offer { left: 5%; bottom: 9%; width: 40%; display: grid; gap: 10px; animation: ha-float 7s ease-in-out infinite; }
.ha-pros__who { display: flex; align-items: center; gap: 10px; }
.ha-pros__avatar { flex: 0 0 40px; height: 40px; border-radius: 50%; overflow: hidden; display: flex; align-items: flex-end; }
.ha-pros__avatar .ha-person { height: 85%; }
.ha-pros__lines { display: grid; gap: 7px; flex: 1; }
.ha-pros__stars { display: flex; gap: 3px; }
.ha-pros__stars svg { width: 14px; height: 14px; fill: #f59e0b; }
.ha-pros__budget { height: 8px; border-radius: 99px; background: var(--ha-skeleton); }
.ha-pros__budget span { display: block; width: 68%; height: 100%; border-radius: inherit; background: var(--brand-fill); }
.ha-pros__buttons { display: flex; gap: 8px; }
.ha-pros__buttons span { display: grid; place-items: center; height: 34px; border-radius: 10px; }
.ha-pros__accept { flex: 2; background: #16a34a; }
.ha-pros__counter { flex: 1; background: var(--ha-skeleton); }
.ha-pros__buttons svg { width: 18px; height: 18px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ha-pros__accept svg { stroke: #fff; }
.ha-pros__counter svg { stroke: var(--text); }
.ha-pros__contract { right: 5%; top: 9%; width: 30%; display: grid; gap: 8px; transform: rotate(3deg); animation: ha-float 8s ease-in-out infinite; animation-delay: -4s; }
.ha-pros__sign { width: 80%; height: auto; fill: none; stroke: #1d4ed8; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 360; stroke-dashoffset: 360; animation: ha-sign 4s ease-in-out infinite; }
.ha-pros__seal { position: absolute; right: -10px; bottom: -10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-fill); box-shadow: 0 8px 16px rgba(2, 6, 23, .25); }
.ha-pros__seal svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Virtual: night city band, text over a blue scrim */
.home-app--virtual { position: relative; padding: 0; margin: 20px 0; overflow: hidden; color: #fff; background: #050b1a; }
.ha-virtual { height: clamp(340px, 26vw, 400px); }
.ha-virtual > svg { width: 100%; height: 100%; }
.ha-virtual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 11, 26, .9) 0%, rgba(5, 11, 26, .55) 36%, rgba(5, 11, 26, 0) 62%); }
.hv-bld { fill: #0a1733; }
.hv-stars circle { fill: #dbeafe; opacity: .7; }
.hv-palm { fill: #0a2a1f; stroke: #0a2a1f; }
.hv-inlay { fill: none; stroke: var(--brand-fill); stroke-width: 6; opacity: .85; }
.hv-inlay--inner { opacity: .5; }
.hv-skin { fill: #7a4a2e; }
.hv-leg { fill: #0b1220; }
.hv-cloth { stroke: rgba(0, 0, 0, .25); stroke-width: 1; }
.hv-tone-a { fill: #ea580c; } .hv-tone-b { fill: #16a34a; } .hv-tone-c { fill: #db2777; } .hv-tone-d { fill: #eab308; }
.hv-step { animation: ha-bob .9s ease-in-out infinite; }
.hv-walker { filter: drop-shadow(0 0 3px rgba(255, 154, 77, .35)); }
.hv-delay-1 .hv-step { animation-delay: -.3s; } .hv-delay-2 .hv-step { animation-delay: -.6s; }
.home-app__overlay { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; z-index: 1; }
.home-app__overlay .home-app__text { pointer-events: auto; max-width: 440px; }
.home-app--virtual .home-app__label { color: #ffb38a; }
.home-app--virtual .home-app__points li { color: rgba(255, 255, 255, .9); }
.home-app--virtual .home-app__points svg { stroke: #ffb38a; }

@keyframes ha-blink { 50% { opacity: .35; } }
@keyframes ha-wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes ha-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes ha-sweep { from { rotate: -10deg; } to { rotate: 10deg; } }
@keyframes ha-sign { 0% { stroke-dashoffset: 360; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ha-bob { 50% { translate: 0 -3px; } }

@media (max-width: 1100px) {
  .home-app__choices { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .home-app__pros { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
  .home-app__pros-text { padding: 0 4px 4px; }
  .home-app__choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ha-pros { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 860px) {
  .home-app { padding: 16px 0; }
  .home-app__panel { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .home-app__split { grid-template-columns: 1fr; gap: 8px; padding: 24px 24px 0; }
  .ha-dp { height: 260px; }
  .ha-dp__phone { width: 160px; margin-top: 90px; }
  .ha-live__body { grid-template-columns: 1fr; }
  .ha-live__chat { display: none; }
  .home-app--virtual { display: flex; flex-direction: column; padding: 0; margin: 16px 0; }
  .ha-virtual { height: 240px; }
  .ha-virtual::after { background: linear-gradient(0deg, #050b1a 0%, rgba(5, 11, 26, 0) 50%); }
  .home-app__overlay { position: static; padding: 4px 16px 28px; }
}
@media (max-width: 600px) {
  .home-app__choices { grid-template-columns: 1fr; }
  .ha-pros { aspect-ratio: 5 / 4; }
  .ha-pros__offer { width: 58%; left: 4%; bottom: 6%; }
  .ha-pros__performer, .ha-pros__halo { left: 76%; }
  .ha-pros__contract { width: 44%; }
  .ha-dp__frame--float { width: 64px; }
  .ha-dp__frame--one { left: 4%; }
  .ha-dp__frame--two { right: 4%; }
  .ha-dp__chip--like { right: 8%; }
  .ha-dp__chip--share { left: 6%; }
}
@media (max-width: 380px) {
  .home-app__panel { padding: 20px 16px; }
  .home-app__button { width: 100%; justify-content: center; }
  .ha-live__ctl { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-app *, .home-app *::before, .home-app *::after { animation: none !important; transition: none !important; }
  .ha-pros__sign { stroke-dashoffset: 0; }
}
