/* ==========================================================================
   Instagram Marketing (/instagram-marketing)
   Page-only layouts. Shared pieces come from components.css; values are tokens.
   ========================================================================== */

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

/* The profile card */
.igp { position: relative; display: grid; gap: var(--sp-2); width: min(100%, 26rem); justify-self: center; padding: var(--sp-3); border: var(--border-strong); border-radius: var(--r-lg); background: var(--c-surface-1); box-shadow: var(--shadow), 0 0 100px -30px var(--glow-color); }
.js-motion .igp { animation: ig-rise var(--dur-slow) var(--ease-signature) calc(var(--stagger-items) * 2) backwards; }
.igp__head { display: flex; align-items: center; gap: var(--sp-2); }
.igp__avatar { position: relative; display: grid; place-items: center; flex: none; width: 4.5rem; aspect-ratio: 1; border-radius: 50%; background: var(--c-bg); }
.igp__avatar::before { content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: 50%; background: conic-gradient(from 200deg, var(--c-accent), var(--c-accent-bright), var(--c-accent)); }
.igp__avatar img { width: 72%; height: auto; }
.igp__who { display: grid; gap: 2px; min-width: 0; }
.igp__name { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--display-weight); line-height: 1.1; }
.igp__bio { font-size: var(--fs-small); line-height: 1.4; color: var(--c-text-muted); }
.igp__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-1); }
.igp__btn { padding: 6px 4px; border-radius: var(--r-sm); background: var(--c-surface-3); font-size: var(--fs-caption); font-weight: var(--text-weight-bold); text-align: center; }
.igp__btn--main { background: var(--c-accent); color: var(--c-accent-ink); }
.igp__highlights { display: flex; gap: var(--sp-2); list-style: none; font-size: var(--fs-caption); color: var(--c-text-muted); }
.igp__highlights li { display: grid; justify-items: center; gap: 4px; }
.igp__highlights span { width: 2.75rem; aspect-ratio: 1; border: 2px solid var(--c-line-strong); border-radius: 50%; background: var(--c-surface-2); }
/* the highlights light up in turn, like stories being watched */
.js-motion .igp__highlights span { animation: ig-ring 6s var(--ease-hover) infinite; }
.js-motion .igp__highlights li:nth-child(2) span { animation-delay: 1.5s; }
.js-motion .igp__highlights li:nth-child(3) span { animation-delay: 3s; }
.js-motion .igp__highlights li:nth-child(4) span { animation-delay: 4.5s; }
@keyframes ig-ring { 0%, 30%, 100% { border-color: var(--c-line-strong); } 8%, 20% { border-color: var(--c-accent); box-shadow: 0 0 18px -4px var(--glow-color); } }
.igp__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin-inline: calc(var(--sp-3) * -1); list-style: none; }
.igp__grid li { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--c-surface-2); }
.igp__grid img { width: 100%; height: 100%; object-fit: cover; }
.igp__grid .is-reel::after { content: ""; position: absolute; top: 6px; right: 6px; width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid var(--c-text); filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.6)); }
.igp__grid li:nth-child(1) img { object-position: 50% 30%; }
.igp__dm { position: absolute; z-index: 2; left: calc(var(--sp-4) * -1); bottom: 18%; display: flex; align-items: center; gap: var(--sp-1); max-width: 17rem; padding: var(--sp-1) var(--sp-2) var(--sp-1) var(--sp-1); border: var(--border-strong); border-radius: var(--r-md); background: var(--c-surface-3); box-shadow: var(--shadow), 0 0 50px -16px var(--glow-color); font-size: var(--fs-small); line-height: 1.35; }
.igp__dm strong { display: block; font-size: var(--fs-caption); color: var(--c-accent-text); text-transform: uppercase; letter-spacing: var(--eyebrow-tracking); }
.igp__dm-icon { display: grid; place-items: center; flex: none; width: 2.25rem; aspect-ratio: 1; border-radius: 50%; background: var(--c-accent); color: var(--c-accent-ink); }
.igp__dm-icon .icon { --icon-size: 1rem; }
@media (max-width: 575.98px) { .igp__dm { left: var(--sp-1); right: var(--sp-1); bottom: var(--sp-2); max-width: none; } }

/* ── 01 · Who it's for ─────────────────────────────────────────────────── */
.ig-who__grid { display: grid; gap: var(--sp-4) var(--grid-gutter); align-items: start; }
@media (min-width: 992px) { .ig-who__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.ig-who__grid > div:first-child { display: grid; gap: var(--sp-3); }
.ig-who__grid .t-h2 { max-width: 14ch; }
.ig-who__copy { display: grid; gap: var(--sp-4); }
.ig-who__tags { list-style: none; border-top: var(--border-strong); }
.ig-who__tags li { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) 0; border-bottom: var(--border); font-size: var(--fs-h4); font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.015em; line-height: 1.2; }
.ig-who__tags li::before { content: ""; flex: none; width: 8px; aspect-ratio: 1; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 12px var(--glow-color); }

/* ── 02 · Formats: each card draws its own shape ───────────────────────── */
.fmts { display: grid; gap: var(--grid-gutter); list-style: none; }
@media (min-width: 576px) { .fmts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .fmts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fmt { display: grid; align-content: start; gap: 4px; padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem); background: var(--c-bg); transition: border-color var(--dur-base) var(--ease-signature); }
.fmt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 0%), rgb(var(--c-accent-rgb) / 0.12), transparent 60%); opacity: 0; transition: opacity var(--dur-base) var(--ease-signature); }
.fmt:hover { border-color: var(--c-line-strong); }
.fmt:hover::before { opacity: 1; }
.fmt__name { margin-top: var(--sp-3); font-size: var(--fs-h3); letter-spacing: var(--display-tracking); line-height: 1.05; }
.fmt__job { font-size: var(--fs-eyebrow); font-weight: var(--text-weight-bold); letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--c-accent-text); }
.fmt__text { margin-top: var(--sp-1); color: var(--c-text-muted); max-width: 34ch; }
/* phones: six formats as a compact two-column grid */
@media (max-width: 575.98px) {
  .fmts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-1); }
  .fmt { padding: var(--sp-2); }
  .fmt__shape { height: 2.5rem; transform: scale(0.65); transform-origin: left bottom; }
  .fmt__name { margin-top: var(--sp-1); font-size: var(--fs-h4); }
  .fmt__text { font-size: var(--fs-small); }
}

.fmt__shape { position: relative; display: flex; align-items: flex-end; gap: 4px; height: 4rem; }
.fmt__shape i,
.fmt__shape--reel,
.fmt__shape--story { border: 2px solid var(--c-accent); border-radius: 6px; transition: transform var(--dur-base) var(--ease-signature), opacity var(--dur-base) var(--ease-signature); }
.fmt__shape--reel,
.fmt__shape--story { width: 2.25rem; height: 4rem; }
.fmt__shape--reel::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -35% -50%; border-block: 7px solid transparent; border-left: 11px solid var(--c-accent); }
.fmt__shape--story::before { content: ""; position: absolute; left: 5px; right: 5px; top: 5px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--c-accent) var(--story, 40%), var(--c-line-strong) 0); }
.fmt__shape--carousel i { width: 3rem; height: 3.75rem; }
.fmt__shape--carousel i + i { margin-left: -2.25rem; opacity: 0.55; }
.fmt__shape--carousel i:nth-child(3) { opacity: 0.3; }
.fmt:hover .fmt__shape--carousel i:nth-child(2) { transform: translateX(1rem); }
.fmt:hover .fmt__shape--carousel i:nth-child(3) { transform: translateX(2rem); }
.fmt__shape--highlights { align-items: center; gap: var(--sp-1); }
.fmt__shape--highlights i { width: 2.75rem; aspect-ratio: 1; border-radius: 50%; }
.fmt:hover .fmt__shape--highlights i:nth-child(2) { transform: scale(1.12); }
.fmt__shape--bio { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
.fmt__shape--bio i { width: 6rem; height: 0; border-width: 1px; border-radius: 2px; }
.fmt__shape--bio i + i { width: 4rem; }
.fmt__shape--bio::before { content: ""; width: 1.75rem; aspect-ratio: 1; border: 2px solid var(--c-accent); border-radius: 50%; }
.fmt:hover .fmt__shape--bio i { transform: scaleX(1.2); transform-origin: left; }
.fmt__shape--dm { width: 3.5rem; height: 2.75rem; align-self: flex-end; border: 2px solid var(--c-accent); border-radius: var(--r-md) var(--r-md) var(--r-md) 2px; }
.fmt__shape--dm::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; top: 50%; height: 2px; border-radius: 2px; background: var(--c-accent); box-shadow: 0 -7px 0 var(--c-accent); translate: 0 3px; }
.js-motion .fmt__shape--story::before { animation: ig-story 4s linear infinite; }
@keyframes ig-story { from { --story: 0%; } to { --story: 100%; } }
@property --story { syntax: "<percentage>"; inherits: false; initial-value: 40%; }

/* ── 03 / 04 · Included + how it works ─────────────────────────────────── */
.ig-plan__grid { display: grid; gap: var(--sp-8) var(--grid-gutter); align-items: start; }
@media (min-width: 992px) { .ig-plan__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-8) clamp(3rem, 6vw, 7rem); } }
.ig-plan__col { display: grid; gap: var(--sp-3); }
.ig-plan__col .t-h2 { max-width: 14ch; }
.ticks { display: grid; gap: 0; list-style: none; margin-top: var(--sp-1); }
.ticks li { display: flex; align-items: baseline; gap: var(--sp-2); padding: var(--sp-1) 0; border-bottom: var(--border); }
.ticks li::before { content: ""; flex: none; width: 0.75rem; height: 0.4rem; border-left: 2px solid var(--c-accent); border-bottom: 2px solid var(--c-accent); rotate: -45deg; translate: 0 -3px; }
.steps4 { display: grid; gap: var(--grid-gutter); list-style: none; counter-reset: none; margin-top: var(--sp-1); }
@media (min-width: 576px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps4 li { display: grid; gap: var(--sp-2); align-content: start; padding: var(--sp-3); border: var(--border); border-radius: var(--r-lg); background: var(--c-surface-1); }
.steps4 li > span { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: var(--display-weight); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--c-accent); }
.steps4 h3 { font-size: var(--fs-h4); letter-spacing: -0.015em; line-height: 1.2; }
.steps4 p { margin-top: 4px; color: var(--c-text-muted); font-size: var(--fs-small); }
/* numerals stay outlined; only the step being read lights up (instagram-marketing.js) */
.steps4 li > span { transition: color var(--dur-base) var(--ease-signature), text-shadow var(--dur-base) var(--ease-signature); }
.steps4 li.is-lit > span { color: var(--c-accent); text-shadow: 0 0 24px var(--glow-color); }

/* ── 06 · Accounts we run ──────────────────────────────────────────────── */
.ig-accounts__grid { display: grid; gap: var(--sp-5) var(--grid-gutter); align-items: start; }
@media (min-width: 992px) { .ig-accounts__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.ig-accounts__grid > div { display: grid; gap: var(--sp-3); }
.ig-accounts__review { margin-top: var(--sp-2); }
.ig-handles { display: grid; gap: var(--sp-1); list-style: none; }
@media (min-width: 576px) { .ig-handles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ig-handles a { display: grid; gap: 2px; min-height: var(--tap-min); padding: var(--sp-2) var(--sp-3); border: var(--border); border-radius: var(--r-md); background: var(--c-bg); font-size: var(--fs-small); color: var(--c-text-muted); transition: border-color var(--dur-fast) var(--ease-hover), background-color var(--dur-fast) var(--ease-hover); }
.ig-handles a span { overflow-wrap: anywhere; font-family: var(--font-display); font-size: var(--fs-body); font-weight: var(--display-weight); color: var(--c-text); }
.ig-handles a:hover { border-color: var(--c-accent); background: var(--c-surface-2); }
.ig-handles a:hover span { color: var(--c-accent-text); }

/* smallest phones: the long format labels ("Start conversations") need the full width */
@media (max-width: 389.98px) { .fmts { grid-template-columns: minmax(0, 1fr); } }
/* handles: equal-height tiles in a row even when one name wraps */
.ig-handles li { display: grid; }
.ig-handles a { align-content: start; }
