/* =========================================================================
   In-feed phone mock · shared shell (static ad + carousel phone).
   One file so the two views can never drift. Brand tokens from /assets/brand.css.
   ========================================================================= */
html, body { height: 100%; }
body { overflow: hidden; }
body::before { background:
    radial-gradient(55% 45% at 50% 42%, rgba(231, 228, 220, 0.10), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #0d0d0e 0%, var(--bg) 40%, #0a0a0b 100%); }

.sa { height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(10px, 2.2vh, 22px); padding: clamp(10px, 2.4vh, 26px) 16px; position: relative; overflow: hidden; }
.sa__intro { text-align: center; max-width: 560px; flex: none; }
.sa__intro .eyebrow { margin: 0 0 6px; font-size: 0.74rem; }
.sa__title { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2.6vh + 0.4vw, 1.75rem); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.sa__hint { margin: 4px 0 0; font-size: 0.8rem; color: var(--faint); }

/* the stage: phone is built at 392x846 and scaled by JS to fit */
.stage { position: relative; flex: none; display: grid; place-items: center; }
.stage::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 70%; height: 44px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.85), transparent 70%); filter: blur(10px); z-index: -1; }
.phone-wrap { position: relative; width: 392px; height: 846px; transform-origin: top left; }
.phone-box { position: relative; }

/* ---------- iPhone 17 shell ---------- */
.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 0%, #2a2724 18%, #100e0c 42%, #3a3632 64%, #7b756c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 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(0, 0, 0, 0.9); }
.iphone::before { content: ""; position: absolute; inset: 8px; border-radius: calc(var(--r) - 8px); background: #000; z-index: 0; }
.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.10) 0%, rgba(255, 255, 255, 0.02) 30%, transparent 46%); }
.btn-side { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #4a4540, #8a847b); }
.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: 1; height: 100%; display: flex; flex-direction: column; overflow: hidden; background: #fff;
  border-radius: calc(var(--r) - 11px); color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0; line-height: 1.3; }
.screen a { text-decoration: none; color: inherit; }
.screen p { margin: 0; }

/* iOS status bar */
.status { position: relative; flex: none; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 40px; }
.status__time { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.status__icons { display: flex; align-items: center; gap: 6px; }
.status__icons svg { display: block; }
.island { position: absolute; left: 50%; top: 11px; width: 116px; height: 33px; transform: translateX(-50%); background: #000; border-radius: 20px; }
.island::after { content: ""; position: absolute; right: 22px; top: 11px; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2b3a55, #0a0d14 70%); }

/* Instagram top bar */
.ig-top { flex: none; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 14px; }
.ig-logo { font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive; font-size: 30px; line-height: 1; font-weight: 600; letter-spacing: 0; padding-top: 2px; }
.ig-top__r { display: flex; align-items: center; gap: 20px; }
.ig-top__r svg { width: 24px; height: 24px; display: block; }
.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; }

/* feed (clips like a real scrolling feed) */
.feed { flex: 1; min-height: 0; overflow: hidden; }
.post-head { height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 12px; }
.avatar-ring { width: 36px; height: 36px; border-radius: 50%; padding: 2px; flex: none;
  background: conic-gradient(from 200deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); }
.avatar-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 2px solid #fff; display: block; }
.post-who { flex: 1; min-width: 0; line-height: 1.2; }
.post-handle { font-size: 13.5px; font-weight: 600; color: #000; }
.post-sp { font-size: 12px; color: #737373; }
.post-more svg { width: 20px; height: 20px; display: block; }

.post-media { position: relative; display: block; width: 100%; background: #0b0b0c; overflow: hidden; }
.post-media--sq { aspect-ratio: 1 / 1; }
.post-media--45 { aspect-ratio: 4 / 5; }
.post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cta-strip { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; background: #fafafa;
  border-bottom: 0.5px solid #dbdbdb; font-size: 14px; font-weight: 600; color: #000; cursor: pointer; }
.cta-strip svg { width: 16px; height: 16px; display: block; }
.cta-strip:hover { background: #f2f2f2; }

.actions { position: relative; height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 12px; }
.actions svg { width: 25px; height: 25px; display: block; fill: none; stroke: #000; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.actions .spacer { flex: 1; }
.likes { margin: 0; padding: 2px 14px 0; font-size: 13.5px; font-weight: 600; }
.caption { margin: 3px 0 0; padding: 0 14px; font-size: 13.5px; line-height: 1.35; color: #000; }
.caption b { font-weight: 600; }
.caption .more { color: #737373; }
.comments { margin: 4px 0 0; padding: 0 14px; font-size: 13.5px; color: #737373; }
.stamp { margin: 3px 0 0; padding: 0 14px; font-size: 11px; color: #737373; }

.tabbar { flex: none; height: 50px; display: flex; align-items: center; justify-content: space-around; border-top: 0.5px solid #dbdbdb; background: #fff; padding: 0 8px; }
.tabbar svg { width: 25px; height: 25px; display: block; fill: none; stroke: #000; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .tab-av { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; }
.tabbar .tab-av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.homebar { flex: none; height: 22px; display: grid; place-items: center; background: #fff; }
.homebar::before { content: ""; width: 138px; height: 5px; border-radius: 3px; background: #000; }

/* ---------- callout (beside the phone, only when there is room) ---------- */
.callout { position: absolute; left: calc(100% + 6px); width: 240px; pointer-events: none; transition: opacity 0.35s var(--ease); }
.callout svg { display: block; overflow: visible; }
.callout .ln { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 0.9s 0.35s var(--ease) forwards; }
.callout .ar { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; animation: fadein 0.3s 1.15s forwards; }
.bubble { display: inline-block; margin: 4px 0 0 46px; padding: 12px 20px; border-radius: 14px; transform: rotate(-3deg);
  background: linear-gradient(180deg, #ffffff, #d9d6cf); color: var(--accent-ink); font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.1;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8); opacity: 0; animation: fadein 0.4s 1.1s forwards; white-space: nowrap; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .callout .ln { animation: none; stroke-dashoffset: 0; } .callout .ar, .bubble { animation: none; opacity: 1; } }
.no-callout .callout { display: none; }
