/* ============================================================
   Social Fame — shared header + footer (homepage, platform, product
   and footer-menu pages). Markup is written by scripts/build-pages.mjs
   between the <!-- site-header --> / <!-- site-footer --> markers.
   Header: logo · pill menu with mega-menu panels (vanilla port of the
   21st.dev "Rich Navigation Menu") · language · account · cart.
   Below 1180px the menu folds into a sheet behind the menu button.
   ============================================================ */

/* ---------- header bar ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  /* at the very top the bar is fully transparent: logo, menu and buttons
     float over the page */
  background: transparent;
  transition: transform .32s cubic-bezier(.2,.7,.2,1), background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
/* site-nav.js: slides away while scrolling down, back on scroll up —
   anywhere below the top it comes back on frosted white glass */
.top.is-hidden { transform: translateY(-110%); }
.top.is-scrolled {
  background-color: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .05);
}
.brand-logo { flex: none; min-width: 0; transition: opacity .2s; }
.brand-logo:hover { opacity: .8; }
.top .brand-logo img { display: block; height: clamp(30px, 3.4vw, 42px); width: auto; }
@media (max-width: 480px) {
  .top .brand-logo img { height: 26px; }
}

/* ---------- back + home (every page but the homepage) ---------- */
.top-back { flex: none; display: flex; align-items: center; gap: 6px; }
.top-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 999px;
  background: #fff;
  color: #000;
  transition: border-color .18s, color .18s;
}
.top-back-btn:hover { border-color: #C13584; color: #C13584; }
.top-back-btn:focus-visible { outline: 2px solid #C13584; outline-offset: 2px; }
.top-back-btn svg { width: 19px; height: 19px; stroke-width: 1.8; }
/* phones: smaller buttons, and the logo shrinks to its pink "S" square so
   back, home, language, account, cart and menu all fit on one row */
@media (max-width: 480px) {
  .top--inner { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .top--inner .top-back { gap: 4px; }
  .top--inner .top-back-btn,
  .top--inner .cart-link,
  .top--inner .account-link,
  .top--inner .nav-toggle { width: 36px; height: 36px; }
  .top--inner .top-right { gap: 6px; }
  .top--inner .brand-logo { width: 26px; overflow: hidden; border-radius: 6px; }
  .top--inner .brand-logo img { max-width: none; }
}

/* ---------- menu rail ---------- */
.site-nav { margin: 0 auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px !important;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: 'Google Sans', 'Product Sans', 'Roboto', 'Segoe UI', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.nav-link:hover,
.has-sub:hover > .nav-link,
.has-sub:focus-within > .nav-link,
.has-sub.open > .nav-link { background: #FFF0F7; color: #C13584; }
.nav-link[aria-current="page"] { background: #000; color: #fff; }
.nav-link:focus-visible { outline: 2px solid #C13584; outline-offset: 2px; }
.nav-chev { width: 14px; height: 14px; opacity: .55; transition: transform .2s; }
.has-sub:hover .nav-chev,
.has-sub:focus-within .nav-chev,
.has-sub.open .nav-chev { transform: rotate(180deg); }

/* ---------- mega-menu panel ---------- */
.has-sub { position: relative; }
.nav-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 8px;
  width: 500px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 20px;
  box-shadow: 0 28px 60px -20px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.04);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px) scale(.98);
  transform-origin: top center;
  transition: opacity .18s, transform .18s, visibility .18s;
}
/* hover bridge across the gap between trigger and panel */
.nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-sub:hover > .nav-panel,
.has-sub:focus-within > .nav-panel,
.has-sub.open > .nav-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }

/* left: platform card */
.nav-feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 176px;
  padding: 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand, #C13584) 8%, #fff);
  font-family: 'Google Sans', 'Product Sans', 'Roboto', 'Segoe UI', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #000;
  text-decoration: none;
}
.nav-feature::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -40px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--brand, #C13584);
  opacity: .14;
  filter: blur(26px);
  transition: opacity .25s;
}
.nav-feature:hover::after { opacity: .26; }
.nav-feature img { width: 34px; height: 34px; }
.nav-go { position: absolute; right: 16px; bottom: 18px; width: 18px; height: 18px; transition: transform .2s; }
.nav-feature:hover .nav-go { transform: translateX(3px); }

/* right: service list */
.nav-sub { display: grid; grid-template-columns: 1fr; gap: 2px; align-content: start; }
.nav-sub a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 12px;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-sub a:hover, .nav-sub a:focus-visible { background: #F5F5F5; outline: none; }
.nav-sub a[aria-current="page"] { color: #C13584; }
.nav-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  background: #fff;
  color: var(--brand, #C13584);
  transition: border-color .15s, background .15s;
}
.nav-ic svg { width: 18px; height: 18px; stroke-width: 1.8; }
.nav-sub a:hover .nav-ic {
  border-color: color-mix(in srgb, var(--brand, #C13584) 35%, transparent);
  background: color-mix(in srgb, var(--brand, #C13584) 7%, #fff);
}
/* "Other Platforms": logo grid */
.nav-panel--grid { grid-template-columns: 1fr; width: 360px; }
.nav-panel--grid .nav-sub { grid-template-columns: 1fr 1fr; gap: 4px; }
.nav-panel--grid .nav-sub a { padding: 10px 12px; border: 1px solid rgba(0,0,0,.06); }
.nav-panel--grid .nav-sub a:hover { border-color: color-mix(in srgb, var(--brand, #C13584) 40%, transparent); background: color-mix(in srgb, var(--brand, #C13584) 6%, #fff); }
.nav-panel--grid img { width: 22px; height: 22px; flex: none; }

/* ---------- account · cart · menu buttons ---------- */
.top-right { flex: none; display: flex; align-items: center; gap: 8px; }
.top .cart-link,
.top .account-link,
.nav-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 999px;
  background: #fff;
  color: #000;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.top .cart-link svg, .top .account-link svg, .nav-toggle svg { width: 19px; height: 19px; stroke-width: 1.8; }
.top .account-link:hover { border-color: #C13584; color: #C13584; transform: none; }
.top .cart-link {
  background: #C13584;
  border-color: #C13584;
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(193,53,132,.7);
}
.top .cart-link:hover { background: #b00059; border-color: #b00059; color: #fff; transform: translateY(-1px); }
.top .cart-link:focus-visible, .top .account-link:focus-visible, .nav-toggle:focus-visible { outline: 2px solid #C13584; outline-offset: 2px; }
.top .cart-count:not([data-count="0"]):not([data-count=""]):not(:empty) {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  margin: 0;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.nav-toggle { display: none; }
.nav-toggle:hover { border-color: #000; }

/* ---------- small screens: menu becomes a sheet ---------- */
@media (max-width: 1179px) {
  .nav-toggle { display: inline-flex; }
  .top-right { margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
    margin: 0;
    max-height: calc(100svh - 90px);
    overflow-y: auto;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 22px;
    box-shadow: 0 28px 60px -18px rgba(0,0,0,.32);
    text-align: left;
  }
  .top.nav-open .site-nav { display: block; animation: nav-sheet .2s ease-out; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; padding: 0 !important; background: none; border: 0; border-radius: 0; }
  .nav-link { height: auto; padding: 12px; font-size: 16px; border-radius: 12px; }
  .nav-chev { display: none; }
  .has-sub:hover > .nav-link, .has-sub:focus-within > .nav-link { background: none; color: #000; }
  .nav-panel,
  .has-sub:hover > .nav-panel,
  .has-sub:focus-within > .nav-panel {
    position: static;
    display: block;
    width: auto;
    padding: 0 4px 10px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-panel::before, .nav-feature { display: none; }
  .nav-sub, .nav-panel--grid .nav-sub { grid-template-columns: 1fr 1fr; gap: 6px; }
  .nav-sub a { white-space: normal; padding: 8px; gap: 9px; font-size: 13.5px; border: 1px solid rgba(0,0,0,.07); }
  .nav-ic { width: 30px; height: 30px; border-radius: 9px; }
  .nav-ic svg { width: 16px; height: 16px; }
}
@media (max-width: 380px) {
  .nav-sub, .nav-panel--grid .nav-sub { grid-template-columns: 1fr; }
}
@keyframes nav-sheet { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .nav-panel, .nav-link, .nav-chev, .nav-go, .top { transition: none; }
  .top.nav-open .site-nav { animation: none; }
}

/* ---------- footer ---------- */
.footer { padding: clamp(16px, 3svh, 28px) clamp(20px, 4vw, 56px); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.footer-left { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; }
.footer-left a { font-size: 13px; color: #000; text-decoration: none; transition: color .2s; }
.footer-left a:hover { color: #C13584; }
.footer-copy { font-size: 12px; color: rgba(0,0,0,.7); }
.footer-social { display: flex; align-items: center; gap: 16px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: rgba(0,0,0,.7);
  transition: color .2s, transform .2s;
}
.footer-social a:hover { color: #C13584; transform: scale(1.15); }
.footer-social svg { width: 1em; height: 1em; }
@media (max-width: 640px) {
  .footer { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .footer-inner { justify-content: center; gap: 10px 16px; }
  .footer-left { justify-content: center; gap: 6px 14px; }
  .footer-left a { font-size: 12px; }
  .footer-copy { width: 100%; text-align: center; font-size: 11px; }
  .footer-social { justify-content: center; gap: 15px; }
  .footer-social a { font-size: 17px; }
}

/* free Instagram followers button (homepage, Instagram pages, /free-instagram-followers);
   offers.js opens the trial form in place when the offers are on */
.ft-cta{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;max-width:520px;box-sizing:border-box;margin:18px auto 0;padding:18px 22px;border-radius:980px;background:linear-gradient(90deg,#833AB4,#E1306C 55%,#F77737);color:#fff;font-size:18px;font-weight:600;line-height:1.2;text-align:center;text-decoration:none;box-shadow:0 10px 28px rgba(225,48,108,.35);transition:transform .2s,box-shadow .2s}
.ft-cta:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(225,48,108,.45);color:#fff}
.ft-cta--fold{margin-top:20px}
.ft-home{text-align:center}
.ft-home .hs-head{margin-left:auto;margin-right:auto}
.ft-form{max-width:460px;margin:24px auto 0;background:#fff;border-radius:24px;padding:24px 22px;box-shadow:0 8px 26px rgba(0,0,0,.10)}
@media (prefers-reduced-motion: reduce){.ft-cta{transition:none}}
