/* Social ad: phone feed, targeting layers, creative variants (includes/visuals/phonead.php) */
.pa { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
@media (min-width: 640px) { .pa { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 36px; } }
@media (min-width: 1200px) { .pa { grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: 48px; } }
.pa p { margin: 0; }

/* phone */
.pa-phone { width: 100%; max-width: 270px; justify-self: center; padding: 9px; border-radius: 38px; background: var(--panel); box-shadow: 0 30px 60px -30px rgba(12, 43, 21, .55); }
.pa-screen { position: relative; display: flex; flex-direction: column; aspect-ratio: 9 / 18.5; border-radius: 30px; overflow: hidden; background: var(--white); }
.pa-status { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 4px; font-size: 11px; font-weight: 700; color: var(--ink); }
.pa-notch { width: 70px; height: 18px; border-radius: 999px; background: var(--panel); }
.pa-sig { display: inline-flex; align-items: flex-end; gap: 2px; }
.pa-sig i { width: 3px; background: var(--ink); border-radius: 1px; height: 5px; }
.pa-sig i:nth-child(2) { height: 7px; } .pa-sig i:nth-child(3) { height: 9px; }
.pa-app { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 10px; border-bottom: 1px solid var(--line); font-family: var(--font-serif); font-size: 17px; color: var(--forest); }
.pa-app-i { display: inline-flex; gap: 8px; }
.pa-app-i i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--forest); }
.pa-viewport { position: relative; flex: 1; overflow: hidden; background: var(--paper); }
.pa-feed { display: grid; gap: 8px; padding: 8px 0; }
.pa-post { background: var(--white); padding: 10px 12px; display: grid; gap: 6px; }
.pa-ph-head, .pa-ad-head { display: flex; align-items: center; gap: 8px; }
.pa-av { width: 26px; height: 26px; border-radius: 50%; background: var(--line); flex: none; }
.pa-av--brand { background: var(--forest); box-shadow: inset 0 0 0 7px var(--forest), inset 0 0 0 13px var(--green); }
.pa-ph { display: block; height: 6px; border-radius: 3px; background: #e8e4de; }
.pa-ph--20 { width: 20%; } .pa-ph--25 { width: 25%; } .pa-ph--40 { width: 40%; } .pa-ph--70 { width: 70%; } .pa-ph--90 { width: 90%; }
.pa-pic { display: block; height: 70px; border-radius: 6px; background: linear-gradient(135deg, #e6e2dc, #d9d5cf); }
.pa-post--1 .pa-pic { height: 30px; }
.pa-ad-id { display: grid; line-height: 1.2; min-width: 0; }
.pa-ad-id strong { font-size: 12.5px; color: var(--ink); }
.pa-ad-id span { font-size: 10.5px; color: var(--ink-2); }
.pa-more { display: inline-flex; gap: 2px; margin-left: auto; }
.pa-more i { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-2); }
.pa-ad-text { font-size: 11.5px; line-height: 1.4; color: var(--ink); }
.pa-cta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; margin: -6px -12px 0; background: var(--paper); font-size: 10.5px; color: var(--ink-2); }
.pa-cta-b { padding: 4px 9px; border-radius: 6px; background: var(--forest); color: var(--white); font-weight: 600; white-space: nowrap; }
.pa-react { display: flex; align-items: center; gap: 6px; }
.pa-react .pa-ph { width: 40px; }
.pa-react-r { margin-left: auto; width: 34px; }
.pa-react-r .pa-ph { width: 100%; }
.pa-heart { width: 12px; height: 12px; border-radius: 50%; background: var(--green-2); }

/* creatives (the large one in the feed and the thumbnails) */
.pa-crea { position: relative; display: block; overflow: hidden; border-radius: 6px; margin: 0 -12px; border-radius: 0; aspect-ratio: 1.2; }
.pa-crea-shape { position: absolute; }
.pa-crea--b { background: var(--forest); }
.pa-crea--b .pa-crea-shape { width: 56%; aspect-ratio: 1; right: -14%; top: -18%; border-radius: 50%; background: var(--green); }
.pa-crea--b .pa-crea-shape::after { content: ""; position: absolute; left: -78%; top: 62%; width: 30%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--sage); }
.pa-crea-t { position: absolute; left: 14px; right: 14px; bottom: 14px; font-family: var(--font-serif); font-size: 21px; line-height: 1.12; color: var(--white); }
.pa-crea--a { background: var(--sage); }
.pa-crea--a .pa-crea-shape { left: 22%; right: 22%; top: 20%; bottom: 14%; border-radius: 40% 40% 8px 8px; background: var(--forest-2); }
.pa-crea--c { background: var(--mint); }
.pa-crea--c .pa-crea-shape { left: 10%; top: 18%; width: 52%; height: 64%; border-radius: 4px; background: var(--white); box-shadow: 14px 0 0 -2px var(--green-2), 26px 0 0 -4px var(--sage); }

/* targeting layers */
.pa-side { min-width: 0; }
.pa-layers { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.pa-layer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 14px; border-radius: 10px; background: var(--paper); }
.section--paper .pa-layer { background: var(--white); }
.pa-layer--2 { margin-left: 8px; } .pa-layer--3 { margin-left: 16px; }
@media (min-width: 1200px) { .pa-layer--2 { margin-left: 14px; } .pa-layer--3 { margin-left: 28px; } }
.pa-layer--out { background: none !important; border: 1.5px dashed #7d8a80; }
.pa-sign { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--green); font-weight: 700; font-size: 16px; line-height: 1; }
.pa-layer--out .pa-sign { background: none; border: 1.5px solid var(--ink-2); color: var(--ink-2); }
.pa-layer > span:last-child { display: grid; gap: 1px; }
.pa-layer strong { font-size: 15.5px; color: var(--forest); }
.pa-layer span span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* variants */
.pa-vars-l { margin-top: 26px !important; }
.pa-metric { letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--ink-2); }
.pa-vars { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.pa-var { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 8px 12px 10px 8px; border-radius: 10px; border: 1.5px solid var(--line); }
.pa-var--win { border-color: var(--green-2); background: var(--mint); }
.pa-thumb { grid-row: 1 / 3; margin: 0; width: 44px; height: 44px; border-radius: 6px; }
.pa-var-t { display: grid; line-height: 1.3; min-width: 0; }
.pa-var-t strong { font-size: 14.5px; color: var(--forest); }
.pa-var-t span { font-size: 13.5px; color: var(--ink-2); }
.pa-var-s { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.pa-var--win .pa-var-s { padding: 3px 9px; border-radius: 999px; background: var(--forest); color: var(--green); }
.pa-bar { grid-column: 2 / -1; display: block; width: 100%; height: 8px; }
.pa-bar-bg { fill: var(--line); }
.pa-bar-v { fill: #7d8a80; }
.pa-var--win .pa-bar-bg { fill: var(--white); }
.pa-var--win .pa-bar-v { fill: var(--forest); }

/* animation: the phone rises, the layers stack up, the variant bars fill, the winner is marked; the feed scrolls */
.js .vz-figure .pa-phone { opacity: 0; transform: translateY(18px); transition: opacity .6s ease .1s, transform .7s cubic-bezier(.2, .7, .2, 1) .1s; }
.js .vz-figure .pa-layer { opacity: 0; transform: translateX(16px); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
.js .vz-figure .pa-layer--1 { transition-delay: .4s; } .js .vz-figure .pa-layer--2 { transition-delay: .55s; }
.js .vz-figure .pa-layer--3 { transition-delay: .7s; } .js .vz-figure .pa-layer--4 { transition-delay: .85s; }
.js .vz-figure .pa-bar-v { transform: scaleX(0); transform-box: fill-box; transition: transform 1s cubic-bezier(.2, .7, .2, 1) 1.1s; }
.js .vz-figure .pa-var--win .pa-var-s { opacity: 0; transform: scale(.7); transition: opacity .35s ease 2.1s, transform .45s cubic-bezier(.3, 1.4, .5, 1) 2.1s; }
.js .vz-figure.is-visible .pa-phone, .js .vz-figure.is-visible .pa-layer, .js .vz-figure.is-visible .pa-var--win .pa-var-s { opacity: 1; transform: none; }
.js .vz-figure.is-visible .pa-bar-v { transform: none; }
.js .vz-figure.is-visible .pa-feed { animation: pa-scroll 10s ease-in-out 1.6s infinite; }
@keyframes pa-scroll { 0%, 100% { transform: none; } 40%, 60% { transform: translateY(-64px); } }

@media (max-width: 639px) {
  .pa-phone { max-width: 250px; }
}
