/* ==========================================================================
   Social Media Management (/social-media-management)
   Page-only layouts. Shared pieces (cards, stats, work tiles, related services,
   FAQ split, plan card, lead form) come from components.css; values are tokens.
   ========================================================================== */

/* ── Hero: the answer, and a month landing on the calendar ────────────────── */
.smg-hero { position: relative; padding-bottom: var(--section-pad-tight); overflow-x: clip; isolation: isolate; }
.smg-hero__light { position: absolute; z-index: -1; inset: -20% -15% auto 35%; height: 120%; background: var(--light-spot); pointer-events: none; }
.smg-hero__grid { display: grid; gap: var(--sp-6) var(--grid-gutter); align-items: center; }
@media (min-width: 992px) { .smg-hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.smg-hero__copy { display: grid; gap: var(--sp-3); justify-items: start; }
.smg-hero__title { max-width: 13ch; }
.smg-hero__answer { color: var(--c-text); max-width: 52ch; }
.smg-hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-1); }
@media (max-width: 575.98px) { .smg-hero__actions .btn { width: 100%; } }
.js-motion .smg-hero__copy > * { animation: smg-rise var(--dur-slow) var(--ease-signature) backwards; }
.js-motion .smg-hero__copy > :nth-child(2) { animation-delay: var(--stagger-items); }
.js-motion .smg-hero__copy > :nth-child(3) { animation-delay: calc(var(--stagger-items) * 2); }
.js-motion .smg-hero__copy > :nth-child(n + 4) { animation-delay: calc(var(--stagger-items) * 3); }
@keyframes smg-rise { from { opacity: 0.01; transform: translateY(var(--reveal-rise)); } }

/* The calendar card */
.cal { position: relative; display: grid; gap: var(--sp-2); padding: clamp(1rem, 0.6rem + 1.4vw, 1.75rem); border: var(--border-strong); border-radius: var(--r-lg); background: var(--c-surface-1); box-shadow: var(--shadow), 0 0 90px -30px var(--glow-color); }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.cal__month { font-weight: var(--text-weight-bold); }
.cal__month span { color: var(--c-text-muted); font-weight: var(--text-weight); }
.cal__status { display: inline-flex; align-items: center; gap: 4px; padding: 4px var(--sp-1); border-radius: var(--r-pill); background: var(--c-accent); color: var(--c-accent-ink); font-size: var(--fs-caption); font-weight: var(--text-weight-bold); }
.cal__status .icon { --icon-size: 0.875rem; stroke-width: 2.5; }
.cal__days, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__days { font-size: var(--fs-caption); color: var(--c-text-muted); text-align: center; }
.cal__grid { list-style: none; }
.cal__grid li { display: grid; align-content: space-between; gap: 4px; min-height: clamp(2.75rem, 2rem + 2.2vw, 3.75rem); padding: 4px; border: var(--border); border-radius: var(--r-sm); background: var(--c-surface-2); }
.cal__date { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--c-text-muted); line-height: 1; }
.cal__chip { display: block; overflow: hidden; padding: 2px 4px; border-radius: 4px; font-size: var(--fs-caption); font-weight: var(--text-weight-bold); line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.cal__chip--reel, .cal__key--reel { background: var(--c-accent); color: var(--c-accent-ink); }
.cal__chip--post, .cal__key--post { background: var(--c-surface-3); color: var(--c-text); }
.cal__chip--carousel, .cal__key--carousel { box-shadow: inset 0 0 0 1px rgb(var(--c-accent-rgb) / 0.6); color: var(--c-accent-text); }
.cal__chip--story, .cal__key--story { box-shadow: inset 0 0 0 1px var(--c-line-strong); color: var(--c-text-muted); }
.cal__chip--report { background: var(--c-accent-bright); color: var(--c-accent-ink); box-shadow: 0 0 14px var(--glow-color); }
.cal__legend { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); list-style: none; font-size: var(--fs-caption); color: var(--c-text-muted); }
.cal__legend li { display: inline-flex; align-items: center; gap: 6px; }
.cal__key { width: 0.75rem; aspect-ratio: 1; border-radius: 3px; }
/* phones: cells are too small for words, so the chips become coloured bars (see the legend) */
@media (max-width: 575.98px) { .cal__chip { height: 6px; padding: 0; font-size: 0; } }
/* the stamp lands last (social-media-management.js); without JS it is simply there */
.cal__status { transition: opacity var(--dur-base) var(--ease-signature), transform var(--dur-base) var(--ease-signature); }
.cal.is-filling .cal__status { opacity: 0; transform: scale(1.4) rotate(-6deg); }

/* ── 01 · Who it's for ─────────────────────────────────────────────────── */
.smg-who__grid { display: grid; gap: var(--sp-5) var(--grid-gutter); }
@media (min-width: 992px) { .smg-who__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.smg-who__intro { display: grid; gap: var(--sp-3); }
@media (min-width: 992px) { .smg-who__intro { position: sticky; top: calc(var(--header-h) + var(--sp-6)); } }
.who-list { list-style: none; border-top: var(--border-strong); }
.who-list__item { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--sp-1) var(--sp-2); padding: var(--sp-4) 0; border-bottom: var(--border); }
.who-list__no { grid-row: span 2; display: grid; place-items: center; width: 2.5rem; aspect-ratio: 1; border: 1px solid rgb(var(--c-accent-rgb) / 0.5); border-radius: 50%; font-family: var(--font-mono); font-size: var(--fs-small); color: var(--c-accent-text); }
.who-list__title { font-size: var(--fs-h3); letter-spacing: var(--display-tracking); line-height: 1.05; }
.who-list__text { color: var(--c-text-muted); max-width: 52ch; }

/* ── 02 · We make / we run ─────────────────────────────────────────────── */
.handle { display: grid; gap: var(--grid-gutter); }
@media (min-width: 768px) { .handle { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.handle__col { padding: clamp(1.5rem, 1rem + 1.6vw, 2.75rem); }
.handle__label { display: inline-flex; align-items: center; gap: var(--sp-1); margin-bottom: var(--sp-2); font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1; }
.handle__label .icon { --icon-size: 1.5rem; color: var(--c-accent-text); }
.handle__list { list-style: none; }
.handle__list li { display: grid; gap: 2px; padding: var(--sp-2) 0; border-top: var(--border); color: var(--c-text-muted); }
.handle__list strong { color: var(--c-text); }

/* ── 03 · How it works: five steps on a line that fills as you scroll ──── */
/* isolate + z-index: the line stays under the steps even when reveal transforms give each step its own stacking context */
.flow { position: relative; isolation: isolate; display: grid; gap: var(--sp-4); list-style: none; padding-left: var(--sp-6); }
.flow::before, .flow::after { content: ""; position: absolute; z-index: 0; left: 1.1875rem; top: 1.25rem; bottom: 1.25rem; width: 1px; background: var(--c-line-strong); }
.flow::after { width: 2px; margin-left: -0.5px; background: var(--c-accent-bright); box-shadow: 0 0 12px var(--glow-color); transform-origin: top; transform: scaleY(var(--fill, 1)); }
.flow__step { position: relative; z-index: 1; display: grid; gap: var(--sp-1); }
.flow__no { position: absolute; left: calc(var(--sp-6) * -1); top: 0; display: grid; place-items: center; width: 2.5rem; aspect-ratio: 1; border: 2px solid var(--c-accent); border-radius: 50%; background: var(--c-bg); font-family: var(--font-mono); font-size: var(--fs-small); color: var(--c-accent-text); z-index: 1; transition: background-color var(--dur-base) var(--ease-hover), color var(--dur-base) var(--ease-hover); }
.flow__step.is-lit .flow__no { background: var(--c-accent); color: var(--c-accent-ink); }
.flow.is-tracked .flow__step:not(.is-lit) .flow__no { border-color: var(--c-line-strong); color: var(--c-text-muted); }
.flow__title { font-size: var(--fs-h4); letter-spacing: -0.015em; line-height: 1.2; padding-top: 0.4rem; }
.flow__text { color: var(--c-text-muted); }
@media (min-width: 992px) {
  .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--grid-gutter); padding: var(--sp-8) 0 0; }
  .flow::before, .flow::after { left: 0; right: 0; top: 1.25rem; bottom: auto; width: auto; height: 1px; }
  .flow::after { height: 2px; margin: -0.5px 0 0; transform-origin: left; transform: scaleX(var(--fill, 1)); }
  .flow__no { left: 0; top: calc(var(--sp-8) * -1); }
  .flow__title { padding-top: 0; }
}

/* ── 05 · Why: the numbers ─────────────────────────────────────────────── */
.smg-why__stats { display: grid; gap: var(--sp-4) var(--grid-gutter); list-style: none; }
@media (min-width: 768px) { .smg-why__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── 06 · Management or the full service ───────────────────────────────── */
.compare { display: grid; gap: var(--grid-gutter); max-width: 62rem; margin-inline: auto; }
@media (min-width: 768px) { .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.compare__card { display: grid; align-content: start; justify-items: start; gap: var(--sp-2); padding: clamp(1.5rem, 1rem + 1.6vw, 2.75rem); }
.compare__card--lit { border-color: rgb(var(--c-accent-rgb) / 0.55); background: linear-gradient(180deg, var(--c-surface-2), var(--c-surface-1)); box-shadow: 0 0 80px -30px var(--glow-color); }
.compare__card--lit::before { content: ""; position: absolute; z-index: -1; inset: -40% -30% auto auto; width: 80%; aspect-ratio: 1; background: var(--light-spot); }
.compare__kicker { font-size: var(--fs-eyebrow); font-weight: var(--text-weight-bold); letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--c-accent-text); }
.compare__title { font-size: var(--fs-h3); letter-spacing: var(--display-tracking); line-height: 1.05; }
.compare__text { color: var(--c-text-muted); }
.compare__list { display: grid; gap: var(--sp-1); width: 100%; margin: var(--sp-1) 0 var(--sp-2); padding-top: var(--sp-2); border-top: var(--border); list-style: none; }
.compare__list li { display: flex; align-items: baseline; gap: var(--sp-1); }
.compare__list li::before { content: ""; flex: none; width: 6px; aspect-ratio: 1; border-radius: 50%; background: var(--c-accent); translate: 0 -2px; }
