/* PiP promo 7 · Text-message story (9:16). The whole frame is a phone chat. */
:root {
  --page: #dcd8cf; --accent: #3f8a62; --ui-bg: rgba(20, 32, 46, .82);
  --navy: #14202e; --me: #3f8a62; --them: #ecebe6; --soft: #7b8590;
}
.stage { background: #f7f6f2; font-family: "Figtree", system-ui, sans-serif; color: var(--navy); }
.app { position: absolute; inset: 0; }
.status { position: absolute; left: 0; right: 0; top: 0; height: 96px; display: flex; align-items: center; justify-content: space-between; padding: 0 64px; font-size: 34px; }
.status b { font-weight: 700; font-variant-numeric: tabular-nums; }
.icons { display: flex; gap: 14px; align-items: center; }
.sig { width: 40px; height: 24px; background: linear-gradient(90deg, var(--navy) 0 22%, transparent 22% 26%, var(--navy) 26% 48%, transparent 48% 52%, var(--navy) 52% 74%, transparent 74% 78%, var(--navy) 78%); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.bat { width: 52px; height: 26px; border: 3px solid var(--navy); border-radius: 8px; position: relative; }
.bat::after { content: ""; position: absolute; left: 3px; top: 3px; bottom: 3px; width: 70%; background: var(--navy); border-radius: 3px; }
.head { position: absolute; left: 0; right: 0; top: 96px; height: 180px; display: flex; align-items: center; gap: 26px; padding: 0 48px; border-bottom: 2px solid #e6e3dc; background: rgba(247, 246, 242, .96); z-index: 3; }
.back { width: 54px; height: 54px; fill: none; stroke: var(--me); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.av { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.head b { display: block; font-size: 46px; font-weight: 800; letter-spacing: -.01em; }
.head span { font-size: 28px; color: var(--soft); }

.chat { position: absolute; left: 0; right: 0; top: 276px; height: 1440px; overflow: hidden; }
.inner { position: absolute; left: 0; right: 0; top: 0; padding: 40px 44px 30px; display: flex; flex-direction: column; gap: 16px; }
.day { align-self: center; margin: 22px 0 10px; font-size: 26px; font-weight: 700; color: var(--soft); opacity: 0; }
.msg { max-width: 780px; padding: 26px 36px; border-radius: 46px; font-size: 42px; line-height: 1.28; font-weight: 500; opacity: 0; }
.msg.me { align-self: flex-end; background: var(--me); color: #fff; border-bottom-right-radius: 14px; transform-origin: 100% 100%; }
.msg.them { align-self: flex-start; background: var(--them); border-bottom-left-radius: 14px; transform-origin: 0 100%; }
.msg.photo { padding: 10px; background: var(--me); }
.msg.photo img { width: 520px; height: 520px; border-radius: 38px; object-fit: cover; }
.msg.emoji { background: none; font-size: 120px; padding: 0 10px; }
.typing { position: absolute; left: 44px; top: 0; display: flex; gap: 12px; padding: 30px 36px; border-radius: 46px; border-bottom-left-radius: 14px; background: var(--them); opacity: 0; }
.typing i { width: 18px; height: 18px; border-radius: 50%; background: #9aa1a8; }

.composer { position: absolute; left: 0; right: 0; bottom: 0; height: 204px; padding: 30px 40px 70px; display: flex; align-items: center; gap: 22px; background: #f7f6f2; border-top: 2px solid #e6e3dc; }
.plus { flex: none; width: 76px; height: 76px; border-radius: 50%; background: #e9e7e1; display: grid; place-items: center; font-size: 52px; color: var(--soft); }
.field { position: relative; flex: 1; height: 88px; border-radius: 44px; border: 2px solid #dedad2; background: #fff; display: flex; align-items: center; padding: 0 34px; font-size: 38px; overflow: hidden; white-space: nowrap; }
.field em { position: absolute; left: 34px; font-style: normal; color: #a9aeb3; }
.caret { width: 3px; height: 44px; background: var(--me); margin-left: 2px; opacity: 0; }
.send { flex: none; width: 76px; height: 76px; border-radius: 50%; background: var(--me); display: grid; place-items: center; opacity: .35; }
.send svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.banner {
  position: absolute; left: 30px; right: 30px; top: 30px; z-index: 5;
  display: flex; gap: 26px; align-items: center; padding: 30px 34px;
  border-radius: 44px; background: rgba(255, 255, 255, .97); box-shadow: 0 24px 60px -16px rgba(20, 32, 46, .35);
  opacity: 0;
}
.banner img { flex: none; width: 92px; height: 92px; border-radius: 22px; background: var(--navy); padding: 12px; }
.banner b { display: flex; justify-content: space-between; font-size: 32px; font-weight: 800; }
.banner b em { font-style: normal; font-weight: 500; font-size: 26px; color: var(--soft); }
.banner p { margin-top: 6px; font-size: 36px; line-height: 1.25; }

#end { background: rgba(247, 246, 242, .55); backdrop-filter: blur(18px); }
.end-logo { position: absolute; left: 400px; top: 440px; width: 280px; height: 280px; }
.end-h { position: absolute; left: 80px; right: 80px; top: 780px; text-align: center; font-size: 118px; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.end-h .alt { display: block; color: var(--me); font-weight: 900; }
.end-sub { position: absolute; left: 110px; right: 110px; top: 1060px; text-align: center; font-size: 40px; line-height: 1.3; font-weight: 500; color: #4a5a68; }
.cta { position: absolute; left: 140px; right: 140px; top: 1290px; height: 128px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-size: 44px; font-weight: 800; }
.end-url { position: absolute; left: 0; right: 0; top: 1460px; text-align: center; font-size: 40px; font-weight: 800; }
