/* ================================================================
   zaglool-page-instagram.css — page-specific styles ONLY.
   Scoped under .page-instagram. Never edit zaglool-pages.css.
   Hero is fully in-flow: no absolute layer, no collapsed section.
   ================================================================ */
.page-instagram{--hero-accent:#FF0069}
.page-instagram .name-instagram{color:#FF0069}
[data-theme="dark"] .page-instagram .name-instagram{color:#FF0069}

/* ---------- hero (in-flow grid, content never escapes) ---------- */
.ig-hero{padding:clamp(124px,17vh,160px) 0 64px;background:var(--bg);position:relative;z-index:5}
.ig-hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center}
.ig-hero-copy h1{margin:16px 0;max-width:680px;color:var(--ink)}
.ig-hero-copy .sub{max-width:680px;color:var(--text)}
.ig-hero-copy .hero-tagline{margin-top:16px;color:var(--muted);max-width:680px}
.ig-hero-copy .hero-ctas{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin-top:24px}
.ig-hero-copy .hero-offer{margin-top:16px;color:var(--muted);max-width:680px}
.ig-tile{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border-radius:999px;background:var(--paper);border:1px solid var(--line);font-weight:700;box-shadow:var(--shadow-sm)}
.ig-tile .ic{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;background:#FF0069;font-size:14px;line-height:16px;font-weight:700}
.ig-tile .tile-sep{color:var(--muted)}
.ig-pills{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.ig-pill{display:inline-flex;align-items:center;gap:8px;background:var(--paper);border:1px solid var(--line);border-radius:999px;padding:8px 14px;font-weight:700;font-size:14px;line-height:20px;color:var(--ink)}
.ig-pill .dot{width:10px;height:10px;border-radius:50%;background:#FF0069;flex:none}
.ig-hero-figure{border-radius:24px;background:radial-gradient(circle at 50% 55%,rgba(255,0,105,.16),transparent 68%);padding:8px}
.ig-hero-figure img{width:100%;height:auto;display:block;filter:drop-shadow(0 20px 22px rgba(16,41,26,.22))}
[data-theme="dark"] .ig-hero-figure img{filter:drop-shadow(0 20px 22px rgba(0,0,0,.45))}
.ig-caption{text-align:center;color:var(--muted);font-weight:700;margin-top:8px;font-size:14px;line-height:20px}

/* ---------- stats ---------- */
.ig-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:32px}
.ig-stat{background:var(--paper);border:1px solid var(--line);border-top:4px solid #FF0069;border-radius:16px;padding:20px}
.ig-stat b{display:block;font-size:32px;line-height:36px;color:var(--ink)}
.ig-stat span{color:var(--text);font-size:14px;line-height:20px}
.ig-stats-note{margin-top:12px;color:var(--muted);font-size:14px;line-height:20px}

/* ---------- flow templates ---------- */
.ig-tpl-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:24px}
.ig-tpl{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:20px}
.ig-tpl h3{font-size:18px;line-height:26px;margin:0 0 8px;color:var(--ink)}
.ig-tpl p{color:var(--text);font-size:15px;line-height:24px;margin:0}

/* ---------- stories honesty box ---------- */
.ig-note{background:#FFF0F6;border:1px solid #FFB3CF;border-inline-start:5px solid #FF0069;border-radius:16px;padding:20px 24px;margin-top:24px}
[data-theme="dark"] .ig-note{background:#2A0E22;border-color:#5C1A3A}
.ig-note h3{margin:0 0 8px;font-size:20px;line-height:28px;color:var(--ink)}
.ig-note p{color:var(--text);margin:0}
.ig-note p + p{margin-top:8px}

/* ---------- live rule callout + example ---------- */
.ig-rule{background:var(--paper);border:1px solid var(--line);border-inline-start:5px solid #FF0069;border-radius:16px;padding:20px 24px;margin-top:24px}
.ig-rule p{margin:0;color:var(--text)}
.ig-rule p b{color:var(--ink)}
.ig-example{background:var(--paper);border:1px dashed var(--line);border-radius:16px;padding:20px 24px;margin-top:24px}
.ig-example .ig-ex-label{font-weight:800;color:var(--muted);font-size:13px;line-height:18px}
.ig-example p{margin:8px 0 0;color:var(--text)}
.ig-example p b{color:var(--ink)}

/* ---------- limits table ---------- */
.ig-limits{width:100%;border-collapse:separate;border-spacing:0;background:var(--paper);border:1px solid var(--line);border-radius:16px;overflow:hidden;margin-top:24px}
.ig-limits th,.ig-limits td{padding:14px 20px;text-align:start;border-bottom:1px solid var(--line);font-size:16px;line-height:24px}
.ig-limits tr:last-child th,.ig-limits tr:last-child td{border-bottom:0}
.ig-limits thead th{background:var(--accent-soft);color:var(--ink);font-weight:800}
.ig-limits tbody th{font-weight:700;color:var(--ink)}
.ig-limits td{color:var(--text)}
.ig-limits td b{color:var(--ink)}

/* ---------- linking steps ---------- */
.ig-steps{list-style:none;counter-reset:igstep;margin:24px 0 0;padding:0;display:grid;gap:16px}
.ig-steps li{counter-increment:igstep;display:flex;gap:16px;align-items:flex-start;background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:20px}
.ig-steps li::before{content:counter(igstep);flex:none;width:36px;height:36px;border-radius:50%;background:#C2185B;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:18px;line-height:1}
.ig-steps li b{display:block;color:var(--ink);font-size:18px;line-height:26px;margin-bottom:4px}
.ig-steps li span{color:var(--text);font-size:16px;line-height:24px}

/* ---------- related note ---------- */
.ig-related-note{margin-top:24px}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .ig-hero-grid{grid-template-columns:1fr;gap:24px}
  .ig-hero-figure{order:2;max-width:420px;margin-inline:auto}
  .ig-stats{grid-template-columns:repeat(2,1fr)}
  .ig-tpl-grid{grid-template-columns:1fr}
}
@media (max-width:480px){
  .ig-hero{padding-top:112px}
  .ig-hero-copy .hero-ctas .btn{width:100%}
}
