/* Home hero v4 (2026-09-26): a real business, a real phone on the bench, and the front desk playing on its screen.
   Industry chips (trade / gym / salon / café) swap the photo and the screen. Then the "how it works" loop. */
.hero4 { position: relative; height: min(100svh, 960px); min-height: 640px; overflow: hidden; background: var(--ink); isolation: isolate; }
.h4-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; transition: opacity .6s var(--ease); }
.h4-stage img { display: block; max-width: none; }
.h4-stage.swap { opacity: 0; }
.h4-screen, .h4-glow { position: absolute; left: 0; top: 0; width: 844px; height: 390px; transform-origin: 0 0; }
.h4-glow { border-radius: 60px; opacity: 0; transition: opacity .5s; box-shadow: 0 0 90px 40px rgba(150,200,255,.5); }
.hero4.lit .h4-glow { opacity: .5; }
.h4-screen { border-radius: 46px; overflow: hidden; background: #000; color: #fff; font-family: -apple-system, "SF Pro Display", "Instrument Sans", system-ui, sans-serif; }
.h4-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.16), rgba(255,255,255,0) 38%, rgba(255,255,255,0) 70%, rgba(255,255,255,.07)); }
.h4-sc { position: absolute; inset: 0; opacity: 0; transition: opacity .45s; }
.h4-sc.on { opacity: 1; }
.h4-ring { background: radial-gradient(120% 140% at 20% 20%, #1d3a66, #0a1426 60%); display: flex; align-items: center; gap: 44px; padding: 0 60px; }
.h4-av { width: 170px; height: 170px; border-radius: 50%; background: linear-gradient(135deg, #f3c56b, #E0A93A); display: grid; place-items: center; font: 800 92px/1 var(--display); color: #3a2600; flex: none; animation: h4pulse 1.1s infinite; }
@keyframes h4pulse { 0% { box-shadow: 0 0 0 0 rgba(224,169,58,.7); } 100% { box-shadow: 0 0 0 46px rgba(224,169,58,0); } }
.h4-ring b { display: block; font-size: 96px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.h4-ring span { display: block; font-size: 44px; color: #b9c8de; margin-top: 14px; }
.h4-ring .keys { margin-left: auto; display: flex; flex-direction: column; gap: 26px; }
.h4-ring .keys i { width: 110px; height: 110px; border-radius: 50%; display: block; background: #34d399; }
.h4-ring .keys i:first-child { background: #ff5a4f; }
.h4-stack { background: linear-gradient(160deg, #101d35, #060b16); padding: 40px 44px; display: flex; flex-direction: column; gap: 26px; justify-content: center; }
.h4-ban { display: flex; align-items: center; gap: 30px; background: rgba(255,255,255,.12); border-radius: 40px; padding: 26px 34px; font-size: 52px; font-weight: 600; line-height: 1.05; transform: translateY(30px); opacity: 0; transition: all .5s; }
.h4-sc.on .h4-ban { transform: none; opacity: 1; }
.h4-sc.on .h4-ban:nth-child(2) { transition-delay: .9s; }
.h4-ban em { font-style: normal; font-size: 60px; width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; flex: none; background: #ff5a4f; }
.h4-ban:nth-child(2) em { background: #34d399; }
.h4-ban small { display: block; font-size: 34px; color: #b9c8de; font-weight: 500; margin-top: 8px; }
.h4-chat { background: #05080f; padding: 34px 40px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.h4-bub { max-width: 82%; padding: 24px 34px; border-radius: 44px; font-size: 50px; font-weight: 500; line-height: 1.1; opacity: 0; transform: scale(.9); transition: all .4s; }
.h4-sc.on .h4-bub { opacity: 1; transform: none; }
.h4-bub.k { background: #2a3446; align-self: flex-start; border-bottom-left-radius: 12px; }
.h4-bub.c { background: var(--gold); color: #1d1300; align-self: flex-end; border-bottom-right-radius: 12px; transition-delay: 1.3s; }
.h4-job { background: linear-gradient(150deg, #1d1606, #070b14 70%); padding: 50px 48px 22px; display: flex; flex-direction: column; justify-content: center; }
.h4-job .tag { align-self: flex-start; background: var(--gold); color: #1d1300; font: 800 36px/1 var(--display); letter-spacing: .06em; padding: 14px 22px; border-radius: 16px; }
.h4-job b { font: 800 66px/1 var(--display); letter-spacing: -.03em; margin: 18px 0 10px; }
.h4-job span { font-size: 44px; color: #c9d6e8; }
.h4-job .acts { display: flex; gap: 22px; margin-top: 18px; }
.h4-job .acts i { font-style: normal; font-size: 40px; font-weight: 700; padding: 18px 34px; border-radius: 26px; background: rgba(255,255,255,.14); }
.h4-job .acts i:first-child { background: #34d399; color: #03150d; }

.h4-veil { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(12,27,46,.94) 0%, rgba(12,27,46,.7) 28%, rgba(12,27,46,0) 46%, rgba(12,27,46,0) 74%, rgba(12,27,46,.85) 100%); }
.h4-tag { position: absolute; z-index: 2; display: none; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border-radius: 99px; background: rgba(12,27,46,.8); color: var(--sand); font: 600 12px/1 var(--body); white-space: nowrap; transform: translate(-50%, -100%); pointer-events: none; }
.h4-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: h4dot 1.4s infinite; }
.h4-tag::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: rgba(12,27,46,.8); }
@keyframes h4dot { to { box-shadow: 0 0 0 9px rgba(224,169,58,0); } }

.h4-copy { position: absolute; inset: calc(var(--nav-h) + 14px) 0 calc(22px + env(safe-area-inset-bottom)) 0; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; pointer-events: none; color: var(--sand); }
.h4-copy a, .h4-copy button { pointer-events: auto; }
.h4-copy .eyebrow { color: var(--surf-3); }
.h4-title { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 10.4vw, 92px); line-height: .98; letter-spacing: -.035em; margin: 12px 0 12px; max-width: 12ch; text-shadow: 0 2px 30px rgba(12,27,46,.45); }
.h4-title .gold { color: var(--gold); display: block; }
.h4-lede { font-size: 16.5px; line-height: 1.5; max-width: 36ch; color: #e7edf5; text-shadow: 0 1px 12px rgba(12,27,46,.6); }
.h4-inds { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.h4-inds button { font: 600 13.5px/1 var(--body); color: var(--sand); padding: 10px 14px; border-radius: 99px; background: rgba(12,27,46,.55); box-shadow: inset 0 0 0 1.5px rgba(244,239,230,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); min-height: 40px; }
.h4-inds button[aria-pressed="true"] { background: var(--gold); color: var(--ink); box-shadow: none; }
.h4-bottom { margin-top: auto; width: 100%; }
.h4-actions { display: flex; gap: 10px; }
.h4-actions .btn.ghost { background: rgba(12,27,46,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.h4-actions .btn { flex: 1; justify-content: center; padding: 15px 18px; font-size: 15.5px; }
.h4-facts { margin-top: 10px; font: 600 12.5px/1.4 var(--body); text-align: center; color: #fff; text-shadow: 0 1px 8px rgba(12,27,46,.9); }
.h4-facts span + span::before { content: " · "; opacity: .7; }
@media (min-width: 760px) {
  .h4-veil { background: linear-gradient(180deg, rgba(12,27,46,.75), rgba(12,27,46,0) 16%), radial-gradient(ellipse 72% 80% at 0% 0%, rgba(12,27,46,.95), rgba(12,27,46,.66) 52%, rgba(12,27,46,0) 78%); }
  .h4-copy { bottom: auto; top: calc(var(--nav-h) + 6vh); }
  .h4-title { font-size: clamp(52px, 5.6vw, 84px); max-width: 14ch; }
  .h4-lede { font-size: 18px; max-width: 40ch; }
  .h4-bottom { margin-top: 26px; width: auto; }
  .h4-actions { max-width: 460px; }
  .h4-actions .btn { padding: 18px 26px; font-size: 16px; }
  .h4-facts { text-align: left; }
}

/* how it works: the whole loop, per industry */
.h4-loop .lgrid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .h4-loop .lgrid { grid-template-columns: 1fr 380px; column-gap: 72px; row-gap: 0; } .h4-loop .mock { grid-column: 2; grid-row: 1 / 4; } }
@media (max-width: 899px) { .h4-loop .h4-steps { order: 3; } }
.h4-loop .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.h4-loop .tabs button { font: 600 14px/1 var(--body); padding: 11px 16px; border-radius: 99px; color: var(--sand); box-shadow: inset 0 0 0 1.5px rgba(244,239,230,.25); min-height: 42px; }
.h4-loop .tabs button[aria-pressed="true"] { background: var(--gold); color: var(--ink); box-shadow: none; }
@media (max-width: 520px) { .h4-loop .tabs { gap: 6px; flex-wrap: nowrap; } .h4-loop .tabs button { padding: 11px 10px; font-size: 13.5px; flex: none; } }
.h4-loop .h4-steps { list-style: none; display: grid; gap: 8px; counter-reset: s; margin: 0; padding: 0; }
.h4-loop .h4-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 12px 14px; border-radius: 16px; transition: background .3s; counter-increment: s; }
.h4-loop .h4-steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 800 17px/1 var(--display); background: var(--ink-2); color: var(--slate-2); transition: all .3s; }
.h4-loop .h4-steps li.on { background: var(--ink-2); }
.h4-loop .h4-steps li.on::before { background: var(--gold); color: var(--ink); }
.h4-loop .h4-steps b { display: block; font: 700 17.5px/1.25 var(--display); color: var(--sand); }
.h4-loop .h4-steps span { display: block; font-size: 14.5px; color: var(--slate-2); margin-top: 3px; }
.h4-loop .mock { width: min(330px, 100%); margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 46px; background: #000; border: 10px solid #1b2a40; box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 1px #2c3d58; overflow: hidden; display: flex; flex-direction: column; }
.h4-loop .mock .top { padding: 32px 18px 12px; text-align: center; border-bottom: 1px solid #1a2436; background: #0b1320; color: var(--sand); }
.h4-loop .mock .top b { display: block; font: 600 14px/1.2 var(--body); }
.h4-loop .mock .top small { font-size: 11.5px; color: var(--slate); }
.h4-loop .thread { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; overflow: hidden; }
.h4-loop .m { max-width: 84%; padding: 9px 13px; border-radius: 19px; font-size: 13.5px; line-height: 1.35; animation: h4pop .35s both; color: #eef3fb; }
.h4-loop .m.them { background: #26324a; align-self: flex-start; border-bottom-left-radius: 6px; }
.h4-loop .m.us { background: var(--gold); color: #1d1300; align-self: flex-end; border-bottom-right-radius: 6px; }
.h4-loop .m.sys { align-self: center; background: none; color: var(--slate); font-size: 11.5px; padding: 2px; }
.h4-loop .m a { text-decoration: underline; font-weight: 700; }
.h4-loop .m .q { display: block; margin-top: 6px; background: rgba(0,0,0,.12); border-radius: 10px; padding: 7px 9px; font-weight: 600; }
@keyframes h4pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.h4-loop .see { margin-top: 26px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
@media (max-width: 899px) { .h4-loop .see { order: 4; } }
@media (prefers-reduced-motion: reduce) { .h4-av, .h4-tag i { animation: none; } }
.h4-loop h2 { font-size: clamp(38px, 4.8vw, 72px); max-width: 14ch; }
