/* Public homepage additions (loaded only on /). Builds on the homepage rules in styles.css. */

/* Hero: the loop, as a row of chips */
.loop-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 6px; padding: 0; margin: -8px 0 28px; counter-reset: loop; }
.loop-steps li { counter-increment: loop; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 14px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; padding: 5px 12px 5px 6px; }
.loop-steps li::before { content: counter(loop); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--accent); font-size: 12px; }
.loop-steps li:not(:last-child)::after { content: "→"; margin-left: 6px; opacity: 0.7; font-weight: 500; }
.hero-band .row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Highlighted step (the teleprompter) */
.feature-tag { margin-left: 4px; background: color-mix(in srgb, var(--accent) 12%, white); color: var(--accent); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.feature.highlight .feature-vis { background: radial-gradient(at 85% 15%, rgba(255, 110, 196, 0.35) 0, transparent 50%), linear-gradient(135deg, #3a2fc4 0%, #635bff 55%, #8b3fd9 100%); }

/* Record studio illustration */
.rec-wrap { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; flex-wrap: wrap; }
.rec-phone { width: 196px; flex: none; aspect-ratio: 9 / 18.5; background: #0b0b14; border-radius: 32px; padding: 8px; box-shadow: 0 40px 70px -24px rgba(10, 8, 40, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.rec-screen { position: relative; height: 100%; border-radius: 25px; overflow: hidden; background: linear-gradient(180deg, #2e2a52 0%, #6c5b9c 50%, #d7a6c2 100%); }
.rec-person { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 70%; height: 62%; }
.rec-person i { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 42%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 224, 210, 0.55); }
.rec-person b { position: absolute; left: 0; right: 0; bottom: 0; height: 58%; border-radius: 50% 50% 0 0; background: rgba(255, 255, 255, 0.22); }
.rec-crop { position: absolute; left: 0; right: 0; height: 6%; background: rgba(0, 0, 0, 0.45); }
.rec-crop.top { top: 0; }
.rec-crop.bottom { bottom: 0; }
.rec-top { position: absolute; top: 12px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; }
.rec-chip { display: inline-flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 10.5px; font-weight: 700; padding: 4px 8px; border-radius: 999px; white-space: nowrap; backdrop-filter: blur(6px); }
.rec-chip.live { background: #e5484d; }
.rec-prompter { position: absolute; top: 44px; left: 10px; right: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(8, 6, 30, 0.55); backdrop-filter: blur(4px); display: grid; gap: 3px; }
.rec-prompter p { margin: 0; color: #fff; font-size: 13px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.rec-prompter .past { opacity: 0.4; }
.rec-prompter .now { color: #fff; background: rgba(99, 91, 255, 0.85); border-radius: 6px; padding: 1px 5px; margin: 0 -5px; }
.rec-prompter .far { opacity: 0.55; }
.rec-bar { position: absolute; left: 10px; right: 10px; bottom: 74px; display: flex; gap: 6px; justify-content: center; }
.rec-controls { position: absolute; left: 12px; right: 12px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.rec-ctl { color: #fff; font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, 0.4); border-radius: 999px; padding: 5px 9px; }
.rec-btn { width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; }
.rec-btn i { width: 22px; height: 22px; border-radius: 6px; background: #e5484d; }
.rec-side { max-width: 220px; flex: 1 1 170px; }
.rec-take { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.rec-take strong { display: block; font-size: 14px; }
.rec-take small { color: var(--ink-soft); font-size: 12px; }
.rec-take.faded { opacity: 0.6; }

/* Small bits used by the step illustrations */
.vis-foot { margin: 0; text-align: center; font-size: 12px; color: var(--ink-soft); }
.vis-brand, .vis-apply, .vis-tick, .vis-order { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.vis-brand > div, .vis-apply > div, .vis-tick > div, .vis-order > div { min-width: 0; }
.vis-brand strong, .vis-apply strong, .vis-tick strong, .vis-order strong { display: block; font-size: 14px; }
.vis-brand small, .vis-apply small, .vis-tick small, .vis-order small { display: block; color: var(--ink-soft); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vis-order { grid-template-columns: 1fr auto auto; padding: 8px 12px; }
.vis-order > div strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vis-brand-logo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #635bff, #c084fc); color: #fff; font-weight: 900; font-size: 13px; display: grid; place-items: center; }
.pill.cust-new { background: #e7f0ff; color: #1d4ed8; }
.pill.cust-ret { background: #f3e8ff; color: #6b21a8; }
.vis-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f1f2f6; border-radius: 8px; padding: 3px; font-size: 12.5px; font-weight: 700; text-align: center; color: var(--ink-soft); }
.vis-tabs span { padding: 6px 4px; border-radius: 6px; white-space: nowrap; }
.vis-tabs span.on { background: #fff; color: var(--accent); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.vis-ver { display: inline-block; margin-left: 4px; background: var(--accent); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 999px; vertical-align: 1px; }
.vis-chat { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.vis-chat p { margin: 0; background: #f7f6ff; border-radius: 4px 12px 12px 12px; padding: 8px 12px; font-size: 13px; }
.vis-chat p strong { display: block; font-size: 12px; color: var(--accent); }
.vis-docs { display: flex; flex-wrap: wrap; gap: 6px; }
.vis-doc { font-size: 12px; font-weight: 700; color: var(--accent); background: #f7f6ff; border: 1px solid #e4e1ff; border-radius: 6px; padding: 4px 8px; }
.vis-brief-products { display: flex; flex-wrap: wrap; gap: 8px; }
.vis-brief-products span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 13px; font-weight: 700; }
.vis-brief-products i { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(160deg, #f9a8d4, #818cf8); }
.vis-dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vis-dodont div { border-radius: 8px; padding: 8px 10px; background: var(--ok-bg); display: grid; }
.vis-dodont div.dont { background: var(--err-bg); }
.vis-dodont small { font-size: 11px; font-weight: 700; color: var(--ok-ink); text-transform: uppercase; letter-spacing: 0.04em; }
.vis-dodont .dont small { color: var(--err-ink); }
.vis-dodont span { font-size: 13px; font-weight: 500; }
.vis-script { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px dashed #c9c6ff; background: #f7f6ff; border-radius: 8px; padding: 8px 8px 8px 12px; font-size: 13px; font-weight: 700; }
.vis-vers { display: inline-flex; background: #f1f2f6; border-radius: 999px; padding: 2px; font-size: 12px; font-weight: 700; }
.vis-vers span { padding: 2px 10px; border-radius: 999px; color: var(--ink-soft); }
.vis-vers span.on { background: var(--accent); color: #fff; }
.vis-stats em { display: block; font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.vis-stats em.up { color: #15803d; }
.vis-logo.plain { background: #f6f9fc; border: 1px solid var(--line); }
.vis-balance { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.vis-balance small { display: block; font-size: 12px; color: var(--ink-soft); }
.vis-balance strong { font-size: 18px; font-weight: 900; }
.vis-box { width: 20px; height: 20px; border-radius: 5px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; }

/* Everything in one place */
.all-group + .all-group { margin-top: 40px; }
.all-group > h3 { font-size: 20px; font-weight: 900; margin: 0 0 16px; }
.all-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.all-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.all-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, white); color: var(--accent); margin-bottom: 12px; }
.all-card h4 { font: 700 16px var(--font-head); letter-spacing: -0.01em; margin: 0 0 6px; }
.all-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.all-help { margin: 28px 0 0; color: var(--ink-soft); }
.all-help a { font-weight: 700; }

/* Integrations */
.int-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.int-item { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.int-logo { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.int-item h3 { font-size: 16px; margin: 2px 0 4px; font-weight: 700; }
.int-item p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }

@media (max-width: 900px) {
  .all-grid, .int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .all-grid, .int-grid { grid-template-columns: 1fr; }
  .all-card { padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
  .all-icon { grid-row: span 2; margin-bottom: 0; }
  .loop-steps li { font-size: 13px; }
}
@media (max-width: 480px) {
  .rec-phone { width: 190px; }
  .rec-side { max-width: none; flex-basis: 100%; }
}

/* Let long one-line text (links, handles) shrink with ellipsis instead of widening the step on phones. */
.feature > *, .vis-card > *, .feature-vis > * { min-width: 0; }
.vis-card { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 480px) {
  .vis-stats strong { font-size: 15px; }
}

/* Hero: the one-line creator promise */
.lead-hook { display: block; color: #fff; font-weight: 900; font-size: 22px; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 10px; }

/* For creators: five steps right under the hero */
.site-section.creator-start { padding-top: 24px; text-align: center; scroll-margin-top: 48px; }
.creator-start h2 { margin-bottom: 48px; text-wrap: balance; }
.cs-more { text-wrap: balance; }
.cs-steps { list-style: none; padding: 0; margin: 0 auto; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; max-width: 1080px; }
/* The connecting line runs behind the icon circles, from the first to the last. */
.cs-steps::before { content: ""; position: absolute; top: 38px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, #d9d6ff, #c4bfff); z-index: 0; }
.cs-step { position: relative; display: grid; justify-items: center; align-content: start; gap: 18px; }
.cs-step:not(:last-child)::after { content: ""; position: absolute; top: 33px; right: -16px; width: 8px; height: 8px; border-top: 2px solid #a5a0ff; border-right: 2px solid #a5a0ff; transform: rotate(45deg); background: #fff; z-index: 1; }
.cs-badge { position: relative; z-index: 1; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #635bff 55%, #8b3fd9 100%); box-shadow: 0 14px 28px -10px rgba(99, 91, 255, 0.6), 0 0 0 8px #fff; }
.cs-badge svg { width: 32px; height: 32px; }
.cs-num { position: absolute; top: -4px; left: -4px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--ink); font: 900 14px var(--font-head); box-shadow: 0 0 0 2px var(--accent); }
.cs-step:last-child .cs-badge { background: linear-gradient(135deg, #635bff 0%, #8b3fd9 50%, #e0479e 100%); }
.cs-body h3 { font-size: 19px; font-weight: 900; letter-spacing: -0.015em; margin: 0 0 6px; }
.cs-body p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }
.cs-more { margin: 48px auto 24px; font: 900 26px/1.25 var(--font-head); letter-spacing: -0.02em; color: var(--ink); }
.cs-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cs-cta form { margin: 0; }
.cs-cta .btn { padding: 13px 24px; font-size: 16px; }

@media (max-width: 900px) {
  .site-section.creator-start { text-align: left; padding-top: 16px; }
  .creator-start h2 { margin-bottom: 28px; }
  .cs-steps { grid-template-columns: 1fr; gap: 0; max-width: 520px; margin: 0; }
  .cs-steps::before, .cs-step:not(:last-child)::after { display: none; }
  .cs-step { grid-template-columns: 60px minmax(0, 1fr); justify-items: start; align-items: start; gap: 16px; padding-bottom: 26px; }
  .cs-step:last-child { padding-bottom: 0; }
  /* The timeline: a line from each circle down to the next one. */
  .cs-step:not(:last-child)::before { content: ""; position: absolute; left: 29px; top: 60px; bottom: 0; width: 2px; background: #d9d6ff; }
  .cs-badge { width: 60px; height: 60px; box-shadow: 0 10px 20px -8px rgba(99, 91, 255, 0.55); }
  .cs-badge svg { width: 26px; height: 26px; }
  .cs-num { width: 24px; height: 24px; font-size: 13px; top: -5px; left: -5px; }
  .cs-body { padding-top: 6px; }
  .cs-body h3 { font-size: 18px; margin-bottom: 4px; }
  .cs-body p { font-size: 15px; }
  .cs-more { margin: 32px 0 20px; font-size: 22px; }
  .cs-cta { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .lead-hook { font-size: 20px; }
  .cs-cta, .cs-cta form { width: 100%; }
  .cs-cta { flex-direction: column; }
  .cs-cta .btn { width: 100%; }
}

/* "Film once, still getting paid": one video, then each month's earnings stacking up (illustrative). */
.dv { margin: 8px auto 32px; max-width: 560px; padding: 24px 24px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 13px 27px -5px rgba(50, 50, 93, 0.1); text-align: center; }
.dv-chart { display: flex; align-items: flex-end; justify-content: center; gap: 14px; }
.dv-video { display: grid; justify-items: center; gap: 8px; flex: none; }
.dv-thumb { display: grid; place-items: center; width: 64px; height: 104px; border-radius: 12px; color: #fff; background: linear-gradient(160deg, #3a2fc4 0%, #635bff 55%, #c084fc 100%); box-shadow: 0 10px 20px -8px rgba(99, 91, 255, 0.55); }
.dv-video small, .dv-col small { color: var(--ink-soft); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.dv-arrow { align-self: center; color: #a5a0ff; font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.dv-months { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 14px; flex: 1 1 auto; justify-content: center; min-width: 0; }
.dv-col { display: grid; justify-items: center; gap: 6px; flex: 1 1 0; min-width: 0; max-width: 92px; }
.dv-col strong { font: 900 15px var(--font-head); letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.dv-stack { display: flex; flex-direction: column-reverse; width: 100%; max-width: 64px; height: 150px; justify-content: flex-start; gap: 2px; }
.dv-stack i { display: block; width: 100%; border-radius: 4px; background: #c4bfff; }
.dv-stack i.new { background: linear-gradient(135deg, #635bff 0%, #8b3fd9 100%); }
.dv figcaption { margin-top: 18px; display: grid; gap: 4px; }
.dv figcaption b { font: 900 18px/1.3 var(--font-head); letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.dv figcaption span { color: var(--ink-soft); font-size: 12.5px; }
.door-lead { margin: -6px 0 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 900px) {
  .dv { margin: 0 0 28px; text-align: left; }
  .dv figcaption { text-align: left; }
}
@media (max-width: 480px) {
  .dv { padding: 18px 14px 16px; }
  .dv-chart { gap: 8px; }
  .dv-months { gap: 8px; }
  .dv-thumb { width: 50px; height: 82px; }
  .dv-arrow { font-size: 18px; margin-bottom: 20px; }
  .dv-stack { height: 120px; }
  .dv-col strong { font-size: 13.5px; }
}
