/* =========================================================================
   In-feed phone mock (references/in-feed-phone-mock.md): a photoreal iPhone
   running a pixel-faithful Instagram feed. Shared by static-ad/ and
   carousel/phone/ so the two shells can never drift.
   ========================================================================= */
body { background: #241128; }
body::before { background: radial-gradient(60% 50% at 50% 30%, rgba(154, 46, 162, 0.45), transparent 70%), radial-gradient(50% 40% at 80% 90%, rgba(229, 127, 118, 0.18), transparent 70%), #241128 !important; }
body::after { opacity: 0.06; }

.sa { position: relative; overflow: hidden; padding: clamp(46px, 7vh, 84px) 0 clamp(56px, 8vh, 96px); color: #fff; }
.sa__intro { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vh, 48px); padding: 0 var(--gutter); }
.sa__intro .eyebrow { color: #f7dad9; }
.sa__title { color: #fff; font-size: clamp(28px, 3.6vw, 42px); }
.stage { position: relative; display: grid; place-items: center; }
.stage::after { content: ""; position: absolute; left: 50%; bottom: -24px; width: 420px; max-width: 90vw; height: 60px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.7), transparent 70%); filter: blur(8px); z-index: 0; }
.phone-wrap { position: relative; z-index: 1; }

/* ---- iPhone 17 shell ---- */
.iphone { --w: 392px; --r: 62px; position: relative; width: var(--w); max-width: calc(100vw - 32px); aspect-ratio: 392 / 846; border-radius: var(--r); padding: 11px;
  background: linear-gradient(148deg, #6f6a63, #100e0c 28%, #7b756c 52%, #100e0c 76%, #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 -20px rgba(0, 0, 0, 0.7); }
.iphone::before { content: ""; position: absolute; inset: 8px; border-radius: calc(var(--r) - 8px); background: #000; }
.iphone::after { content: ""; position: absolute; inset: 11px; border-radius: calc(var(--r) - 11px); z-index: 6; pointer-events: none; background: linear-gradient(128deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 34%); }
.btn-side { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #4a4640, #8a847a); }
.btn-side.mute { left: -3px; top: 132px; height: 30px; }
.btn-side.vup { left: -3px; top: 186px; height: 58px; }
.btn-side.vdn { left: -3px; top: 258px; height: 58px; }
.btn-side.pwr { 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; -webkit-font-smoothing: antialiased; }
.status { position: relative; flex: none; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.island { position: absolute; left: 50%; top: 11px; width: 116px; height: 33px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.island::after { content: ""; position: absolute; right: 22px; top: 11px; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3a55, #05070c 70%); }
.status .sys { display: flex; align-items: center; gap: 6px; }
.status svg { display: block; }
.feed { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.ig-top { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 4px 14px 8px; }
.ig-logo { font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive; font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.ig-top .ic { display: flex; gap: 20px; align-items: center; }
.ig-dm { position: relative; }
.ig-badge { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff3040; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.post-head { flex: none; 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-who { flex: 1; min-width: 0; line-height: 1.2; }
.post-who b { display: block; font-size: 13.5px; font-weight: 600; }
.post-who span { font-size: 12px; color: #737373; }
.post-media { position: relative; flex: none; display: block; aspect-ratio: 4 / 5; background: #f2f2f2; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cta-strip { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; background: #fafafa; border-bottom: 0.5px solid #dbdbdb; font-size: 14px; font-weight: 600; color: #000; }
.actions { position: relative; flex: none; display: flex; align-items: center; gap: 16px; padding: 10px 14px 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 14px; font-size: 13.5px; font-weight: 600; }
.caption { padding: 3px 14px 0; font-size: 13.5px; line-height: 1.35; }
.caption b { font-weight: 600; }
.caption .more { color: #737373; }
.comments { padding: 4px 14px 0; font-size: 13.5px; color: #737373; }
.stamp { padding: 3px 14px 8px; font-size: 11px; color: #737373; }
.tabbar { flex: none; display: flex; justify-content: space-around; align-items: center; height: 50px; border-top: 0.5px solid #dbdbdb; background: #fff; }
.tabbar svg { width: 25px; height: 25px; fill: none; stroke: #000; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .me { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1.5px solid #000; }
.homebar { flex: none; height: 22px; display: grid; place-items: center; background: #fff; }
.homebar i { width: 138px; height: 5px; border-radius: 3px; background: #000; }

/* ---- the callout (hand-drawn note at the thing to click) ---- */
.callout { position: absolute; left: 100%; top: var(--cy, 62%); width: 250px; margin-left: 8px; pointer-events: none; transition: opacity 0.3s ease; }
.callout svg { display: block; width: 120px; height: 70px; overflow: visible; }
.callout .ln { fill: none; stroke: #f7dad9; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; }
.callout .ar { fill: none; stroke: #f7dad9; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.js .rv.in .callout .ln, .callout.go .ln { animation: drawLn 0.8s var(--ease) 0.35s forwards; }
.js .rv.in .callout .ar, .callout.go .ar { animation: fadeAr 0.3s ease 1.15s forwards; }
@keyframes drawLn { to { stroke-dashoffset: 0; } }
@keyframes fadeAr { to { opacity: 1; } }
.bubble { position: relative; display: inline-block; margin: 6px 0 0 40px; padding: 12px 18px; border-radius: 16px; background: linear-gradient(150deg, #9a2ea2, #e57f76); color: #fff; font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.2; transform: rotate(-3deg); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); }
.bubble::before { content: ""; position: absolute; left: 22px; top: -9px; border: 9px solid transparent; border-top: 0; border-bottom-color: #a8389f; }
.hint { margin-top: 30px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, 0.6); position: relative; z-index: 1; }

@media (max-width: 980px) {
  .callout { position: static; width: auto; margin: 22px auto 0; text-align: center; }
  .callout svg { display: none; }
  .bubble { margin: 0; }
  .bubble::before { left: 50%; margin-left: -9px; }
}
@media (max-width: 460px) { .iphone { --w: 320px; --r: 50px; } .status { padding: 4px 22px 0 26px; } .island { width: 96px; height: 28px; } }
@media (prefers-reduced-motion: reduce) { .callout .ln { stroke-dashoffset: 0; animation: none !important; } .callout .ar { opacity: 1; animation: none !important; } }
