.cf-original-growth-hidden {
  display: none !important;
}

.cf-billing-cadence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(4, 2, 10, 0.42);
}

.cf-billing-cadence button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #cfc7d9;
  background: transparent;
  font: 800 13px/1.2 inherit;
  cursor: pointer;
}

.cf-billing-cadence button strong {
  display: block;
  margin-top: 3px;
  color: #b7ff45;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cf-billing-cadence button.is-active {
  color: #fff;
  border-color: #ff2fd1;
  background: linear-gradient(135deg, rgba(255, 47, 209, 0.2), rgba(137, 70, 255, 0.22));
  box-shadow: 0 0 24px rgba(255, 47, 209, 0.14);
}

.cf-billing-note,
.cf-tax-note {
  margin: 12px 0 0;
  color: #bdb4c9;
  font-size: 12px;
  line-height: 1.55;
}

.cf-tax-note {
  color: #8f879a;
}

.cf-ribbon-stack {
  width: 100%;
  padding: 24px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #09080c;
}

.cf-ribbon-section {
  --cf-pad: clamp(20px, 4vw, 72px);
  position: relative;
  padding: 34px 0 18px;
  overflow: hidden;
}

.cf-ribbon-section + .cf-ribbon-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cf-ribbon-section > header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  gap: 28px;
  align-items: end;
  padding: 0 var(--cf-pad) 18px;
}

.cf-ribbon-section > header span {
  color: #b7ff45;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.cf-ribbon-section > header h2 {
  margin: 7px 0 0;
  color: #fff;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 0.98;
}

.cf-ribbon-section > header p,
.cf-ribbon-disclosure {
  color: #a99faf;
  font-size: 13px;
  line-height: 1.55;
}

.cf-ribbon-shell {
  position: relative;
}

.cf-ribbon-shell::before,
.cf-ribbon-shell::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 10px;
  width: min(68px, 8vw);
  pointer-events: none;
}

.cf-ribbon-shell::before {
  left: 0;
  background: linear-gradient(90deg, #09080c, transparent);
}

.cf-ribbon-shell::after {
  right: 0;
  background: linear-gradient(-90deg, #09080c, transparent);
}

.cf-ribbon-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 30vw, 420px);
  gap: 12px;
  overflow-x: auto;
  padding: 4px var(--cf-pad) 14px;
  scroll-padding-inline: var(--cf-pad);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #7c3cff #17121e;
  cursor: grab;
}

.cf-ribbon-rail:focus-visible {
  outline: 2px solid #55ebcf;
  outline-offset: -2px;
}

.cf-ribbon-rail.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.cf-ribbon-card {
  --cf-card-image: linear-gradient(135deg, rgba(255, 47, 209, 0.28), rgba(83, 221, 255, 0.2));
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 24px;
  min-height: 150px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cf-accent) 58%, transparent);
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #15101b, #0b0910);
  text-decoration: none;
  scroll-snap-align: start;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 12px 34px rgba(0, 0, 0, 0.24);
}

.cf-ribbon-card:hover,
.cf-ribbon-card:focus-visible {
  border-color: var(--cf-accent);
  box-shadow: 0 0 25px color-mix(in srgb, var(--cf-accent) 20%, transparent);
  transform: translateY(-2px);
}

.cf-ribbon-card:focus-visible {
  outline: 2px solid var(--cf-accent);
  outline-offset: 2px;
}

.cf-ribbon-card.is-placeholder {
  opacity: 0.72;
  cursor: default;
}

.cf-ribbon-art {
  min-height: 100%;
  background-image: linear-gradient(180deg, transparent 45%, rgba(7, 5, 11, 0.76)), var(--cf-card-image);
  background-position: center;
  background-size: cover;
}

.cf-ribbon-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 14px;
}

.cf-ribbon-copy small {
  color: var(--cf-accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.cf-ribbon-copy strong {
  font-size: 18px;
  line-height: 1.05;
}

.cf-ribbon-copy em {
  color: #b9afc2;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.cf-ribbon-arrow {
  align-self: center;
  color: var(--cf-accent);
  font-size: 21px;
  font-weight: 900;
}

.cf-ribbon-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 38px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #fff;
  background: rgba(9, 8, 12, 0.88);
  backdrop-filter: blur(14px);
  transform: translateY(-50%);
  cursor: pointer;
}

.cf-ribbon-control:hover,
.cf-ribbon-control:focus-visible {
  border-color: #55ebcf;
  color: #55ebcf;
}

.cf-ribbon-prev {
  left: 10px;
}

.cf-ribbon-next {
  right: 10px;
}

.cf-ribbon-disclosure {
  display: block;
  padding: 2px var(--cf-pad) 0;
  font-size: 10px;
}

@media (max-width: 760px) {
  .cf-billing-cadence,
  .cf-ribbon-section > header {
    grid-template-columns: 1fr;
  }

  .cf-billing-cadence button {
    min-height: 44px;
    font-size: 11px;
  }

  .cf-ribbon-section {
    --cf-pad: 16px;
  }

  .cf-ribbon-section > header {
    gap: 10px;
  }

  .cf-ribbon-rail {
    grid-auto-columns: min(84vw, 340px);
  }

  .cf-ribbon-card {
    grid-template-columns: 92px minmax(0, 1fr) 18px;
    min-height: 136px;
  }

  .cf-ribbon-control {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cf-ribbon-card {
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  }
}

/* Keep keyboard focus visible on the landing page and the account dialogs. */
.clipfabulous-app :is(a, button, input, textarea, select, [tabindex]):focus-visible,
#clipfabulous-mvp-root :is(a, button, input, textarea, select):focus-visible {
  outline: 3px solid #55ebcf;
  outline-offset: 3px;
}

/* Small muted labels need enough contrast against the dark studio surfaces. */
.clipfabulous-app:not(.light) {
  --muted: #b6afc0;
}
.clipfabulous-app:not(.light) :is(
  .tool-group > span,
  .source-drop span,
  .style-heading small,
  .quality-row small,
  .generate-row > div > span,
  .generate-row strong small,
  .route-title small,
  .route-item small,
  .language-grid small,
  .translator-seam small,
  .share-destinations small,
  .share-footer,
  .ribbon-powered small,
  .builder-step small,
  .hook-stack em,
  .output-block small,
  .content-mix small,
  .originality-check small,
  .quality-levers small,
  .retention-step small,
  .loop-toggle small,
  .loop-toggle em,
  .retention-score small,
  .script-arc small,
  .retention-guardrail small,
  footer
) {
  color: #b6afc0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cf-ribbon-card { transition: none; }
  .cf-ribbon-rail { scroll-behavior: auto; }
}

/* The inherited landing page uses 6–9px copy in several mobile panels.
   Keep supporting copy readable without scaling down the viewport. */
@media (max-width: 760px) {
  .clipfabulous-app :is(small, em, .tool-group > span, .hero > span,
    .prompt-label, .style-heading span, .controls label > span,
    .section-head > div > span, .builder-step b, .retention-step b,
    .route-item b, .route-title b, .output-block p,
    .growth-heading > p, .share-studio > p),
  .cf-ribbon-section :is(small, em),
  #clipfabulous-mvp-root :is(small, .cf-fine, .cf-status-text) {
    font-size: max(13px, 1em);
    line-height: 1.45;
  }
  .clipfabulous-app :is(input, textarea, select),
  #clipfabulous-mvp-root :is(input, textarea, select) {
    font-size: 16px;
  }
  .clipfabulous-app :is(button, a),
  #clipfabulous-mvp-root :is(button, a) {
    font-size: max(13px, 1em);
  }
}

.clipfabulous-app:not(.light) :is(
  .controls button, .style-strip small, .quality-row small,
  .route-title small, .route-item small, .language-grid small,
  .translator-seam small, .share-destinations small, .ribbon-powered small,
  .research-rule small, .hook-stack em, .output-block small,
  .content-mix small, .originality-check small, .quality-levers small,
  .retention-step small, .loop-toggle small, .script-arc small,
  .retention-guardrail small, .growth-heading > p, .preview-caption p
) { color: #c8c1d0; }


/* v0.7.5 signed-out / home marketing hero */
.cf-old-hero-hidden { display: none !important; }

.cf-launch-hero {
  position: relative;
  overflow: hidden;
  min-height: min(820px, calc(100vh - 74px));
  padding: clamp(38px, 5.2vw, 78px) clamp(20px, 5vw, 78px) 30px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 12% 76%, rgba(128,54,255,.18), transparent 33%),
    radial-gradient(circle at 91% 70%, rgba(255,47,209,.16), transparent 30%),
    linear-gradient(180deg, #08070d 0%, #0b0714 52%, #0a0810 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cf-launch-hero::before,
.cf-launch-hero::after {
  content:"";
  position:absolute;
  width:420px;height:420px;
  border-radius:50%;
  border:1px solid rgba(155,75,255,.18);
  box-shadow: 0 0 0 34px rgba(155,75,255,.035), 0 0 0 68px rgba(155,75,255,.025), 0 0 0 102px rgba(155,75,255,.018);
  pointer-events:none;
}
.cf-launch-hero::before { left:-250px; bottom:-230px; }
.cf-launch-hero::after { right:-260px; bottom:-210px; }

.cf-launch-kicker {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 22px;
  border:1px solid rgba(255,54,213,.78);
  border-radius:999px;
  color:#e2b9ff;
  background:rgba(54,18,77,.34);
  font-size:12px;
  font-weight:900;
  letter-spacing:.11em;
  box-shadow:0 0 28px rgba(255,47,209,.10);
}
.cf-launch-hero h1 {
  max-width:980px;
  margin:28px auto 18px;
  font-size:clamp(48px, 6.5vw, 94px);
  line-height:.93;
  letter-spacing:-.055em;
  font-weight:950;
}
.cf-launch-hero h1 span {
  background:linear-gradient(90deg,#7f3cff 3%,#ee4aca 48%,#1d8dff 96%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.cf-launch-sub {
  max-width:820px;
  margin:0 auto;
  color:#c7bfd0;
  font-size:clamp(15px,1.3vw,20px);
  line-height:1.58;
}
.cf-launch-features {
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(5,minmax(120px,1fr));
  gap:12px;
  width:min(980px,100%);
  margin:32px auto 26px;
}
.cf-launch-features button {
  min-height:112px;
  padding:15px 10px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:13px;
  color:#fff;
  background:rgba(16,12,24,.74);
  cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.015);
}
.cf-launch-features button:hover,
.cf-launch-features button:focus-visible {
  transform:translateY(-2px);
  border-color:#8d55ff;
  box-shadow:0 12px 35px rgba(100,47,255,.15);
}
.cf-launch-features span { display:block; margin-bottom:8px; color:#46d9ff; font-size:26px; font-weight:900; }
.cf-launch-features b { display:block; font-size:14px; }
.cf-launch-features small { display:block; margin-top:5px; color:#9f97aa; font-size:11px; }

.cf-launch-actions { display:flex; justify-content:center; gap:14px; margin-top:4px; }
.cf-launch-actions button {
  min-width:255px;
  min-height:60px;
  padding:0 26px;
  border-radius:11px;
  font-size:17px;
  font-weight:900;
  cursor:pointer;
}
.cf-launch-primary {
  border:0;
  color:#fff;
  background:linear-gradient(90deg,#813eff,#ff46bf);
  box-shadow:0 14px 44px rgba(198,45,255,.22);
}
.cf-launch-secondary {
  border:1px solid #7249c9;
  color:#fff;
  background:rgba(10,8,15,.65);
}
.cf-launch-trust {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:26px;
  margin:18px 0 24px;
  color:#c1bac8;
  font-size:13px;
}
.cf-launch-gallery {
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
  width:min(1240px,100%);
  margin:0 auto;
}
.cf-launch-gallery figure {
  position:relative;
  min-height:142px;
  margin:0;
  overflow:hidden;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:#12101a;
}
.cf-launch-gallery img {
  width:100%;height:100%;min-height:142px;
  object-fit:cover;
  display:block;
}
.cf-launch-gallery figcaption {
  position:absolute;
  left:10px;right:10px;bottom:8px;
  padding:7px 8px;
  border-radius:7px;
  color:#fff;
  background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.18));
  font-size:11px;
  font-weight:950;
  letter-spacing:.06em;
  text-align:left;
}

@media (max-width: 900px) {
  .cf-launch-hero { min-height:auto; }
  .cf-launch-features { grid-template-columns:repeat(2,1fr); }
  .cf-launch-features button:last-child { grid-column:1/-1; }
  .cf-launch-gallery { grid-template-columns:repeat(2,1fr); }
  .cf-launch-gallery figure:last-child { display:none; }
}
@media (max-width: 620px) {
  .cf-launch-hero { padding:30px 15px 22px; }
  .cf-launch-hero h1 { font-size:clamp(42px,14vw,62px); }
  .cf-launch-features { grid-template-columns:1fr 1fr; gap:8px; }
  .cf-launch-features button { min-height:96px; }
  .cf-launch-actions { flex-direction:column; }
  .cf-launch-actions button { width:100%; min-width:0; }
  .cf-launch-trust { gap:10px 18px; font-size:12px; }
  .cf-launch-gallery { grid-template-columns:1fr 1fr; gap:8px; }
  .cf-launch-gallery figure { min-height:110px; }
  .cf-launch-gallery img { min-height:110px; }
}


/* v0.7.6 ecosystem neon card separation */
.network-grid > a {
  border: 2px solid var(--network-color) !important;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--network-color) 22%, transparent),
    0 0 18px color-mix(in srgb, var(--network-color) 28%, transparent),
    inset 0 0 28px color-mix(in srgb, var(--network-color) 7%, transparent) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.network-grid > a:hover,
.network-grid > a:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--network-color) 88%, white 12%) !important;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--network-color) 40%, transparent),
    0 0 30px color-mix(in srgb, var(--network-color) 48%, transparent),
    0 14px 35px rgba(0,0,0,.34),
    inset 0 0 36px color-mix(in srgb, var(--network-color) 10%, transparent) !important;
}
.network-grid > a .network-brand small,
.network-grid > a > em,
.network-grid > a .network-brand > svg {
  color: var(--network-color) !important;
}
.network-grid > a .share-preview-label {
  border-color: color-mix(in srgb, var(--network-color) 60%, rgba(255,255,255,.2)) !important;
  box-shadow: 0 0 12px color-mix(in srgb, var(--network-color) 20%, transparent);
}
.cf-ribbon-card {
  border-width: 2px !important;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--cf-accent) 18%, transparent),
    0 0 16px color-mix(in srgb, var(--cf-accent) 22%, transparent),
    inset 0 0 24px color-mix(in srgb, var(--cf-accent) 6%, transparent) !important;
}


/* v0.7.7 cinematic ClipFabulous entry hero */
.cf-cinematic-hero {
  position: relative;
  min-height: min(860px, calc(100vh - 74px));
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: clamp(72px, 9vw, 118px) clamp(22px, 6vw, 96px) 62px;
  overflow: hidden;
  background: #07050d;
  text-align: center;
}

.cf-cinematic-backdrop,
.cf-cinematic-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cf-cinematic-backdrop {
  z-index: -3;
  background-image: url("/clipfabulous-share-card.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.07);
  animation: cfHeroDrift 18s ease-in-out infinite alternate;
  filter: saturate(1.18) contrast(1.05) brightness(.74);
}

.cf-cinematic-scrim {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 44%, rgba(6, 4, 13, .12), rgba(6, 4, 13, .46) 52%, rgba(6, 4, 13, .82) 100%),
    linear-gradient(180deg, rgba(4, 3, 10, .28), rgba(4, 3, 10, .18) 42%, rgba(4, 3, 10, .72) 100%);
}

.cf-cinematic-content {
  width: min(1080px, 100%);
  position: relative;
  z-index: 2;
}

.cf-cinematic-hero .cf-launch-kicker {
  margin-bottom: 22px;
  border-color: rgba(84, 218, 255, .55);
  background: rgba(4, 7, 20, .5);
  color: #d7f8ff;
  backdrop-filter: blur(12px);
}

.cf-cinematic-hero h1 {
  max-width: 980px;
  margin: 0 auto 22px;
  font-size: clamp(54px, 7.4vw, 110px);
  line-height: .84;
  letter-spacing: -.055em;
  text-wrap: balance;
  text-shadow: 0 12px 54px rgba(0,0,0,.52);
}

.cf-cinematic-hero h1 span,
.cf-cinematic-hero h1 strong,
.cf-cinematic-hero h1 em {
  font-style: normal;
  color: #fff;
}

.cf-cinematic-hero h1 span {
  color: #ff45ca;
  text-shadow: 0 0 24px rgba(255,69,202,.36);
}

.cf-cinematic-hero h1 em {
  color: #5edcff;
  text-shadow: 0 0 24px rgba(94,220,255,.28);
}

.cf-cinematic-hero h1 strong {
  color: #ff59d1;
}

.cf-cinematic-hero .cf-launch-sub {
  max-width: 760px;
  color: #f3edf7;
  text-shadow: 0 3px 18px rgba(0,0,0,.66);
}

.cf-cinematic-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 30px auto 24px;
}

.cf-cinematic-actions button {
  min-width: 236px;
  min-height: 62px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 950;
  backdrop-filter: blur(14px);
}

.cf-cinematic-actions .cf-launch-secondary {
  border-color: #ff46c7;
  background: rgba(35, 6, 34, .72);
  box-shadow: 0 0 34px rgba(255, 48, 199, .18);
}

.cf-cinematic-actions .cf-launch-primary {
  background: linear-gradient(90deg, #16bbff, #7b53ff 48%, #ff3ec9);
  box-shadow: 0 0 36px rgba(92, 114, 255, .3);
}

.cf-cinematic-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 18px auto 0;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}

.cf-cinematic-pause {
  position: absolute;
  z-index: 3;
  left: clamp(18px, 3vw, 44px);
  bottom: clamp(18px, 3vw, 38px);
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(4, 3, 12, .62);
  backdrop-filter: blur(16px);
  font-size: 20px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(255, 64, 206, .16);
}

.cf-cinematic-hero.is-paused .cf-cinematic-backdrop {
  animation-play-state: paused;
}

@keyframes cfHeroDrift {
  from { transform: scale(1.07) translate3d(-1.2%, -.6%, 0); }
  to   { transform: scale(1.13) translate3d(1.2%, .8%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .cf-cinematic-backdrop { animation: none; transform: scale(1.08); }
}

@media (max-width: 760px) {
  .cf-cinematic-hero {
    min-height: 760px;
    padding: 74px 18px 92px;
  }
  .cf-cinematic-hero h1 {
    font-size: clamp(46px, 14vw, 72px);
    line-height: .88;
  }
  .cf-cinematic-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cf-cinematic-actions button {
    width: min(100%, 420px);
    margin-inline: auto;
  }
  .cf-cinematic-rail {
    font-size: 12px;
    gap: 8px 14px;
  }
}
