/* "Inside TV Flow": the remote, prayer and Kids, one screen at a time, with a voice (2026-10-26,
   design B). First an opening with a sound button; pressing it only gets the voice ready, the
   lights go down and the first scroll starts it. A bar at the top pauses or ends it. Prefix in-. */
.in-open, .in-tour { color: #12192a; transition: background 1.2s, color 1.2s; }
body.in-show .in-open, body.in-show .in-tour { background: #0a0e1f; color: #fff; }
body.in-show .in-open p, body.in-show .in-say p { color: #a9b3d3; }
body.in-show .in-kick { color: #8fb0ff; }
body.in-show .in-bar { background: rgba(255, 255, 255, .15); }
body.in-show .in-stage .in-frame { box-shadow: 0 0 0 2px #5b6383, 0 0 0 3px #3a405c, 0 0 90px -10px rgba(90, 130, 255, .35); }
.nav.in-dock { transform: translateY(-110%); opacity: 0; pointer-events: none; }

/* The opening. */
.in-open { position: relative; z-index: 1; display: grid; place-items: center; text-align: center; padding: 120px 24px 20px; }
.in-open h2 { margin: 0; font-size: clamp(44px, 6vw, 88px); letter-spacing: -.045em; line-height: 1.02; }
.in-open p { margin: 18px auto 0; font-size: clamp(17px, 1.5vw, 21px); color: #5a6478; max-width: 36ch; }
.in-play { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border: 0; border-radius: 999px; background: var(--flow, #1f66ff); color: #fff; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 16px 30px -14px rgba(31, 102, 255, .8); transition: transform .2s; }
.in-play:hover { transform: translateY(-2px); } .in-play svg { width: 18px; height: 18px; }
.in-play.ready { width: 72px; height: 72px; padding: 0; justify-content: center; border-radius: 50%; cursor: default; animation: in-ring 2s infinite; }
.in-play.ready:hover { transform: none; }
@keyframes in-ring { 0% { box-shadow: 0 0 0 0 rgba(31, 102, 255, .55); } 100% { box-shadow: 0 0 0 26px rgba(31, 102, 255, 0); } }
.in-wave { display: flex; align-items: center; gap: 4px; height: 26px; }
.in-wave i { width: 4px; border-radius: 4px; background: #fff; animation: in-wave 1s ease-in-out infinite; }
.in-wave i:nth-child(1) { animation-delay: -.2s; } .in-wave i:nth-child(2) { animation-delay: -.5s; } .in-wave i:nth-child(3) { animation-delay: -.1s; } .in-wave i:nth-child(4) { animation-delay: -.7s; } .in-wave i:nth-child(5) { animation-delay: -.35s; }
@keyframes in-wave { 0%, 100% { height: 6px; } 50% { height: 26px; } }
.in-skip { display: block; margin-top: 12px; color: #6b7487; font-size: 14px; }
.in-cue { display: flex; width: fit-content; flex-direction: column; align-items: center; gap: 10px; margin: 22px auto 0; font-size: 15px; font-weight: 700; color: #cfd7f2; opacity: 0; transform: translateY(8px); transition: opacity .8s .4s, transform .8s .4s; }
body.in-show .in-cue { opacity: 1; transform: none; }
.in-mouse { width: 24px; height: 38px; border: 2px solid #cfd7f2; border-radius: 14px; position: relative; }
.in-mouse::after { content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #cfd7f2; animation: in-wheel 1.5s ease-in-out infinite; }
@keyframes in-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* The tour. */
.in-tour { position: relative; height: 300vh; margin-top: -22vh; } /* the first screen sits in the middle of its pin; this pulls it closer to the opening */
.in-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-columns: minmax(280px, .8fr) 1.4fr; align-items: center; gap: 5vw; padding: 0 5vw; }
.in-bar { position: absolute; left: 50%; bottom: 22px; width: 160px; height: 3px; margin-left: -80px; border-radius: 3px; background: rgba(120, 130, 160, .25); overflow: hidden; }
.in-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--flow, #1f66ff); transition: width .3s; }
.in-tour [data-b], .in-tour [data-s] { opacity: 0; transition: opacity .7s, transform .7s; pointer-events: none; }
.in-tour [data-b].on, .in-tour [data-s].on { opacity: 1; pointer-events: auto; }
.in-say { position: relative; height: 340px; }
.in-say > div { position: absolute; inset: 0; display: grid; align-content: center; transform: translateY(14px); } .in-say > div.on { transform: none; }
.in-kick { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--flow, #1f66ff); margin-bottom: 12px; }
.in-say h3 { margin: 0; font-size: clamp(32px, 4.4vw, 62px); letter-spacing: -.04em; line-height: 1.04; }
.in-say p { margin: 14px 0 0; font-size: clamp(16px, 1.5vw, 20px); color: #5a6478; max-width: 34ch; }
.in-stage { position: relative; height: min(78vh, 720px); }
.in-stage > [data-b] { position: absolute; inset: 0; display: grid; place-items: center; transform: translateX(30px) scale(.97); }
.in-stage > [data-b].on { transform: none; }
.in-frame { background: #0b0d12; border-radius: 16px; padding: 1.1%; box-shadow: 0 0 0 2px #c9cdd4, 0 0 0 3px #9aa0a9, 0 50px 90px -40px rgba(16, 24, 60, .55); }
.in-tvf { width: 100%; }
.in-view { position: relative; overflow: hidden; border-radius: 7px; background: #050608; }
.in-tvv { aspect-ratio: 16 / 9; }
.in-phone { height: 100%; width: auto; min-width: 0; aspect-ratio: 408 / 862; } .in-phone .in-frame { padding: 9px; border-radius: 34px; height: 100%; } .in-phone .in-view { height: 100%; border-radius: 26px; }
.in-phone .in-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.in-layers { position: absolute; inset: 0; }
.in-layers > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .7s; }
.in-layers > .on { opacity: 1; }
.in-card { position: absolute; top: 5%; right: 3%; width: min(380px, 46%); padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #12192a; display: grid; grid-template-columns: 32px 1fr; gap: 1px 12px; align-items: center; font-size: 14px; transform: translateY(-150%); opacity: 0; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .4s; text-align: left; }
.in-card.on { transform: none; opacity: 1; }
.in-card > i { grid-row: span 2; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-style: normal; background: #eef3ff; color: var(--flow, #1f66ff); }
.in-card.k > i { background: #fff4e0; color: #c77a00; }
.in-card b { line-height: 1.25; } .in-card small { color: #6b7487; font-size: 12px; }
.in-btns { grid-column: 2; display: flex; gap: 6px; margin-top: 6px; } .in-btns span { padding: 3px 10px; border-radius: 999px; background: var(--flow, #1f66ff); color: #fff; font-weight: 700; font-size: 12px; } .in-btns span.g { background: #e6e9f0; color: #12192a; }
.in-toast { position: absolute; left: 50%; bottom: 7%; transform: translate(-50%, 20px); padding: 8px 16px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 14px; font-weight: 700; opacity: 0; transition: opacity .4s, transform .4s; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.in-toast.on { opacity: 1; transform: translate(-50%, 0); } .in-toast svg { width: 16px; height: 16px; }
.in-tap { position: absolute; left: 50%; top: 40%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: rgba(31, 102, 255, .4); box-shadow: 0 0 0 2px rgba(31, 102, 255, .9); opacity: 0; }
.in-tap.go { animation: in-tap 1s ease-out; }
@keyframes in-tap { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
.in-faiths { position: absolute; left: 3%; top: 6%; display: flex; gap: 8px; opacity: 0; transition: opacity .4s; } .in-faiths.on { opacity: 1; }
.in-faiths span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: rgba(255, 255, 255, .6); font-size: 16px; transition: background .3s, color .3s; }
.in-faiths span.on { background: #fff; color: var(--flow, #1f66ff); }
.in-stats { background: #f6f8fb; padding: 6% 8%; color: #12192a; text-align: left; }
.in-stats h4 { margin: 0 0 4%; font-size: clamp(16px, 2vw, 28px); letter-spacing: -.02em; } .in-stats h4 small { display: block; color: #6b7487; font-size: .55em; font-weight: 600; }
.in-bars { display: flex; align-items: flex-end; gap: 4%; height: 62%; }
.in-bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; height: 100%; }
.in-bars i { width: 100%; border-radius: 8px 8px 0 0; background: #ffb547; height: 0; transition: height 1s cubic-bezier(.2, .8, .2, 1); } .in-bars small { color: #6b7487; font-size: 13px; }
.in-stats.on .in-bars i { height: var(--h); }

/* The laptop, the phone's TV tab, the volume bar. */
.in-laptop { width: 82%; }
.in-pcv { aspect-ratio: 16 / 10; }
.in-pcv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s; } .in-pcv video.on { opacity: 1; }
.in-base { display: block; height: 14px; margin: 0 -7%; border-radius: 2px 2px 14px 14px; background: linear-gradient(#eceef2, #c5c9d0 55%, #9ea3ac); }
.in-tvtab { position: absolute; left: 52%; top: 6.6%; width: 42%; height: 3.6%; border-radius: 8px; box-shadow: 0 0 0 2px var(--flow, #1f66ff), 0 0 14px rgba(31, 102, 255, .8); opacity: 0; transition: opacity .3s; }
.in-tvtab.on { opacity: 1; }
.in-vol { position: absolute; left: 50%; bottom: 8%; width: 40%; transform: translate(-50%, 16px); padding: 10px 16px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; opacity: 0; transition: opacity .4s, transform .4s; }
.in-vol.on { opacity: 1; transform: translate(-50%, 0); }
.in-vol svg { width: 18px; height: 18px; flex: none; }
.in-vol b { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.in-vol b::after { content: ''; position: absolute; inset: 0; width: 40%; background: #fff; transition: width 1.2s .3s; }
.in-vol.on b::after { width: 75%; }
.in-vol span { padding: 1px 6px; border-radius: 4px; background: #fff; color: #000; }

/* The bar at the top while the tour plays. */
.in-dock { position: fixed; left: 50%; top: 16px; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(25, 32, 61, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px -18px rgba(0, 0, 0, .6); transform: translate(-50%, -140%); opacity: 0; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.in-dock.on { transform: translate(-50%, 0); opacity: 1; }
.in-dock .in-wave { height: 18px; gap: 3px; } .in-dock .in-wave i { width: 3px; animation-name: in-wave2; } @keyframes in-wave2 { 0%, 100% { height: 4px; } 50% { height: 18px; } }
.in-dock.paused .in-wave i { animation-play-state: paused; opacity: .5; }
.in-dlabel { font-size: 13.5px; font-weight: 700; white-space: nowrap; min-width: 150px; }
.in-dock button { width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.in-dock button:hover { background: rgba(255, 255, 255, .22); } .in-dock button svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
  .in-pin { grid-template-columns: 1fr; padding: 70px 20px 60px; gap: 16px; }
  .in-say { height: 190px; } .in-stage { height: 52vh; }
}
@media (prefers-reduced-motion: reduce) { .in-wave i, .in-play.ready, .in-mouse::after { animation: none; } }
