/* Creator Growth public homepage only. No customer/admin application selectors are used here. */
.cg-home {
  --cgh-ink:#111426;
  --cgh-muted:#657089;
  --cgh-purple:#7042f4;
  --cgh-purple-2:#a86bff;
  --cgh-pink:#e85bb5;
  --cgh-line:#e7e4ef;
  --cgh-soft:#f7f5ff;
  --cgh-dark:#15162a;
  --cgh-radius:24px;
  color:var(--cgh-ink);
  width:100%;
  max-width:100%;
}

/* Root-cause scroll hardening: keep the public page as one normal document. */
html.cg-home-page {
  overflow-x:hidden !important;
  overflow-y:auto !important;
  height:auto !important;
  min-height:100%;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
}
body.cg-home {
  overflow:visible !important;
  overflow-x:hidden !important;
  overflow-y:visible !important;
  height:auto !important;
  min-height:100vh !important;
  position:relative !important;
  touch-action:auto !important;
  overscroll-behavior-y:auto;
  -webkit-overflow-scrolling:auto;
}
body.cg-home::before,
body.cg-home::after {
  position:absolute !important;
  pointer-events:none !important;
}

/* Sticky-header anchor targets should land below the header instead of underneath it. */
.cg-home [id] {
  scroll-margin-top:calc(82px + env(safe-area-inset-top,0px));
}

.cg-home main,
.cg-home section,
.cg-home footer {
  min-width:0;
}
.cg-home img {
  max-width:100%;
}

/* Header: compact, safe-area aware and never wider than the viewport. */
.cg-home .cg-nav {
  position:sticky;
  top:0;
  z-index:1000;
  padding-top:env(safe-area-inset-top,0px);
}
.cg-home .cg-nav-inner {
  min-width:0;
  height:72px;
}
.cg-home .cg-brand {
  min-width:0;
  flex:0 1 auto;
}
.cg-home .cg-brand > span:last-child {
  overflow:hidden;
  text-overflow:ellipsis;
}
.cg-home .cg-nav-actions {
  flex:0 0 auto;
  min-width:0;
}
.cg-home .cg-nav-actions .cg-btn-primary {
  white-space:nowrap;
}
.cg-home .cg-menu {
  flex:0 0 auto;
  cursor:pointer;
  border:1px solid #e3e0ec;
  color:#2a2540;
  box-shadow:0 7px 18px rgba(47,38,93,.06);
}
.cg-home .cg-menu:focus-visible,
.cg-home .cg-nav a:focus-visible,
.cg-home .cg-btn:focus-visible {
  outline:3px solid rgba(112,66,244,.28);
  outline-offset:3px;
}
.cg-home .cg-nav.is-open .cg-menu {
  background:#f3efff;
  color:#5e34d5;
}

/* Hero */
.cg-home .cg-hero-grid {
  min-height:0;
  padding-top:72px;
  padding-bottom:70px;
}
.cg-home .cg-hero-copy {
  min-width:0;
}
.cg-home .cg-hero h1 {
  text-wrap:balance;
}
.cg-home .cg-lead {
  text-wrap:pretty;
}
.cg-home .cg-hero-art {
  min-width:0;
  min-height:0;
}
.cg-home .cg-hero-art img {
  display:block;
  width:min(690px,100%);
  height:auto;
  aspect-ratio:1/1;
  object-fit:contain;
}

/* Section rhythm: enough separation without oversized mobile gaps. */
.cg-home .cg-section {
  padding-block:84px;
}
.cg-home .cg-section-head > * {
  min-width:0;
}
.cg-home .cg-section h2,
.cg-home .cg-economy-panel h3,
.cg-home .cg-goal h3,
.cg-home .cg-final h2 {
  text-wrap:balance;
}
.cg-home .cg-section-copy,
.cg-home .cg-card p,
.cg-home .cg-platform p,
.cg-home .cg-goal p,
.cg-home .cg-mini span,
.cg-home .cg-custom-quote p {
  text-wrap:pretty;
}

/* CREATE / BUILD / COLLABORATE / MONETISE imagery. */
.cg-home .cg-content-cards {
  align-items:stretch;
}
.cg-home .cg-content-card {
  min-width:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.cg-home .cg-content-image::before,
.cg-home .cg-content-image::after {
  content:none !important;
  display:none !important;
}
.cg-home .cg-content-image {
  height:auto;
  aspect-ratio:5/3;
  padding:0;
  background:#f2effa;
  position:relative;
  overflow:hidden;
}
.cg-home .cg-content-image::before,
.cg-home .cg-content-image::after {
  content:none !important;
  display:none !important;
}
.cg-home .cg-content-image picture,
.cg-home .cg-content-image img {
  display:block;
  width:100%;
  height:100%;
}
.cg-home .cg-content-image img {
  object-fit:cover;
  object-position:center;
  transform:scale(1.015);
  transition:transform .55s cubic-bezier(.22,1,.36,1),filter .35s ease;
}
@media (hover:hover) and (pointer:fine) {
  .cg-home .cg-content-card:hover .cg-content-image img {
    transform:scale(1.045);
    filter:saturate(1.04);
  }
}
.cg-home .cg-content-body {
  flex:1;
}
.cg-home .cg-content-body ul {
  margin-top:8px;
}

/* WHY CREATOR GROWTH — deliberately high contrast. */
.cg-home .cg-simple-cards {
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:16px !important;
}
.cg-home .cg-simple-card {
  min-width:0;
  min-height:168px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  padding:26px !important;
  background:linear-gradient(145deg,rgba(255,255,255,.11),rgba(255,255,255,.055)) !important;
  border:1px solid rgba(255,255,255,.16) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 18px 45px rgba(0,0,0,.16) !important;
  color:#fff !important;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.cg-home .cg-simple-card h3 {
  color:#fff !important;
  font-size:18px !important;
  line-height:1.2 !important;
  margin:0 0 10px !important;
}
.cg-home .cg-simple-card p {
  color:#dfe2ec !important;
  font-size:13px !important;
  line-height:1.6 !important;
  margin:0 !important;
  max-width:34ch;
}

/* Discovery / marketing language should read like a creator product, not a backend panel. */
.cg-home .cg-platform-link {
  letter-spacing:.01em;
}
.cg-home .cg-custom-quote {
  border-color:rgba(112,66,244,.14);
}

/* Prevent the intentional card grid from becoming a clipped horizontal row. */
.cg-home .cg-content-cards,
.cg-home .cg-cards-3,
.cg-home .cg-goals,
.cg-home .cg-platform-grid,
.cg-home .cg-audience-grid,
.cg-home .cg-steps,
.cg-home .cg-referral-flow {
  min-width:0;
}

/* Footer must remain reachable and clear of any application-only mobile nav. */
.cg-home .cg-footer {
  padding-bottom:max(45px,calc(45px + env(safe-area-inset-bottom,0px)));
}

/* Phone */
@media (max-width:760px) {
  html.cg-home-page {
    scroll-behavior:smooth;
  }
  .cg-home .cg-wrap {
    width:min(100% - 24px,640px);
  }
  .cg-home .cg-nav-inner {
    height:64px;
    gap:8px;
    padding-inline:4px;
  }
  .cg-home .cg-brand {
    gap:8px;
    font-size:15px;
    flex:1 1 auto;
    min-width:0;
  }
  .cg-home .cg-brand-mark {
    width:34px;
    height:34px;
    flex:0 0 34px;
  }
  .cg-home .cg-nav-actions {
    gap:6px;
    min-width:0;
  }
  .cg-home .cg-nav-actions .cg-btn-primary,
  .cg-home .cg-menu {
    flex:0 0 auto;
  }
  .cg-home .cg-nav-actions .cg-btn-primary {
    min-height:42px;
    padding:9px 11px;
    font-size:11px;
  }
  .cg-home .cg-menu {
    width:40px;
    height:40px;
    border-radius:12px;
  }
  .cg-home .cg-nav.is-open .cg-nav-links {
    left:12px;
    right:12px;
    top:calc(64px + env(safe-area-inset-top,0px));
    max-height:min(70vh,520px);
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  .cg-home .cg-hero-grid {
    grid-template-columns:1fr;
    padding:42px 0 34px;
  }
  .cg-home .cg-hero h1 {
    font-size:clamp(42px,12vw,54px);
    line-height:1.0;
    margin-top:16px;
  }
  .cg-home .cg-lead {
    font-size:15px;
    line-height:1.6;
  }
  .cg-home .cg-actions {
    gap:9px;
  }
  .cg-home .cg-actions .cg-btn {
    min-height:46px;
  }
  .cg-home .cg-trust {
    gap:9px 14px;
    font-size:10px;
  }
  .cg-home .cg-hero-art {
    margin-top:10px;
  }
  .cg-home .cg-hero-art img {
    width:min(100%,430px);
    aspect-ratio:1/1;
  }
  .cg-home .cg-section {
    padding-block:58px;
  }
  .cg-home .cg-section-head {
    gap:16px;
    margin-bottom:26px;
  }
  .cg-home .cg-section h2 {
    font-size:clamp(34px,9.5vw,43px);
    line-height:1.04;
  }
  .cg-home .cg-section-copy {
    font-size:14px;
    line-height:1.6;
  }
  .cg-home .cg-card,
  .cg-home .cg-economy-panel,
  .cg-home .cg-goal,
  .cg-home .cg-ref-step,
  .cg-home .cg-content-card,
  .cg-home .cg-platform {
    border-radius:20px;
  }
  .cg-home .cg-content-cards {
    grid-template-columns:1fr !important;
    gap:14px;
    overflow:visible;
  }
  .cg-home .cg-simple-cards {
    grid-template-columns:1fr !important;
  }
  .cg-home .cg-simple-card {
    min-height:0;
    padding:22px !important;
  }
  .cg-home .cg-content-image {
    aspect-ratio:16/9;
  }
  .cg-home .cg-content-body {
    padding:18px;
  }
  .cg-home .cg-content-body h3 {
    font-size:17px;
  }
  .cg-home .cg-content-body ul {
    font-size:12px;
    line-height:1.8;
  }
  .cg-home .cg-dark-section {
    border-radius:24px;
  }
  .cg-home .cg-dark-inner,
  .cg-home .cg-audience-inner {
    padding:28px 20px;
  }
  .cg-home .cg-flow {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px 12px;
  }
  .cg-home .cg-flow-item p {
    font-size:10px;
    line-height:1.45;
  }
  .cg-home .cg-audience-grid {
    grid-template-columns:1fr;
    gap:12px;
  }
  .cg-home .cg-audience-card {
    min-height:0;
    padding:20px;
  }
  .cg-home .cg-platform-grid--ten {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .cg-home .cg-platform {
    min-height:168px;
    padding:16px 13px;
  }
  .cg-home .cg-platform-icon {
    width:44px;
    height:44px;
    margin-bottom:13px;
  }
  .cg-home .cg-platform h3 {
    font-size:14px;
  }
  .cg-home .cg-platform p {
    min-height:0;
    font-size:11px;
    line-height:1.45;
  }
  .cg-home .cg-custom-quote {
    align-items:stretch;
    flex-direction:column;
    padding:20px;
  }
  .cg-home .cg-custom-quote .cg-btn {
    width:100%;
  }
  .cg-home .cg-goals,
  .cg-home .cg-how,
  .cg-home .cg-visual-row,
  .cg-home .cg-referral {
    grid-template-columns:1fr;
  }
  .cg-home .cg-goals {
    gap:12px;
  }
  .cg-home .cg-goal p {
    min-height:0;
  }
  .cg-home .cg-steps {
    grid-template-columns:1fr;
    gap:14px;
  }
  .cg-home .cg-step {
    display:grid;
    grid-template-columns:45px minmax(0,1fr);
    column-gap:10px;
  }
  .cg-home .cg-step-num {
    grid-row:span 2;
  }
  .cg-home .cg-step:not(:last-child)::after {
    content:"↓";
    right:auto;
    left:14px;
    top:42px;
  }
  .cg-home .cg-offer {
    padding:30px 20px;
  }
  .cg-home .cg-referral-flow {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .cg-home .cg-final {
    padding:52px 18px;
    border-radius:26px;
  }
  .cg-home .cg-footer-inner {
    align-items:flex-start;
    flex-direction:column;
  }
  .cg-home .cg-footer-links {
    gap:10px 14px;
  }
}

/* Very small phones: keep all header controls on one line. */
@media (max-width:380px) {
  .cg-home .cg-nav-inner {
    gap:5px;
  }
  .cg-home .cg-brand > span:last-child {
    font-size:14px;
  }
  .cg-home .cg-nav-actions .cg-btn-primary {
    padding-inline:9px;
    font-size:10px;
  }
  .cg-home .cg-menu {
    width:38px;
    height:38px;
  }
  .cg-home .cg-brand-mark {
    width:32px;
    height:32px;
    flex-basis:32px;
  }
}

/* Tablet/iPad: two-column content without treating the device as a phone. */
@media (min-width:761px) and (max-width:1100px) {
  .cg-home .cg-wrap {
    width:min(100% - 48px,920px);
  }
  .cg-home .cg-nav-links {
    gap:12px;
  }
  .cg-home .cg-nav-links a {
    font-size:12px;
  }
  .cg-home .cg-hero-grid {
    grid-template-columns:1fr;
    padding-block:58px;
  }
  .cg-home .cg-hero-art img {
    width:min(620px,100%);
  }
  .cg-home .cg-content-cards {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .cg-home .cg-audience-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (prefers-reduced-motion:reduce) {
  html.cg-home-page { scroll-behavior:auto; }
  .cg-home .cg-content-image img,
  .cg-home .cg-btn,
  .cg-home .cg-card,
  .cg-home .cg-platform,
  .cg-home .cg-goal,
  .cg-home .cg-economy-panel { transition:none !important; }
}
