/* ============================================================
   Creators landing page — page-specific styles.
   Loads AFTER ../css/styles.css (shared design system + components).
   ============================================================ */

/* ---------- Creators hero ---------- */
.chero { padding-top: clamp(40px, 6vw, 72px); background: var(--bg); overflow: hidden; }
.chero-copy { max-width: 720px; margin: 0 auto; text-align: center; }
.chero-copy h1 {
  font-size: clamp(34px, 6vw, 62px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.03; color: var(--ink);
}
.chero-sub {
  margin: 20px auto 0; max-width: 520px; color: var(--ink-soft);
  font-size: clamp(15px, 1.7vw, 18px); line-height: 1.55;
}
.chero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* Full-bleed grayscale video filmstrip */
.chero-strip {
  margin-top: clamp(36px, 5vw, 56px);
  width: 100vw; position: relative; left: 50%; transform: translateX(-50%);
  display: flex; gap: 14px; padding: 8px clamp(12px, 3vw, 40px);
  overflow: hidden; align-items: center;
}
.cvcard {
  position: relative; flex: 1 1 0; min-width: 0; margin: 0;
  aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden;
  background: #0d0b09; box-shadow: var(--shadow-md); cursor: pointer;
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0));
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .35s var(--ease);
  filter: grayscale(1) contrast(.96);
  will-change: transform, filter;
}
.cvcard:nth-child(2n)   { --r: 1.5deg;  --y: 10px; }
.cvcard:nth-child(2n+1) { --r: -1.5deg; --y: 0px; }
.cvcard:nth-child(3)    { --r: 0deg;    --y: -6px; }
.cvcard__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cvcard:hover, .cvcard:focus-visible, .cvcard.is-playing {
  filter: grayscale(0) contrast(1); outline: none;
  transform: rotate(0deg) translateY(-6px); box-shadow: 0 24px 60px rgba(245, 180, 0, .3);
  z-index: 2;
}

/* ---------- How it works (5 steps + trim-path connectors) ---------- */
.howitworks {
  background: var(--bg-alt); border-block: 1px solid var(--line); position: relative;
  padding-top: 67px; padding-bottom: 167px;
}
.hiw-cog {
  display: inline-block; width: 40px; height: 40px; vertical-align: -9px; margin-right: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--ink) 0 26%, transparent 27%),
    conic-gradient(var(--accent-strong) 0 12.5%, transparent 0 25%, var(--accent-strong) 0 37.5%, transparent 0 50%, var(--accent-strong) 0 62.5%, transparent 0 75%, var(--accent-strong) 0 87.5%, transparent 0);
}
.hiw-sticker { display: inline-block; height: 46px; width: auto; vertical-align: -13px; margin-right: 10px; }
.hiw-note { position: relative; }
.hiw-steps {
  list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0;
  display: flex; align-items: flex-start; justify-content: center; gap: 0;
}
.hiw-step { flex: 1 1 0; text-align: center; padding: 8px 10px; border-radius: 16px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.hiw-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); background: var(--surface); }
.hiw-icon {
  position: relative; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px;
  display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.hiw-step:hover .hiw-icon { transform: translateY(-2px) scale(1.04); box-shadow: var(--shadow-md); }
.hiw-icon svg { width: 26px; height: 26px; stroke: var(--accent-strong); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hiw-badge {
  position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 2px 6px rgba(26,23,18,.18);
}
.hiw-step h3 { font-size: 16px; font-weight: 800; color: var(--ink); }
.hiw-step p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* connector between two steps — trim-path reveal on hover of the previous step */
.hiw-conn { flex: 0 1 64px; align-self: flex-start; margin-top: 27px; height: 12px; overflow: visible; }
.hiw-conn line { vector-effect: non-scaling-stroke; }
.hiw-conn-base { stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 1 6; stroke-linecap: round; }
.hiw-conn-fill {
  stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round;
  stroke-dashoffset: 100; transition: stroke-dashoffset .4s var(--ease);
}
.hiw-step:hover + .hiw-conn .hiw-conn-fill { stroke-dashoffset: 0; }

/* ---------- Dashboard cards ("Everything a creator needs to earn") ---------- */
.dashboard { background: var(--bg); padding-block: clamp(64px, 8vw, 108px); }
.dash-culture { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: clamp(84px, 9vw, 118px); height: auto; pointer-events: none; }
.dash-head { position: relative; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: clamp(40px, 5vw, 60px); }
.dash-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
/* soft, diffuse amber glow beneath the card (100×100, 40%, blur 75px) */
.dash-card::after {
  content: ""; position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%);
  width: 100px; height: 100px; border-radius: 50%; background: var(--accent);
  opacity: 0; filter: blur(75px); z-index: -1; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.dash-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.dash-card:hover::after { opacity: .4; }
.dash-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); margin-bottom: 16px; }
.dash-card__icon svg { width: 22px; height: 22px; stroke: var(--accent-strong); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dash-card h3 { font-size: 19px; font-weight: 800; color: var(--ink); }
.dash-card p { margin-top: 8px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.dash-widget { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }

/* mini list rows */
.dw-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dw-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dw-title { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.dw-meta { font-size: 12px; color: var(--muted); }
.dw-tag { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.dw-tag--live { background: #E7F7EF; color: #16855B; }
.dw-tag--applied { background: var(--accent-soft); color: var(--accent-strong); }
.dw-tag--review { background: #EAF1FF; color: #3B6FE0; }
.dw-tag--draft { background: var(--line); color: var(--ink-soft); }
.dw-amt { font-size: 13px; font-weight: 800; color: var(--ink); white-space: nowrap; }

/* payments earnings block */
.dw-earn-big { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.dw-earn-cap { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* mini bar chart */
.dw-chart { display: flex; align-items: flex-end; gap: 8px; height: 84px; }
.dw-chart-head { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.dw-bar { flex: 1; background: var(--accent); border-radius: 5px 5px 0 0; min-height: 8px; }
.dw-bar:last-child { background: var(--accent-strong); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .dash-culture { display: none; }
  .hiw-steps { flex-wrap: wrap; gap: 30px 18px; }
  .hiw-step { flex: 0 0 44%; }
  .hiw-conn { display: none; } /* stacked layout: drop the horizontal connectors */
}
@media (max-width: 760px) {
  .dash-grid { grid-template-columns: 1fr; }
  .cvcard { flex: 0 0 44%; }
  .chero-strip { overflow-x: auto; scrollbar-width: none; }
  .chero-strip::-webkit-scrollbar { display: none; }
}
@media (max-width: 560px) {
  .hiw-step { flex: 0 0 100%; }
  .cvcard { flex: 0 0 70%; }
}

@media (prefers-reduced-motion: reduce) {
  .cvcard, .hiw-step, .hiw-icon, .dash-card, .hiw-conn-fill { transition: none !important; }
}
