/* In-feed phone mock (static ad + carousel) · iPhone shell + Instagram chrome */
.sa { position: relative; overflow: hidden; padding: clamp(46px, 7vh, 84px) 0 clamp(56px, 8vh, 96px); min-height: 100vh; }
.sa__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 45% at 50% 55%, rgba(168, 152, 195, 0.35), transparent 70%); }
.sa__intro { text-align: center; position: relative; margin-bottom: 34px; padding: 0 20px; }
.sa__title { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.6vw, 44px); margin: 0; }
.stage { position: relative; display: grid; place-items: center; }
.stage::after { content: ""; position: absolute; bottom: -26px; left: 50%; width: 420px; height: 60px; transform: translateX(-50%); border-radius: 50%; background: rgba(0, 0, 0, 0.35); filter: blur(28px); z-index: 0; }
.phone-wrap { position: relative; z-index: 1; }

.iphone { --w: 392px; --r: 62px; position: relative; width: var(--w); aspect-ratio: 392 / 846; border-radius: var(--r); padding: 11px;
  background: linear-gradient(148deg, #6f6a63, #100e0c 30%, #7b756c 55%, #100e0c 80%, #6f6a63);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 0 0 2px rgba(0, 0, 0, 0.6), 0 60px 120px -30px rgba(0, 0, 0, 0.95), 0 30px 60px -30px rgba(35, 28, 43, 0.6); }
.iphone::before { content: ""; position: absolute; inset: 8px; border-radius: calc(var(--r) - 8px); background: #000; }
.iphone::after { content: ""; position: absolute; inset: 11px; z-index: 6; pointer-events: none; border-radius: calc(var(--r) - 11px); background: linear-gradient(128deg, rgba(255, 255, 255, 0.10), transparent 32%); }
.btn-side { position: absolute; width: 3px; background: #2a2724; border-radius: 2px; }
.btn-side.mute { left: -3px; top: 132px; height: 30px; } .btn-side.vu { left: -3px; top: 186px; height: 58px; } .btn-side.vd { left: -3px; top: 258px; height: 58px; } .btn-side.pw { right: -3px; top: 208px; height: 92px; }
.screen { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; border-radius: calc(var(--r) - 11px); overflow: hidden; background: #fff; color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1.3; }
.status { height: 54px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 30px 0 34px; font-weight: 600; font-size: 15px; position: relative; }
.island { position: absolute; left: 50%; top: 11px; transform: translateX(-50%); width: 116px; height: 33px; border-radius: 20px; background: #000; }
.island::after { content: ""; position: absolute; right: 22px; top: 11px; width: 11px; height: 11px; border-radius: 50%; background: #1b1b2a; box-shadow: inset 0 0 0 2px #0d0d14; }
.status .ic { display: flex; gap: 6px; align-items: center; } .status svg { height: 12px; width: auto; }
.ig-top { height: 44px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; }
.ig-logo { font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive; font-size: 30px; line-height: 1; }
.ig-top .r { display: flex; gap: 18px; align-items: center; position: relative; }
.ig-top svg { width: 24px; height: 24px; }
.ig-badge { position: absolute; right: -7px; top: -6px; min-width: 17px; height: 17px; border-radius: 9px; background: #ff3040; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.feed { flex: 1; overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.avatar-ring { width: 36px; height: 36px; border-radius: 50%; padding: 2px; background: conic-gradient(from 200deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); flex: none; }
.avatar-ring img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; object-fit: cover; display: block; }
.post-head .who { flex: 1; min-width: 0; }
.post-head .h { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 4px; }
.post-head .h svg { width: 12px; height: 12px; }
.post-head .s { font-size: 12px; color: #737373; }
.post-head .dots { width: 20px; height: 20px; }
.post-media { display: block; position: relative; aspect-ratio: 4 / 5; background: #eee; overflow: hidden; }
.post-media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cta-strip { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; background: #fafafa; border-bottom: 0.5px solid #dbdbdb; font-weight: 600; font-size: 14px; color: #000; }
.cta-strip svg { width: 16px; height: 16px; }
.actions { position: relative; display: flex; align-items: center; gap: 15px; padding: 10px 12px 6px; }
.actions svg { width: 25px; height: 25px; fill: none; stroke: #000; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.actions .spacer { flex: 1; }
.likes { padding: 0 12px; font-weight: 600; font-size: 13.5px; }
.caption { padding: 3px 12px 0; font-size: 13.5px; } .caption b { font-weight: 600; } .caption .more { color: #737373; }
.comments { padding: 4px 12px 0; color: #737373; font-size: 13.5px; } .stamp { padding: 4px 12px 0; color: #737373; font-size: 11px; }
.tabbar { height: 50px; flex: none; display: flex; align-items: center; justify-content: space-around; border-top: 0.5px solid #dbdbdb; background: #fff; }
.tabbar svg { width: 25px; height: 25px; fill: none; stroke: #000; stroke-width: 1.85; stroke-linejoin: round; stroke-linecap: round; }
.tabbar .home { fill: #000; }
.tabbar img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.homebar { height: 22px; flex: none; display: grid; place-items: center; background: #fff; } .homebar i { width: 138px; height: 5px; border-radius: 3px; background: #000; }

/* carousel in the media slot */
.cstage { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; cursor: grab; }
.ctrack { display: flex; height: 100%; transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1); }
.ctrack.no-anim { transition: none; }
.cslide { flex: 0 0 100%; height: 100%; }
.cslide img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; }
.cnav { position: absolute; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.82); display: grid; place-items: center; cursor: pointer; transition: opacity 0.2s; z-index: 2; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); }
.cnav svg { width: 12px; height: 12px; stroke: #262626; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cnav--prev { left: 8px; } .cnav--next { right: 8px; }
.cnav[disabled] { opacity: 0; pointer-events: none; }
.ig-count { position: absolute; right: 12px; top: 12px; z-index: 2; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 12px; }
.cdots { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 4px; }
.cdots button { width: 6px; height: 6px; border-radius: 50%; border: 0; padding: 0; background: #c7c7c7; cursor: pointer; }
.cdots button.is-on { background: #0095f6; }
.hint { text-align: center; color: var(--muted); font-size: 16px; margin-top: 30px; position: relative; z-index: 1; }

/* hand-drawn callout */
.callout { position: absolute; left: 100%; top: 58%; width: 260px; margin-left: 6px; transition: opacity 0.3s ease; }
.callout svg { width: 150px; height: 90px; overflow: visible; }
.callout .ln { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; }
.callout .ar { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.rv.in .callout .ln, .callout.in .ln { animation: lnDraw 0.9s ease 0.35s forwards; }
.rv.in .callout .ar, .callout.in .ar { animation: arIn 0.3s ease 1.15s forwards; }
@keyframes lnDraw { to { stroke-dashoffset: 0; } } @keyframes arIn { to { opacity: 1; } }
.bubble { position: relative; display: inline-block; margin: 4px 0 0 40px; padding: 14px 22px; border-radius: 18px; background: linear-gradient(135deg, var(--accent-2), var(--accent-deep)); color: #fff;
  font-family: var(--display); font-style: italic; font-size: 24px; transform: rotate(-3deg); box-shadow: 0 16px 30px -14px var(--accent-glow); }
.bubble::before { content: ""; position: absolute; left: 22px; top: -9px; border: 10px solid transparent; border-top: 0; border-bottom-color: var(--accent-2); }
.phone-wrap:has(#cprev:not([disabled])) .callout { opacity: 0; }
@media (max-width: 980px) {
  .callout { position: static; margin: 22px auto 0; width: auto; text-align: center; }
  .callout svg { display: none; }
  .bubble { margin: 0; }
}
@media (max-width: 460px) { .iphone { --w: 320px; --r: 50px; } .status { padding: 0 22px 0 26px; } }
@media (prefers-reduced-motion: reduce) { .callout .ln { stroke-dashoffset: 0; animation: none !important; } .callout .ar { opacity: 1; animation: none !important; } }
