/* Social Media Automation — /solutions/social-media-automation/
   Page-only styles. Builds on style.css tokens and components. */

/* Hero: Instagram DM -> WhatsApp booking + campaign card ---------------------- */
.sm-collage {
  position: relative;
  width: min(100%, 548px);
  height: 560px;
  margin-inline: auto;
}

/* Instagram-style DM thread (neutral colours, no brand gradients) */
.sm-dm {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 264px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.sm-dm__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.sm-dm__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-strong);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--line-strong);
}
.sm-dm__avatar .icon { width: 17px; height: 17px; }
.sm-dm__who { display: grid; line-height: 1.3; }
.sm-dm__who b { font-size: 13px; color: var(--ink); }
.sm-dm__who small { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.sm-dm__who small .icon { width: 12px; height: 12px; }
.sm-dm__body { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.sm-dm__story {
  display: flex;
  align-items: center;
  align-self: flex-end;
  gap: 8px;
  max-width: 88%;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.sm-dm__thumb {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 42px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--mint);
}
.sm-dm__thumb .icon { width: 16px; height: 16px; }
.sm-dm__story small { display: block; font-size: 10.5px; color: var(--muted); }
.sm-dm__story b { display: block; font-size: 11.5px; line-height: 1.3; color: var(--ink); }
.sm-dm__msg {
  align-self: flex-start;
  max-width: 84%;
  padding: 8px 12px;
  border-radius: 18px;
  background: var(--bg-alt);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink);
}
.sm-dm__msg--me { align-self: flex-end; background: var(--ink); color: #fff; }
.sm-dm__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}
.sm-dm__cta .icon { width: 14px; height: 14px; color: var(--brand); }

/* WhatsApp side */
.sm-phone { position: absolute; top: 36px; right: 0; z-index: 2; }
.sm-phone .chat { height: 356px; }
.sm-sys {
  align-self: center;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--warn-tint);
  font-size: 11px;
  color: var(--ink-2);
  box-shadow: 0 1px 1px rgba(11, 18, 32, .06);
}
.sm-sys .icon { display: inline; width: 12px; height: 12px; vertical-align: -2px; }

/* Sample campaign card */
.sm-campaign {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: 264px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.sm-campaign__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sm-campaign__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--mint);
}
.sm-campaign__icon .icon { width: 16px; height: 16px; }
.sm-campaign__head b { display: block; font-size: 13px; line-height: 1.3; color: var(--ink); }
.sm-campaign__head small { display: block; font-size: 11px; color: var(--muted); }
.sm-funnel { display: grid; gap: 10px; }
.sm-funnel__row { display: grid; gap: 5px; }
.sm-funnel__label { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-2); }
.sm-funnel__label b { font-family: var(--font-mono); font-size: 12px; color: var(--ink); }
.sm-funnel .meter { height: 6px; }

@media (max-width: 639px) {
  .sm-collage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    height: auto;
  }
  .sm-dm,
  .sm-phone,
  .sm-campaign { position: relative; inset: auto; }
  .sm-dm,
  .sm-campaign { width: min(100%, 320px); }
}

/* 1024–1263px: the hero column is narrower than the mockup, so scale the stage as a unit
   (values leave room for a desktop scrollbar). */
@media (min-width: 1024px) and (max-width: 1099px) { .sm-stage { zoom: .78; } }
@media (min-width: 1100px) and (max-width: 1179px) { .sm-stage { zoom: .85; } }
@media (min-width: 1180px) and (max-width: 1263px) { .sm-stage { zoom: .92; } }
